MGSL_PORT Structure


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:
SYNCLINK_DEVICE_ID SyncLink PCI or ISA adapter
SYNCLINK_DEVICE_ID SyncLink PCI or ISA adapter
SYNCLINK_SCC_DEVICE_ID SyncLink SCC PCI or ISA adapter
SYNCLINK_SCA_DEVICE_ID SyncLink Multiport PCI adapter
SYNCLINK_PCCARD_DEVICE_ID SyncLink PC Card
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