[in] | preferredMsgType | the preferred message type for the control (if any, can be CPNS::Enums::MT_None) |
[in] | wPreferredMsgNum | the preferred message number for the control (if any) |
[in] | wGroup | controller's group. Controllers having the same group number (>0) are physically attached. |
[in] | pSectionID | Pointer to the related section ID. If empty, it is automatically set to {type CPNS::Enums::SECT_Multipurpose, instance 0}. If it is not empty, the SectionType part must not be a wildcard value. If the instance part is 0xFFFF (wildcard), it is automatically assigned to the next free instance number for the specified section type. |
[in] | dwControllerUserData | A 32 bit user data associated to the returned controller handle. This data will be passed back to the application in controller notifications. |
[out] | phController | Pointer to the handle of the newly created controller, or CPHOBJECT_NULL if call failed. |
[out] | pwControllerID | Pointer to the Controller ID of the newly created controller (inherit from IBaseOutput). |