|
|||||||||
LRESULT CALLBACK JournalRecordProc(int code,WPARAM wparam,LPARAM lparam);
LRESULT CALLBACK JournalPlaybackProc(int code,WPARAM wparam,LPARAM lparam);
The first callback function is set as a hook when you want to record messages, and the second one is used when you want to playback them. What you do is implement these functions and take action, depending on the code parameter. lparam is a pointer to an EVENTMSG structure, that contains fields describing the message, like the HWND of the window to which the message is directed, the keystroke value, the type of message (WM_KEYUP...).