CHAILink SDK  Version 1.3
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
typedef void(* NH_LOCALDEVICE_SCT_STARTED)(CPHOBJECT const hLocalDevice, ObjectTypes const deviceType, CPUINT32 const dwDeviceUserData, CPUINT16 const wSessionID, CPUINT16 const wArraySize, CPBOOLEAN const fTruncated)

Initiate a SmartConnect session. The source device IDs array contains a list of controller devices to be assigned during this session. The LocalDevice_SCT_RequestControllerList function can be used to continue the SmartConnect process.

Parameters
[in]hLocalDeviceHandle to the notified local device.
[in]deviceTypeType of the notified local device. See ObjectTypes
[in]dwDeviceUserDataThe user data associated to the device handle during its creation.
[in]wSessionIDthe SmartConnect session ID
[in]wArraySizesource devices array size. Use the LocalDevice_SCT_Started_GetDeviceID function to access DeviceIDs
[in]fTruncatedIndicate that the DeviceID array has been truncated due to a too small buffer (CLMSG_MESSAGESIZE)
Warning
The LocalDevice_SCT_Started_GetDeviceID function can access DeviceIDs only during the notification.
Remarks
This notification is activated by using LocalDevice_RegisterSmartConnectTargetNotificationHandler. When this function is defined NH_LOCALDEVICE_SCT_SECTIONLISTREPLY, NH_LOCALDEVICE_SCT_CONTROLLERLISTREPLY and NH_LOCALDEVICE_SCT_FINISHED must also be defined.