MAPIINIT_0

The MAPIINIT_0 structure conveys options to the MAPIInitialize function.

Quick Info

Header file: MAPIX.H

typedef struct 
{ 
     ULONG ulVersion;      
     ULONG ulFlags;      
} MAPIINIT_0, FAR *LPMAPIINIT_0; 
 

Members

ulVersion
Integer value representing the version number of the MAPIINIT_0 structure. The ulVersion member is for future expansion and does not represent the version of the MAPI interface. Currently, ulVersion must be set to MAPI_INIT_VERSION.
ulFlags
Bitmask of flags used to control the initialization of the MAPI session. The following flags can be set:
MAPI_MULTITHREAD_NOTIFICATIONS
MAPI should generate notifications using a thread dedicated to notification handling rather than the first thread used to call MAPIInitialize.
MAPI_NT_SERVICE
The caller is running as a Windows NT service. Callers that are not running as a Windows NT service should not set this flag; callers that are running as a service must set this flag.

Remarks

Multithreaded clients running under Windows NT or Windows 95 should set the MAPI_MULTITHREADED_NOTIFICATIONS flag. If the flag is not set, notifications are generated on the thread used to make the first call to MAPIInitialize.

For more information about when to set this flag and how to implement thread safety in a client, see Threading in MAPI.

See Also

MapiInitialize