This structure is used with the MgslEnumeratePorts API call to get an array of all available ports on a computer. See the Opening the Port section of the API Description for more details about the PortID and device name.
typedef struct _MGSL_PORT
{
ULONG PortID;
ULONG DeviceID;
ULONG BusType;
char DeviceName[25];
} MGSL_PORT, *PMGSL_PORT;
| PortID | Integer port identifier | ||||||||||
| DeviceID |
Identifies the type of adapter:
|
||||||||||
| BusType |
Specifies the expansion bus type:
MGSL_BUS_TYPE_ISA MGSL_BUS_TYPE_EISA MGSL_BUS_TYPE_PCI MGSL_BUS_TYPE_PCMCIA |
||||||||||
| DeviceName | Displayable port name |
| Previous | Contents | Next |