Structures – PORT_INFORMATION_EX

typedef struct _PORT_INFORMATION_EX{
   ULONG NextOffset;
   ULONG NameOffset;
   ULONG Instance;
   ULONG ConnectedInstance;
   ULONG32 Application;
   ULONG64 OwnerPid;
   ULONG32 TxCount;
   ULONG32 RxCount;
   SERIAL_BAUD_RATE Baudrate;
   SERIAL_LINE_CONTROL LineControl;
   VSERIAL_WIRING Wiring;
   SERIAL_HANDFLOW HandFlow;
   VSERIAL_STATE State;
   ACCESS_LIST AccessList;
}PORT_INFORMATION_EX, *PORT_INFORMATION_EX;

Members:

  • NextOffset : Offset of the next PORT_INFORMATION_EX structure
  • NameOffset : Offset of the name
  • Instance : Instance of the virtual serial pair
  • ConnectedInstance : Instance of remote port which is linked with current port
  • Application : Offset to the application name, which opened the port. If the value is 0, then there is no name
  • OwnerPid : Application, which opened port
  • TxCount : Number of bytes transmitted through this port
  • RxCount : Number of bytes received by this port
  • Baudrate : instance of SERIAL_BAUD_RATE structure that holds current baudrate value
  • LineControl : instance of SERIAL_LINE_CONTROL structure that holds current LineControl state value
  • Wiring : instance of VSERIAL_WIRING structure that stores current signal line pinout settings
  • State : instance of VSERIAL_STATE structure that holds current port state value
  • Handflow : information about the configuration of the handshake flow control set for a serial device, instance of SERIAL_HANDFLOW structure
  • AccessList : list of port access procedure, instance of ACCESS_LIST structure