// dispmprt.h
DXGKCB_IS_DEVICE_PRESENT DxgkcbIsDevicePresent;
NTSTATUS DxgkcbIsDevicePresent(
[in] HANDLE DeviceHandle,
[in] PPCI_DEVICE_PRESENCE_PARAMETERS DevicePresenceParameters,
[out] PBOOLEAN DevicePresent
)
{...}
View the official Windows Driver Kit DDI referenceNo description available.
The DxgkCbIsDevicePresent function determines whether a specified PCI device is present.
DeviceHandle [in]A handle that represents a display adapter. The display miniport driver previously obtained this handle in the DeviceHandle member of the DXGKRNL_INTERFACE structure that was passed to DxgkDdiStartDevice.
DevicePresenceParameters [in]A pointer to a PCI_DEVICE_PRESENCE_PARAMETERS structure (defined in Wdm.h) that the caller fills in with information that identifies the device.
DevicePresent [out]A pointer to a Boolean variable that receives TRUE if the device is present or FALSE if the device is not present.
DxgkCbIsDevicePresent returns STATUS_SUCCESS if it succeeds. Otherwise, it returns one of the error codes defined in Ntstatus.h.