DXGKCB_IS_DEVICE_PRESENT callback function

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

Syntax

DXGKCB_IS_DEVICE_PRESENT DxgkcbIsDevicePresent;

NTSTATUS DxgkcbIsDevicePresent(
  HANDLE DeviceHandle,
  PPCI_DEVICE_PRESENCE_PARAMETERS DevicePresenceParameters,
  PBOOLEAN DevicePresent
)
{...}

Parameters

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.

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.

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

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