D3DKMT_QUERYRESOURCEINFO structure (d3dkmthk.h)

The D3DKMT_QUERYRESOURCEINFO structure describes parameters for retrieving information about a resource.

Syntax

typedef struct _D3DKMT_QUERYRESOURCEINFO {
  [in]     D3DKMT_HANDLE hDevice;
  [in]     D3DKMT_HANDLE hGlobalShare;
  [in]     VOID          *pPrivateRuntimeData;
  [in/out] UINT          PrivateRuntimeDataSize;
  [out]    UINT          TotalPrivateDriverDataSize;
  [out]    UINT          ResourcePrivateDriverDataSize;
  [out]    UINT          NumAllocations;
} D3DKMT_QUERYRESOURCEINFO;

Members

[in] hDevice

A handle to the device that the resource and allocations are associated with.

[in] hGlobalShare

A handle to the shared resource to open.

[in] pPrivateRuntimeData

If non-NULL, a pointer to a buffer that receives the runtime-private data that is supplied at create time. The OpenGL ICD should first call the D3DKMTQueryResourceInfo function with pPrivateRuntimeData set to NULL to obtain the buffer size and then call again with the correct size buffer.

[in/out] PrivateRuntimeDataSize

The size, in bytes, of the buffer that pPrivateRuntimeData points to. If pPrivateRuntimeData is NULL, PrivateRuntimeDataSize is set to the size, in bytes, that is required for the buffer to store the runtime-private data.

[out] TotalPrivateDriverDataSize

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

[out] ResourcePrivateDriverDataSize

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

[out] NumAllocations

The number of allocations that are associated with the resource.

Requirements

Requirement Value
Minimum supported client Windows Vista
Header d3dkmthk.h (include D3dkmthk.h)

See also

D3DKMTOpenResource

D3DKMTQueryResourceInfo