D3DKMTQueryResourceInfo - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// d3dkmthk.h

NTSTATUS D3DKMTQueryResourceInfo(
  D3DKMT_QUERYRESOURCEINFO *unnamedParam1
);
View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (nf-d3dkmthk-d3dkmtqueryresourceinfo)

D3DKMTQueryResourceInfo function

Description

The D3DKMTQueryResourceInfo function retrieves information about a shared resource.

Parameters

unnamedParam1

pData [in, out]

A pointer to a D3DKMT_QUERYRESOURCEINFO structure that contains parameters for retrieving information about a shared resource.

Return value

D3DKMTQueryResourceInfo returns one of the following values:

Return code Description
STATUS_SUCCESS Information about a shared resource was successfully retrieved.
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_INTEGER_OVERFLOW The size of all of the private driver data was too big to return to the OpenGL ICD.

This function might also return other NTSTATUS values.

Remarks

The OpenGL ICD typically calls D3DKMTQueryResourceInfo to obtain information about the resource and then uses this information to allocate the appropriate buffers for a call to D3DKMTOpenResource.

For an example of how an OpenGL ICD can use D3DKMTQueryResourceInfo to retrieve information about a shared resource, see the code example in D3DKMTOpenResource.

See also

D3DKMTOpenResource

D3DKMT_QUERYRESOURCEINFO