3. Implementation/Hooking Windows
Recording mouse and keyboard events and playing them back
SSKK
2010. 3. 11. 05:37
WH_JOUNALRECORD 를 이용하여 이벤트를 후킹한 예이다.
The code is organized into two projects. One being the application that controls start and stop of record and play events, and other is the DLL which actually does the job.
For WH_JOURNALRECORD hooks, DLL may not be required and the core logic can embedded in the application source itself.
Following is how the application works:
For starting recording: Click File->Start recording and then press Start button on the menu.
all the events get recorded in c:\recording.txt
To stop recording, click File->stop recording.
To play back the recording, click File->Play and then press the start button on the menu.
Following is the hook procedure that records the events
......
http://www.codeproject.com/KB/winsdk/WIN_RECORDER.aspx