// d3dkmthk.h
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;
View the official Windows Driver Kit DDI referenceNo description available.
Describes information that is required to map a global NT handle to resource information.
hDevice [in]A D3DKMT_HANDLE data type that represents a kernel-mode handle to the device.
hNtHandle [in]A global NT handle to the resource that is to be queried.
pPrivateRuntimeData [in]A pointer to a caller-supplied buffer where the runtime private data associated with the resource will be copied to.
PrivateRuntimeDataSize [in]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.
TotalPrivateDriverDataSize [out]The size, in bytes, of the buffer that is required to hold all the driver private data for all allocations associated with the resource.
ResourcePrivateDriverDataSize [out]The size, in bytes, of the driver's resource private data.
NumAllocations [out]The number of allocations associated with the resource.
D3DKMTQueryResourceInfoFromNtHandle