D3DKMT_GETDEVICESTATE structure (d3dkmthk.h)

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

Syntax

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;

Members

[in] hDevice

A handle to the device that status is requested for.

[in] StateType

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

[out] ExecutionState

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.

[in/out] PresentState

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.

[out] ResetState

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

Requirements

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

See also

D3DKMTGetDeviceState

D3DKMT_DEVICEEXECUTION_STATE

D3DKMT_DEVICEPRESENT_STATE

D3DKMT_DEVICERESET_STATE

D3DKMT_DEVICESTATE_TYPE