USB Port Monitoring Control
USB Monitoring Control - USB Device Data Monitoring ActiveX Component Library

_IMonitoringEvents.OnConnection Method

HHD Software - Hex Editor Serial Port Monitor USB Protocol Analyzer Network Monitor
 
 
 
< Previous Top Next >
Declaration
Automation:
HRESULT  OnConnection ( [in]   DateTime  time, [in]   enum ConnectionState  cs, [in]   String  Name) ;
Parameters
time The time of the event. cs The value of this parameter is DeviceConnected if device is connected and DeviceDisconnected if device is disconnected. Name Name of the device. You can get it by retrieving IDevice.Name at any time.
Return Value
S_OK or standard OLE error code.
Remarks
Called when the control attaches/detaches itself to/from the USB device. (it is fired when USB packet with EventType=EVENT_DEVICECONNECTED or EVENT_DEVICEDISCONNECTED is received).
< Previous Top Next >
Copyright © 2016 HHD Software. All rights reserved.