Share via


IAMDevMemoryAllocator::Alloc (Windows CE 5.0)

Send Feedback

This method allocates a memory buffer.

HRESULTAlloc(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

IAMDevMemoryAllocator::Free

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.