IMailSyncCallBack::AllocateMem
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
Smartphone: Windows Mobile 2002 and later
OS Versions: Windows CE 3.0 and later
Header: cemapi.h
Library: cemapi.lib
See Also
Last updated on Friday, April 22, 2005
© 2005 Microsoft Corporation. All rights reserved.
Send feedback on this topic to the authors.