OnOpenClose event in Serial Port Monitor AX

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:    

Value Meaning
TRUE Port was open
FALSE Port 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