MAPIUninitialize

The MAPIUninitialize function decrements the reference count, cleans up, and deletes per-instance global data for the MAPI DLL.

Quick Info

Header file: MAPIX.H
Implemented by: MAPI
Called by: Client applications

void MAPIUninitialize()

Parameters

None

Remarks

A client application calls the MAPIUninitialize function to end its interaction with MAPI, begun with a call to the MAPIInitialize function. After MAPIUninitialize is called, no other MAPI calls can be made by the client.

MAPIUninitialize decrements the reference count, and the corresponding MAPIInitialize function increments the reference count. Thus, the number of calls to one function must equal the number of calls to the other.

Note You cannot call MAPIInitialize or MAPIUninitialize from within a Win32 DllEntryPoint function or any other function that creates or terminates threads. For more information, see Using Thread-Safe Objects.

See Also

MAPI Initialization Functions