Share via


IAMDevMemoryAllocator::CheckMemory (Windows Embedded CE 6.0)

1/6/2010

This method tests whether a memory pointer was allocated by the specific instance (device) of the allocator.

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.

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