Microsoft DirectX 8.1 (C++)

IAMDevMemoryAllocator::CheckMemory

Note   The IAMDevMemoryAllocator interface is deprecated.

Tests whether the specific instance (device) of the allocator allocated a memory pointer.

Syntax

HRESULT CheckMemory(
    const BYTE *pBuffer
);

Parameters

pBuffer

[in] Pointer to the allocated memory buffer's address.

Return Value

Returns S_OK if the on-board allocator allocated the memory, or S_FALSE if not. Memory that is on the particular device but not allocated will also return S_FALSE.

Remarks

The hardware filter typically uses this method to test whether the pointer actually points to on-board memory.

See Also