Structures – VSBUS_QUERY_EX

typedef struct _VSBUS_QUERY_EX{
   IN ULONG Size;
   IN ULONG QueryType;
   IN WCHAR PortName[MAX_PORTNAME_LEN];
}VSBUS_QUERY_EX, *PVSBUS_QUERY_EX;

Members:

  • Size : VSBUS_QUERY_EX 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
  • 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.