D3DKMTQueryResourceInfo function

The D3DKMTQueryResourceInfo function retrieves information about a shared resource.

Syntax


NTSTATUS APIENTRY D3DKMTQueryResourceInfo(
  _Inout_ D3DKMT_QUERYRESOURCEINFO *pData
);

Parameters

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 codeDescription
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.

Requirements

Target platform

Universal

Version

Available in Windows Vista and later versions of the Windows operating systems.

Header

D3dkmthk.h (include D3dkmthk.h)

Library

Gdi32.lib

DLL

Gdi32.dll

See also

D3DKMT_QUERYRESOURCEINFO
D3DKMTOpenResource

 

 

Send comments about this topic to Microsoft

Show: