hooks help

  • From: "Littlefield, Tyler" <tyler@xxxxxxxxxxxxx>
  • To: <programmingblind@xxxxxxxxxxxxx>
  • Date: Thu, 13 Dec 2007 12:08:51 -0700

Hello,
I've got an issue.
I wrote a keyboard hook, and it seems to be working, though I don't think I 
wrote the hook proc right.
Help would be awesome.


/*hook procedure*/
LRESULT CALLBACK KeyboardProc(int code, WPARAM wParam, LPARAM lParam) {
 LRESULT mx;
mx=(CallNextHookEx(NULL, code,wParam,lParam));
if (mx==HC_ACTION) {
 Print((char)wParam);
return (CallNextHookEx(NULL, code,wParam,lParam));
}
/*hook code end*/

I use print, just to print the code to a file, but convert it.
Thanks,
Tyler Littlefield
Vertigo head coder.
"I can only please one person per day; Today doesn't seem like your day, and 
tomorrow doesn't look to promising either."
"A life? Where can I download that at?"

Contact information:
email: tyler@xxxxxxxxxxxxx
skype: st8amnd127
aim: st8amnd2005
msn: tyler@xxxxxxxxxxxxx

Other related posts: