Microsoft DirectX 8.1 (C++)

IAMDevMemoryAllocator::Alloc

Note   The IAMDevMemoryAllocator interface is deprecated.

Allocates a memory buffer.

Syntax

HRESULT Alloc(
    BYTE **ppBuffer,
    DWORD *pdwcbBuffer
);

Parameters

ppBuffer

[out] Pointer that will receive the address of the allocated memory buffer.

pdwcbBuffer

[in, out] Pointer to a DWORD whose input value is the number of bytes to allocate and whose output value is the actual number of 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.

See Also