IMAPIInitMonitor::IsInitialized
Applies to: Outlook 2013 | Outlook 2016 | Outlook 2019
Queries MAPI to determine if it currently initialized in the calling process.
BOOL IMAPIInitMonitor::IsInitialized()
Parameters
None
Return value
A BOOL indicating the current state of MAPI initialization, a value of TRUE means MAPI has been initialized and is available for use, while a value of FALSE means MAPI is currenty uninitialized and is not ready be consumed.
Remarks
This can be used to determine if MAPI is ready to be used, for example, if your application wanted to do something only if MAPI has already be initialized, this could be a useful check in a background task to prevent the cost of spinning up MAPI for optional work.