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.