VidMemFree function (dmemmgr.h)

The VidMemFree function frees off-screen memory allocated for a display driver by HeapVidMemAllocAligned.

Syntax

void VidMemFree(
  [in] LPVMEMHEAP pvmh,
  [in] FLATPTR    ptr
);

Parameters

[in] pvmh

Pointer to a VMEMHEAP structure that represents the DirectDraw heap from which the surface was allocated. The driver obtains this value from the lpHeap member of the VIDEOMEMORY structure originally passed to HeapVidMemAllocAligned.

[in] ptr

Specifies the FLATPTR offset of the allocated surface. This data type is equivalent to a ULONG_PTR.

Return value

None

Requirements

Requirement Value
Minimum supported client Available in Windows 2000 and later versions of the Windows operating systems.
Target Platform Universal
Header dmemmgr.h (include Winddi.h)
Library Win32k.lib
DLL Win32k.sys

See also

HeapVidMemAllocAligned

VIDEOMEMORY

VMEMHEAP