CHAILink SDK  Version 1.3
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
typedef void(* NH_INPUT_MESSAGE)(CPHOBJECT const hInput, CPUINT32 const dwInputUserData, CPHOOKEDOBJECT const hMessage, ObjectTypes const messageType, CPENDPOINT const *const pSource, CPTIMESTAMPINFO const *const pTimeStamp)

Called on message reception other than Event, Modifier, Text, Selector and MidiSysEx. Actually only Data Transfer Message are handled this way.

Parameters
[in]hInputHandle to the notified input.
[in]dwInputUserDataThe user data associated to the input handle during its creation.
[in]hMessageHandle to the message. This handle is only valid during notification. If application needs to keep this handle it must acquire it with HookedObject_Acquire and release it with HookedObject_Release when it is no longer used.
[in]messageTypeThe message type. See ObjectTypes enumeration in CLC_Enums.h
[in]pSourcePointer to the message's source
[in]pTimeStampPointer to a CPTIMESTAMPINFO structure containing the timestamp information if sender has timestamped his message. Only present if Input_ActivateMessageTimestamp has been called for this input, otherwise NULL.
Remarks
Data Transfer Message can be manipulated using DataTransferMessage_* functions.
This notification is activated by using Input_RegisterNotificationHandler.