lookupthemessage((pmsg) lparam, szmsg);
hdc = getdc(hwndmain);
cch = wsprintf(szbuf,
"mouse - ncode: %d, msg: %s, x: %d, y: %d, %d times ",
ncode, szmsg, loword(lparam), hiword(lparam), c++);
textout(hdc, 2, 95, szbuf, cch);
releasedc(hwndmain, hdc);
return callnexthookex(myhookdata[mouse].hhook, ncode, wparam,
lparam);
}
/****************************************************************
wh_keyboard hook procedure
****************************************************************/
lresult callback keyboardproc(int ncode, wparam wparam, lparam lparam)
{
char szbuf[128];
hdc hdc;
static int c = 0;
int cch;
if (ncode < 0) // do not process message
return callnexthookex(myhookdata[keyboard].hhook, ncode,
wparam, lparam);