OnOpenClose Event in Serial Port Sniffer AX Control

The OnOpenClose event occurs when other application opens or closes sniffed serial port.

OnOpenClose(
 BOOL Opened// Port state
BSTR Path// the full path to executable
);


Parameters
  Opened     [in] Captures the change of state of the sniffed serial port. This parameter can be any of the following values:

ValueMeaning
TRUEPort was open
FALSEPort was closed

Path     [in] This is the full path to application that has opened the port. This parameter is applicable if Opened variable is TRUE