GUID_DEVINTERFACE_COMPORT

The GUID_DEVINTERFACE_COMPORT device interface class is defined for COM ports.

Attribute Setting
Identifier GUID_DEVINTERFACE_COMPORT
Class GUID {86E0D1E0-8089-11D0-9CE4-08003E301F73}

Remarks

Drivers for serial ports register instances of this device interface class to notify the operating system and applications of the presence of COM ports.

The system-supplied function driver for serial ports registers an instance of this device interface class for a serial port.

Using the device interface (GUID_DEVINTERFACE_COMPORT) is the recommended way to discover and access a COM port. Using legacy COM port names is prone to name collisions and doesn't provide state change notifications to a client. Refer to the sample code that illustrates how to access a device using this device interface.

The following samples (on GitHub) register an instance of this class for a serial port:

GUID_CLASS_COMPORT is an obsolete identifier for this device interface class; for new instances of this class, use GUID_DEVINTERFACE_COMPORT instead.

Requirements

   
Version Available in Microsoft Windows 2000 and later versions of Windows.
Header Ntddser.h (include Ntddser.h)

See also