DXGKCB_IS_DEVICE_PRESENT callback function (dispmprt.h)

The DxgkCbIsDevicePresent function determines whether a specified PCI device is present.

Syntax

DXGKCB_IS_DEVICE_PRESENT DxgkcbIsDevicePresent;

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

Parameters

[in] DeviceHandle

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.

[in] DevicePresenceParameters

A pointer to a PCI_DEVICE_PRESENCE_PARAMETERS structure (defined in Wdm.h) that the caller fills in with information that identifies the device.

[out] DevicePresent

A pointer to a Boolean variable that receives TRUE if the device is present or FALSE if the device is not present.

Return value

DxgkCbIsDevicePresent returns STATUS_SUCCESS if it succeeds. Otherwise, it returns one of the error codes defined in Ntstatus.h.

Requirements

Requirement Value
Minimum supported client Available in Windows Vista and later versions of the Windows operating systems.
Target Platform Desktop
Header dispmprt.h (include Dispmprt.h)
IRQL PASSIVE_LEVEL