IAMDevMemoryAllocator::Alloc
This method allocates a memory buffer.
HRESULT Alloc(
BYTE** ppBuffer,
DWORD* pdwcbBuffer
);
Parameters
- ppBuffer
[out] Address of a pointer to the allocated memory buffer. - pdwcbBuffer
[in, out] For input, the number of bytes to allocate. For output, the number of actual bytes allocated.
Return Values
Returns S_OK if the desired quantity of memory was allocated, S_FALSE if memory was unavailable.
Remarks
Call this method to allocate a block of memory from the available pool.
Requirements
DirectShow applications and DirectShow filters have different include file and link library requirements. See Setting Up the Build Environment for more information.
OS Versions: Windows CE 2.12 and later. Version 2.12 requires DXPAK 1.0 or later.
Header:
See Also
Last updated on Wednesday, April 13, 2005
© 2005 Microsoft Corporation. All rights reserved.