User manual

Table Of Contents
FieldMaxII-TO User Manual
56
Interface
IFM2Listener
method GetUSBDeviceStatusChange();
(serves internal processing purposes only)
propget DeviceIndex([out, retval] short* );
(serves internal processing purposes only)
propget SerialNumber([out, retval] BSTR* );
Read only property to identify the serial number that
pertains to a meter USB connect/disconnect event.
propput DeviceHandle([in] long );
propget DeviceHandle([out, retval] long* );
(serves internal processing purposes only)
Interface
cFM2Listener
propget DeviceIsPresent([out, retval] VARIANT_
BOOL* );
Read only property that reflects the state of meter added
or removed. It is true if the meter is added (connected)
and false if the meter is removed (disconnected).
propget DevicesList([out, retval] cFM2Devices** );
Read only property, a collection type that holds the list of
all connected meters.
propput DeviceEvents([in] IFM2DeviceEvents* rhs);
Write only property used to pass the callback object to
the listener.
Interface
IFM2DeviceEvents
method DisplayErrorToClient();
The callback method that dispatches errors. Errors are
described in text with the CallbackMessage property.