Platform SDK: Hardware

DEV_BROADCAST_PORT

The DEV_BROADCAST_PORT structure contains information about a modem, serial, or parallel port.

typedef struct _DEV_BROADCAST_PORT {
  DWORD dbcp_size; 
  DWORD dbcp_devicetype; 
  DWORD dbcp_reserved; 
  TCHAR dbcp_name[1]; 
} DEV_BROADCAST_PORT *PDEV_BROADCAST_PORT;

Members

dbcp_size
Specifies the size of this structure, in bytes.
dbcp_devicetype
Set to the device type DBT_DEVTYP_PORT.
dbcp_reserved
Reserved; do not use.
dbcp_name
A null-terminated string specifying the friendly name of the port or the device connected to the port. Friendly names are intended to help the user quickly and accurately identify the device—for example, "COM1" and "Standard 28800 bps Modem" are considered friendly names.

Requirements

  Windows NT/2000: Requires Windows 2000.
  Windows 95/98: Requires Windows 95 or later.
  Header: Declared in Dbt.h.

See Also

Device Management Overview, Device Management Structures, DEV_BROADCAST_HDR, WM_DEVICECHANGE