D3DKMTCreateContextVirtual function (d3dkmthk.h)

The D3DKMTCreateContextVirtual function creates a kernel mode device context that supports virtual addressing.

Syntax

NTSTATUS D3DKMTCreateContextVirtual(
  D3DKMT_CREATECONTEXTVIRTUAL *unnamedParam1
);

Parameters

unnamedParam1

pData [in]

A pointer to a D3DKMT_CREATECONTEXTVIRTUAL structure that describes the kernel-mode device context.

Return value

Return code Description
STATUS_SUCCESS The device context was successfully created.
STATUS_DEVICE_REMOVED The graphics adapter was stopped or the display device was reset.
STATUS_INVALID_PARAMETER Parameters were validated and determined to be incorrect.
STATUS_NO_MEMORY D3DKMTCreateContextVirtual could not complete because of insufficient memory.

This function might also return other NTSTATUS values.

Requirements

Requirement Value
Minimum supported client Windows 10
Minimum supported server Windows Server 2016
Target Platform Universal
Header d3dkmthk.h (include D3dkmthk.h)
Library Gdi32.lib
DLL Gdi32.dll

See also

D3DKMT_CREATECONTEXTVIRTUAL