[in] | deviceType | Sub-device's type. see ObjectTypes enumeration. |
[in] | wModelID | model ID code |
[in] | dwDuplicateNumber | Preferred duplicate number for DM_Auto mode (might change in case of conflict), or requested number for DM_Fixed mode. Duplicate 0xFFFFFFFF is not allowed. If 0 is provided, a duplicate is automatically assigned by the system and the notification NH_LOCALDEVICE_NOTIFICATION is called with BLDNT_NewDuplicateNumber. Use LocalDevice_GetInfo to retreive the new duplicate A best practice is to store the returned duplicate number and reuse it. |
[in] | duplicateMode | Duplicate resolution mode |
[in] | fHidden | Indicates if device is hidden or not. |
[in] | extendedCapabilities | Sub-Device's extended capabilities. See ExtendedDeviceCapabilities enumeration. |
[in] | utf8ModelName | Model name |
[in] | dwDeviceUserData | A 32 bit user data associated to the returned device handle. This data will be passed back to the application in Device notifications. |
[out] | phDevice | Pointer to the handle of the new local device, or CPHOBJECT_NULL if call failed. |