Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
The AllocateMem method allocates memory for the caller in the Messaging application's address space.
Syntax
HRESULT AllocateMem (
DWORD cbSize,
LPBYTE * ppb
);
Parameters
- cbSize
[in] Specifies the number of bytes to be allocated. - ppb
[out] Reference to the returned memory.
Return Values
This method returns the standard values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, and E_FAIL, as well as the following:
- S_OK
Indicates success.
Remarks
AllocateMem must be used whenever the transport needs to allocate memory that is to be passed between the transport and Messaging application — for example, when Messaging is freeing the memory.
Requirements
Pocket PC: Pocket PC 2002 and later
Smartphone: Smartphone 2002 and later
OS Versions: Windows CE 3.0 and later
Header: cemapi.h
Library: cemapi.lib
See Also
IMailSyncCallBack | IMailSyncCallBack::FreeMem | Messaging
Send Feedback on this topic to the authors