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(
  _In_  HANDLE                          DeviceHandle,
  _In_  PPCI_DEVICE_PRESENCE_PARAMETERS DevicePresenceParameters,
  _Out_ PBOOLEAN                        DevicePresent
)
{ ... }

Parameters

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.

Return value

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

Requirements

Target platform

Desktop

Version

Available in Windows Vista and later versions of the Windows operating systems.

Header

Dispmprt.h (include Dispmprt.h)

IRQL

PASSIVE_LEVEL

 

 

Send comments about this topic to Microsoft

Show: