Structures - VSBUS_QUERY_EX

typedef struct _VSBUS_QUERY_EX{
   IN ULONG Size;
   IN ULONG QueryType;


  • 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.