Share via


IMailSyncCallBack::FreeMem

4/8/2010

The FreeMem method frees memory allocated by Messaging.

Syntax

HRESULT FreeMem (
  LPVOID pvmem
);

Parameters

  • pvmem
    [in] Reference to memory that was previously allocated using the AllocateMem method.

Return Value

  • E_FAIL
    Ignored.

Note

Although FreeMem returns an HRESULT of E_FAIL, it means it successfully freed the allocated memory.

Remarks

Anytime the transport needs to free the memory allocated by Messaging, FreeMem must be used — for example, memory received when using the IMailSyncCallBack::RequestCredentials.

Requirements

Header cemapi.h
Library cemapi.lib
Windows Embedded CE Windows CE 3.0 and later
Windows Mobile Pocket PC 2002 and later, Smartphone 2002 and later

See Also

Reference

IMailSyncCallBack
IMailSyncCallBack::AllocateMem

Other Resources

Messaging