DXGKCB_UNMAP_MEMORY callback function

The DxgkCbUnmapMemory function unmaps a range of addresses previously mapped by DxgkCbMapMemory.

Syntax

DXGKCB_UNMAP_MEMORY DxgkcbUnmapMemory;

NTSTATUS DxgkcbUnmapMemory(
  HANDLE DeviceHandle,
  PVOID VirtualAddress
)
{...}

Parameters

DeviceHandle

A handle that represents a display adapter. The display miniport driver previously obtained this handle in the DeviceHandle member of the DXGKRNL_INTERFACE structure that was passed to DxgkDdiStartDevice.

VirtualAddress

The beginning address of the range to be unmapped. This address can be a virtual address in system space, a virtual address in the address space of a user-mode process, or an address in I/O space.

Return Value

DxgkCbUnmapMemory returns STATUS_SUCCESS if it succeeds. Otherwise, it returns one of the error codes defined in Ntstatus.h.

Requirements

   
Windows version Available in Windows Vista and later versions of the Windows operating systems.
Target Platform Desktop
Header dispmprt.h (include Dispmprt.h)
IRQL PASSIVE_LEVEL

See Also

DxgkCbMapMemory