IMAPIInitMonitor : IUnknown
Applies to: Outlook 2013 | Outlook 2016 | Outlook 2019
There are times when an application which consumes MAPI might want to know when the initialization is completed. For example, it has multiple threads which could initialize MAPI, or in response to MAPI being initialized the application would like perform some work, but does not want to always spin up the MAPI stack. The initialization monitor provides this functionality through a CreateMAPIInitializationMonitor object.
quick info | result |
---|---|
Inherits from: |
IUnknown |
Implemented by: |
OLMAPI32.DLL |
Called by: |
Client applications |
Interface identifier: |
IID_IMAPIInitMonitor |
Vtable order
function | description |
---|---|
IMAPIInitMonitor::IsInitialized |
Returns the current state of MAPI initialization. |
IMAPIInitMonitor::Wait |
Initiates a BLOCKING call on this thread, which will return either when the specified number of milliseconds have elapsed or MAPI has been initialized. INFINITE can be used to for an infinite wait. |
IMAPIInitMonitor::BeginWait |
Start a wait for MAPI initialization or the specified number of milliseconds to elapse. This return an IMAPIWaitResult interface which should have “End” called in order begin the wait. This allows the caller to control which thread is blocked while we are waiting. |