The Server object in the Microsoft Exchange Server directory has a Heuristics attribute. Bits on this attribute can be set to specify that gateways and connectors are installed or that replication is enabled. The Microsoft Exchange Server Administrator program uses the Heuristics attribute to determine which containers, property pages, and menu options to make available for clients.
Your gateway setup program must set the Gateway bit on the Heuristics attribute so that the Administrator program will display menu options and containers that relate to gateways and custom recipients.
To set the Gateway bit, call the HrSetGatewayBit function. The sample code from the GWSETUP program contains an example of calling this function.
Note When removing a gateway, do not clear the Gateway bit from the Heuristics attribute.