Condividi tramite


DXGKCB_IS_DEVICE_PRESENT funzione di callback (dispmprt.h)

La funzione DxgkCbIsDevicePresent determina se è presente un dispositivo PCI specificato.

Sintassi

DXGKCB_IS_DEVICE_PRESENT DxgkcbIsDevicePresent;

NTSTATUS DxgkcbIsDevicePresent(
  [in]  HANDLE DeviceHandle,
  [in]  PPCI_DEVICE_PRESENCE_PARAMETERS DevicePresenceParameters,
  [out] PBOOLEAN DevicePresent
)
{...}

Parametri

[in] DeviceHandle

Handle che rappresenta una scheda di visualizzazione. Il driver miniport visualizzato in precedenza ha ottenuto questo handle nel membro DeviceHandle della struttura DXGKRNL_INTERFACE passata a DxgkDdiStartDevice.

[in] DevicePresenceParameters

Puntatore a una struttura PCI_DEVICE_PRESENCE_PARAMETERS (definita in Wdm.h) che il chiamante inserisce con informazioni che identificano il dispositivo.

[out] DevicePresent

Puntatore a una variabile booleana che riceve TRUE se il dispositivo è presente o FALSE se il dispositivo non è presente.

Valore restituito

DxgkCbIsDevicePresent restituisce STATUS_SUCCESS se ha esito positivo. In caso contrario, restituisce uno dei codici di errore definiti in Ntstatus.h.

Requisiti

Requisito Valore
Client minimo supportato Windows Vista
Piattaforma di destinazione Desktop
Intestazione dispmprt.h (include Dispmprt.h)
IRQL PASSIVE_LEVEL