Allows to react on virtual serial port opening. So, application can allow or prohibit access to the serial port.
QueryOpen As Boolean
|Visual C++ (MFC)||
BOOL get_QueryOpen(); void put_QueryOpen(BOOL value);
|Visual C++ (#import)||
If FALSE, the port can be opened by any application.
If TRUE, it is not possible to open port if your application is not attached to the port (refer to Attach). ERROR_ACCESS_DENIED error code is returned in such case. If attached, OnQueryOpen event fires and the event handler decides, if it is allowed to open virtual serial port to the application or not.
FALSE by default.