Partager via


DXGKCB_IS_DEVICE_PRESENT fonction de rappel (dispmprt.h)

La fonction DxgkCbIsDevicePresent détermine si un appareil PCI spécifié est présent.

Syntaxe

DXGKCB_IS_DEVICE_PRESENT DxgkcbIsDevicePresent;

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

Paramètres

[in] DeviceHandle

Handle qui représente un adaptateur d’affichage. Le pilote miniport d’affichage a précédemment obtenu ce handle dans le membre DeviceHandle de la structure DXGKRNL_INTERFACE qui a été passée à DxgkDdiStartDevice.

[in] DevicePresenceParameters

Pointeur vers une structure PCI_DEVICE_PRESENCE_PARAMETERS (définie dans Wdm.h) que l’appelant remplit avec des informations qui identifient l’appareil.

[out] DevicePresent

Pointeur vers une variable booléenne qui reçoit TRUE si l’appareil est présent ou FALSE si l’appareil n’est pas présent.

Valeur de retour

DxgkCbIsDevicePresent retourne STATUS_SUCCESS si elle réussit. Sinon, elle retourne l’un des codes d’erreur définis dans Ntstatus.h.

Exigences

Exigence Valeur
client minimum pris en charge Windows Vista
plateforme cible Bureau
d’en-tête dispmprt.h (include Dispmprt.h)
IRQL PASSIVE_LEVEL