Collapse the table of content
Expand the table of content
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here. ArchiveDisclaimer


This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This page may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

Decrements the reference count, cleans up, and deletes per-instance global data for the MAPI DLL.

Header file:


Implemented by:


Called by:

Client applications

void MAPIUninitialize ( void );

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.


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

© 2015 Microsoft