Platform SDK: Exchange Server

Creating an Administrator Extension DLL

To create a new property page, you must create an Administrator extension DLL using functions and structures from the following libraries:

To create an Administrator extension DLL

  1. Design a Windows dialog-box resource for each custom property page that will be added.
  2. Make sure each property page dialog-box resource contains controls for an icon, a title, and a standard Windows dialog-box message procedure. See Designing Property Pages.
  3. Implement an ADMIN_Initialize function and export it through the .DEF file of the DLL. Administrator program functions called from the DLL (such as PADMIN_GetObjectData and PADMIN_SetObjectData) are passed to the DLL through the ADMIN_Initialize function. The following lines from the SMBADMIN.DEF file show how to do this. SMBADMIN.DEF declares the module parameters for the property page used by the Sample Mailbox Agent.
    EXPORTS    ; Explicit exports can go here
        ADMIN_Initialize    @2
     
  4. Implement the functions in the DLL that will be called by the Administrator program. The InitSheetProc function is particularly important, because it supplies information to the Administrator program about the new custom property pages such as dialog-box resource IDs and dialog-box message procedures.