Description
The BindToSystemInterface method is called once during the creation of the device object, to pass in the instance of the ISystemDeviceInterface object to use for communication with the system. Devices are free to keep a reference to this interface for the lifetime of the device object. See the Plugin Model document for more information on the stages of device initialization.
Note that the Device base class implements this method, and stores a reference to the object. If a device derives from this base class, it can retrieve the object by calling the GetSystemInterface method on the Device base class.
Usage
virtual bool BindToSystemInterface(ISystemDeviceInterface* asystemInterface);
Argument list
- asystemInterface [ISystemDeviceInterface*]
- The instance of the ISystemDeviceInterface object for use in this device
Return value
- [bool]
- True if the interface was bound successfully, false otherwise. If a device returns false from this method, the creation of the device object will be considered to have failed, and the destructor of the device object will immediately be called.