CHAILink SDK  Version 1.3
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
CLC_ErrorCode Input_RegisterNotificationHandler ( CPHOBJECT const  hInput)

Register notification handler for the specified input.

Parameters
[in]hInputInput Handle.
Returns
Standard CHAILink Client return code. See CLC_ErrorCode enumeration.
Remarks
Concerned fields in the callback notification structure (CLC_NH_CallbackList) : NH_INPUT_SOURCECHANGE, NH_INPUT_MESSAGE, NH_INPUT_EVENTMESSAGE, NH_INPUT_MODIFIERMESSAGE, NH_INPUT_SELECTORMESSAGE, NH_INPUT_TEXTMESSAGE and NH_INPUT_MIDISYSEXMESSAGE. At least one of these fields must be set.
Warning
This function can only be called in CopperLan context. This means in the pseudo task CPDoProcess(), in notification handlers or in asynchronous return handlers and not in SystemDoProcess() for instance.