Virtual Serial Port Tools - Advanced serial port configurations for your custom ports usage scenario
Docs

ISerialPortLibraryListener Interface

This interface is implemented by the user application to receive notifications about created and deleted virtual serial devices. An instance of the object implementing this interface must be registered with a library by calling ISerialPortLibrary.addListener method.

Declaration

// This interface is not available in scripting environment
public interface ISerialPortLibraryListener
{
    // Methods
    void ${added}(${SerialPortType} type, Array devices);
    void ${deleted}(${SerialPortType} type, Array devices);
}
struct ISerialPortLibraryListener : IDispatch
{
    // Methods
    HRESULT ${added}(${SerialPortType} type, SAFEARRAY(${IDevice}) devices);
    HRESULT ${deleted}(${SerialPortType} type, SAFEARRAY(${IDevice}) devices);
};

ISerialPortLibraryListener Methods

added

// This method is not available in scripting environment
void added(${SerialPortType} type, Array devices);
HRESULT added(${SerialPortType} type, SAFEARRAY(${IDevice}) devices);
type
The type of devices in the notification
devices
Array of devices that are being created.

Called when devices of specified type are being created.

deleted

// This method is not available in scripting environment
void deleted(${SerialPortType} type, Array devices);
HRESULT deleted(${SerialPortType} type, SAFEARRAY(${IDevice}) devices);
type
The type of devices in the notification
devices
Array of devices that have been deleted.

Called after devices of specified type have been deleted.