Condividi tramite


struttura D3DKMT_GETDEVICESTATE (d3dkmthk.h)

La struttura D3DKMT_GETDEVICESTATE descrive i parametri per il recupero dello stato di un dispositivo.

Sintassi

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

Handle per il dispositivo per cui viene richiesto lo stato.

[in] StateType

Valore tipizzato D3DKMT_DEVICESTATE_TYPE che indica il tipo di stato da recuperare per il dispositivo.

[out] ExecutionState

Valore tipizzato D3DKMT_DEVICEEXECUTION_STATE che indica lo stato di esecuzione del dispositivo. L'unione contenuta in D3DKMT_GETDEVICESTATE contiene un valore da questa enumerazione se il membro StateType è D3DKMT_DEVICESTATE_EXECUTION.

[in/out] PresentState

Struttura D3DKMT_DEVICEPRESENT_STATE che descrive i parametri per il recupero dello stato corrente del dispositivo. L'unione contenuta in D3DKMT_GETDEVICESTATE contiene una struttura di questo tipo se il membro StateType è D3DKMT_DEVICESTATE_PRESENT.

[out] ResetState

Struttura D3DKMT_DEVICERESET_STATE che descrive lo stato di reimpostazione del dispositivo. L'unione contenuta in D3DKMT_GETDEVICESTATE contiene una struttura di questo tipo se il membro StateType è D3DKMT_DEVICESTATE_RESET.

PresentStateDWM

PageFaultState

PresentQueueState

Requisiti

Requisito Valore
Client minimo supportato Windows Vista
Intestazione d3dkmthk.h (include D3dkmthk.h)

Vedi anche

D3DKMTGetDeviceState

D3DKMT_DEVICEEXECUTION_STATE

D3DKMT_DEVICEPRESENT_STATE

D3DKMT_DEVICERESET_STATE

D3DKMT_DEVICESTATE_TYPE