Expand Minimize

VidMemFree function

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

Syntax


void VidMemFree(
  _In_  LPVMEMHEAP pvmh,
  _In_  FLATPTR ptr
);

Parameters

pvmh [in]

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.

ptr [in]

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

Return value

None

Requirements

Version

Available in Windows 2000 and later versions of the Windows operating systems.

Header

Dmemmgr.h (include Winddi.h)

Library

Win32k.lib

DLL

Win32k.sys

See also

HeapVidMemAllocAligned
VMEMHEAP
VIDEOMEMORY

 

 

Send comments about this topic to Microsoft

Show:
© 2014 Microsoft