DisplayAdapter Class

Definition

Represents a hardware display controller. This is typically a GPU (graphics processing unit).

public ref class DisplayAdapter sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 458752)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class DisplayAdapter final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 458752)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class DisplayAdapter
Public NotInheritable Class DisplayAdapter
Inheritance
Object Platform::Object IInspectable DisplayAdapter
Attributes

Windows requirements

Device family
Windows 10, version 1809 (introduced in 10.0.17763.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v7.0)

Properties

DeviceInterfacePath

Gets the PnP device interface path for this adapter.

Id

Gets a numeric locally unique ID (LUID) that refers to the runtime instance of the display adapter. This ID changes if the adapter's PnP device is stopped/started, or if the system reboots.

An LUID is a 64-bit value guaranteed to be unique only on the system on which it was generated. The uniqueness of an LUID is guaranteed only until the adapter's PnP device is stopped/started, or if the system is restarted. This LUID is compatible with Direct3D, DisplayConfig, and HolographicSpace APIs.

IsIndirectDisplayDevice
PciDeviceId

Gets the PCI device ID of the adapter.

PciRevision

Gets the PCI revision number of the adapter.

PciSubSystemId

Gets the PCI subsystem ID of the adapter.

PciVendorId

Gets the PCI vendor ID of the adapter.

PreferredRenderAdapter
Properties

Gets a collection containing the properties of the display adapter.

SourceCount

Gets the number (the count) of hardware sources exposed by the display driver. This is typically the maximum number of simultaneous paths allowed by the adapter.

Methods

FromId(DisplayAdapterId)

Retrieves a DisplayAdapter for the given display adapter ID, if the adapter still exists on the system. This method throws an exception if the specified adapter cannot be found, or if it is no longer present on the system.

Applies to