D3DKMT_GETDEVICESTATE - NtDoc

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

typedef struct _D3DKMT_GETDEVICESTATE {
  [in]     D3DKMT_HANDLE           hDevice;
  [in]     D3DKMT_DEVICESTATE_TYPE StateType;
  union {
    [out]    D3DKMT_DEVICEEXECUTION_STATE     ExecutionState;
    [in/out] D3DKMT_DEVICEPRESENT_STATE       PresentState;
    [out]    D3DKMT_DEVICERESET_STATE         ResetState;
             D3DKMT_DEVICEPRESENT_STATE_DWM   PresentStateDWM;
             D3DKMT_DEVICEPAGEFAULT_STATE     PageFaultState;
             D3DKMT_DEVICEPRESENT_QUEUE_STATE PresentQueueState;
  };
} D3DKMT_GETDEVICESTATE;
View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (ns-d3dkmthk-_d3dkmt_getdevicestate)

_D3DKMT_GETDEVICESTATE structure

Description

The D3DKMT_GETDEVICESTATE structure describes parameters for retrieving the state of a device.

Members

hDevice [in]

A handle to the device that status is requested for.

StateType [in]

A D3DKMT_DEVICESTATE_TYPE-typed value that indicates the type of status to retrieve for the device.

ExecutionState [out]

A D3DKMT_DEVICEEXECUTION_STATE-typed value that indicates the execution status of the device. The union that is contained in D3DKMT_GETDEVICESTATE holds a value from this enumeration if the StateType member is D3DKMT_DEVICESTATE_EXECUTION.

PresentState [in/out]

A D3DKMT_DEVICEPRESENT_STATE structure that describes parameters for retrieving the present status of the device. The union that is contained in D3DKMT_GETDEVICESTATE holds a structure of this type if the StateType member is D3DKMT_DEVICESTATE_PRESENT.

ResetState [out]

A D3DKMT_DEVICERESET_STATE structure that describes the reset status of the device. The union that is contained in D3DKMT_GETDEVICESTATE holds a structure of this type if the StateType member is D3DKMT_DEVICESTATE_RESET.

PresentStateDWM

PageFaultState

PresentQueueState

See also

D3DKMTGetDeviceState

D3DKMT_DEVICEEXECUTION_STATE

D3DKMT_DEVICEPRESENT_STATE

D3DKMT_DEVICERESET_STATE

D3DKMT_DEVICESTATE_TYPE