The HrCfgCreateAdviseObj function monitors a MAPI session for changes to the extension data.
Header file: | EDKCFG.H |
Library: | EDKCFG.LIB |
HRESULT HrCfgCreateAdviseObj(
LPMAPISESSION lpSession,
ULONG nPollInterval,
LPADVISEOBJ * lppAdviseObj
);
See Return Values.
The HrCfgCreateAdviseObj function should be called once to create an advise object for a MAPI session that is being monitored. Then, you should call HrCfgAdvise once for each extension data section that is being monitored. If nPollInterval == 0, then no monitoring thread is created, and the user must do polling manually by calling HrCfgPollAdviseObj.
For more information on this function, see Using the Configuration Functions.
For information on the IMAPISession interface, see the MAPI Programmer's Reference.
HrCfgDestroyAdviseObj, HrCfgUnadvise