The HrCleanupPSTGlobals function releases any objects involved in the creation of a new PST.
Header file: | NEWPST.H |
Library: | NEWPST.LIB |
HRESULT HrCleanupPSTGlobals(
LPSTR lpszProfileName
);
See Return Values.
The HrCleanupPSTGlobals function should be called after the MAPI IMAPISession::Logoff method and the MAPI IMAPISession::Release (the Release method is inherited from the Win32 IUnknown interface) methods are called for the MAPI session and before the MAPI MAPIUninitialize function is called.
For more information on the IMAPISession::Logoff and IMAPISession::Release methods, as well as the MAPIUninitialize function, see the MAPI Programmer's Reference.