HrCleanupPSTGlobals

The HrCleanupPSTGlobals function releases any objects involved in the creation of a new PST.

Quick Info

Header file: NEWPST.H
Library: NEWPST.LIB

HRESULT HrCleanupPSTGlobals(
  LPSTR lpszProfileName  
);
 

Parameters

lpszProfileName
Input parameter. Temporary profile name from HrCreatePersonalStore.

Return Values

See Return Values.

Remarks

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.

See Also

HrCreatePersonalStore