Expand Minimize

D3DKMT_GETDEVICESTATE structure

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

Syntax


typedef struct _D3DKMT_GETDEVICESTATE {
  D3DKMT_HANDLE           hDevice;
  D3DKMT_DEVICESTATE_TYPE StateType;
  union {
    D3DKMT_DEVICEEXECUTION_STATE ExecutionState;
    D3DKMT_DEVICEPRESENT_STATE   PresentState;
    D3DKMT_DEVICERESET_STATE     ResetState;
  };
} D3DKMT_GETDEVICESTATE;

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.

Requirements

Version

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

Header

D3dkmthk.h (include D3dkmthk.h)

See also

D3DKMT_DEVICEEXECUTION_STATE
D3DKMT_DEVICEPRESENT_STATE
D3DKMT_DEVICERESET_STATE
D3DKMT_DEVICESTATE_TYPE
D3DKMTGetDeviceState

 

 

Send comments about this topic to Microsoft

Show:
© 2014 Microsoft