You implement this interface to receive the events fired by the USB Monitor Control library's main object.
The USB Monitor Control calls the _IUsbMonitorEvents.OnChange method when there is a change in the device collection entries. Please see documentation for the _IMonitoringEvents interface for information on binding to the event source.
// This interface is not available in scripting environment
public interface _IUsbMonitorEvents
{
// Methods
void ${OnChange}();
}
struct _IUsbMonitorEvents : IDispatch
{
// Methods
HRESULT ${OnChange}();
};
// This method is not available in scripting environment
void OnChange();
HRESULT OnChange();
Fired when device appears or disappears.