Initializing the Extension-Data Attribute

Gateways can use the Extension-Data attribute to store custom data in the directory. This data can be manipulated through custom property pages implemented in an Administrator extension DLL.

During the setup procedure, the Extension-Data attribute must be initialized. You can use the CFGCODE utility to create a file holding default Extension-Data values. After this extension data file is created, it can be used during application setup. When the customer runs the setup program, the file can be copied directly into the directory object’s Extension-Data attribute. Its binary contents are formatted correctly for storage in the Microsoft Exchange Server directory as an attribute on the application object. For more information, see CFGCODE: Generating a Packed Property Structure.

You may need to create the Extension-Data values based on values entered by the customer while running the setup program. In this case, you can create the extension data file by calling HrCfgPackData and writing the resulting output to a file. GWSETUP.C provides an example of how to do this.

The setup program also performs this write operation using directory access function calls.