VSBUS_QUERY_EX2

typedef struct _VSBUS_QUERY_EX2{
   IN ULONG Size;
   IN ULONG QueryType;
   IN WCHAR PortName[MAX_PORTNAME_LEN];
   IN WCHAR UserSession[MAX_PORTNAME_LEN];
}VSBUS_QUERY_EX2, *PVSBUS_QUERY_EX2;

Members

  • Size

VSBUS_QUERY_EX2 structure size

  • QueryType
QUERYTYPE_PORTS value meaning
1 query all virtual ports
2 query particular virtual pair. PORT_INFORMATION_EX
3 query particular virtual pair; name of the application, which created the port, is returned. PORT_INFORMATION_EX2
4 query particular virtual pair extended; PORT_INFORMATION_EX3
  • PortName

Unicode name of any port in the pair you want to delete. For instance, if “COM6-COM7” virtual serial ports pair was created, then to remove it, PortName’s value should be COM6 or COM7.

  • UserSession

Offset to the string with User Session ID.