IAMDevMemoryAllocator::Alloc

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.

See Also

IAMDevMemoryAllocator::Free

 Last updated on Tuesday, July 13, 2004

© 1992-2000 Microsoft Corporation. All rights reserved.