D3DKMT_QUERYRESOURCEINFOFROMNTHANDLE structure (d3dkmthk.h)

Describes information that is required to map a global NT handle to resource information.

Syntax

typedef struct _D3DKMT_QUERYRESOURCEINFOFROMNTHANDLE {
  [in]  D3DKMT_HANDLE hDevice;
  [in]  HANDLE        hNtHandle;
  [in]  VOID          *pPrivateRuntimeData;
  [in]  UINT          PrivateRuntimeDataSize;
  [out] UINT          TotalPrivateDriverDataSize;
  [out] UINT          ResourcePrivateDriverDataSize;
  [out] UINT          NumAllocations;
} D3DKMT_QUERYRESOURCEINFOFROMNTHANDLE;

Members

[in] hDevice

A D3DKMT_HANDLE data type that represents a kernel-mode handle to the device.

[in] hNtHandle

A global NT handle to the resource that is to be queried.

[in] pPrivateRuntimeData

A pointer to a caller-supplied buffer where the runtime private data associated with the resource will be copied to.

[in] PrivateRuntimeDataSize

The size, in bytes, of the buffer pointed to by the pPrivateRuntimeData member.

[out] If pPrivateRuntimeData is NULL, this member is the size, in bytes, of the buffer required to receive the runtime private data. Otherwise, this member is the size, in bytes, of runtime private data copied into the buffer.

[out] TotalPrivateDriverDataSize

The size, in bytes, of the buffer that is required to hold all the driver private data for all allocations associated with the resource.

[out] ResourcePrivateDriverDataSize

The size, in bytes, of the driver's resource private data.

[out] NumAllocations

The number of allocations associated with the resource.

Requirements

Requirement Value
Minimum supported client Windows 8
Minimum supported server Windows Server 2012
Header d3dkmthk.h (include D3dkmthk.h)

See also

D3DKMTQueryResourceInfoFromNtHandle