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;

Membri

[in] hDevice

Handle per il dispositivo per cui viene richiesto lo stato.

[in] StateType

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

[out] ExecutionState

Valore D3DKMT_DEVICEEXECUTION_STATEtipizzato che indica lo stato di esecuzione del dispositivo. L'unione contenuta in D3DKMT_GETDEVICESTATE contiene un valore di 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

Fabbisogno

Requisito Valore
client minimo supportato Windows Vista
intestazione d3dkmthk.h (include D3dkmthk.h)

Vedere anche

D3DKMTGetDeviceState

D3DKMT_DEVICEEXECUTION_STATE

D3DKMT_DEVICEPRESENT_STATE

D3DKMT_DEVICERESET_STATE

D3DKMT_DEVICESTATE_TYPE