The Administrator extension DLL can use configuration functions to register for changes to extension data by creating an advise object. Then, when an administrator opens the directory object and edits its extension data, the extension DLL receives a notification about these changes. It can then modify properties on the directory object, using intermediate steps that pack and unpack the data.
To implement this notification, specify a callback function to be called when your extension data changes. Pass the name of this callback function as a parameter to the HrCfgAdvise function. This monitoring mechanism uses polling to determine changes to extension data. You can set the polling interval in a parameter to the HrCfgCreateAdviseObj function. Because this polling uses a call to the IMAPIProp::GetProps method (which causes an RPC), it involves some network overhead. You can choose to have your application poll on demand by calling the HrCfgPollAdviseObj function.
The following procedure lists the events that occur when an administrator accesses an application-specific property page to view or change extension data.
These and other related events are described in more detail in A Typical Call Sequence.