Virtual Serial Port ActiveX Control - OnOpenClose Event

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

OnOpenClose(
  BOOL Opened // Port state
);

Parameters
  Opened     [out] Determines the state change of virtual serial port. This parameter can be any of the following values:    

Value Meaning
TRUE Port was opened
FALSE Port was closed