Share via


IAMDevMemoryAllocator::Alloc (Windows Embedded CE 6.0)

1/6/2010

This method allocates a memory buffer.

Syntax

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 Value

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

Windows Embedded CE Windows CE 2.12 and later
Note Microsoft DirectShow applications and DirectShow filters have different include file and Library requirements
For more information, see Setting Up the Build Environment, Version 2.12 requires DXPAK 1.0 or later

See Also

Reference

IAMDevMemoryAllocator Interface
IAMDevMemoryAllocator::Free