Platform SDK: Exchange Server |
Your gateway must be recognized by other programs such as the Microsoft Exchange Server Administrator program. Therefore, the setup program must create a new object for your gateway in the Microsoft Exchange Server directory and provide initial object attribute values. The setup program can set most of these values as defaults, while others (such as the server name) can be specified by the user through a setup dialog box. When you add a new Mail-Gateway object to the directory, an associated mailbox and folder hierarchy is created in the server’s information store.
A gateway setup program calls the Microsoft Exchange Server directory access functions to create the object that represents the gateway in the directory and to write the object’s attributes to the directory. It presents dialog boxes to the administrator for entering attribute values, such as the address space serviced by the gateway. The directory access functions are described in Directory Operations. Setup programs can use the BatchImport or DAPIWrite directory access functions to create the directory object. The sample gateway installation program GWINST.C in the \SAMPLES\DbMsg\EXCHANGE\EDKINSTU directory prepares for and calls BatchImport.
To import a directory object, a gateway setup program first obtains all necessary configuration information from several sources. It reads default data from the gateway’s header files and uses some of the default values that correspond to gateway applications. It also copies extension data from the extension data file on the distribution medium. For more information, see Initializing the Extension-Data Attribute.
Note Your gateway setup program should always set the gateway object’s Computer-Name attribute with the name of the Microsoft Exchange Server computer. This attribute is required for the Administrator extension interface to work correctly.