Partager via


IAMDevMemoryAllocator::CheckMemory (Compact 2013)

3/26/2014

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

Header

dshow.h

Library

Strmiids.lib

See Also

Reference

IAMDevMemoryAllocator Interface