Initializing the Administrator Extension DLL

The Administrator program and the Administrator extension DLL work together to display standard and custom property pages. They can communicate because each supplies the other with the necessary function entry points. This handshaking procedure involves two initializations that usually occur in the following sequence:

    To perform an initialization sequence
  1. An administrator selects a directory object that uses one or more custom property pages.
  2. The Administrator program opens the directory object and finds the extension DLL for it.
  3. The Administrator program loads the extension DLL.
  4. The Administrator program looks for the extension DLL entry point (ADMIN_Initialize).
  5. The Administrator program calls the extension DLL entry point. The Administrator program can now locate the DLL functions, and the DLL can now locate the Administrator program functions.
  6. The Administrator program calls the extension DLL InitSheetProc function to read the information about the property pages supported by the extension DLL.

In this sequence, two initialization procedures have been executed—the initialization of functions and connections for the DLL and the initialization of property pages. These initialization procedures are described in the following sections.