wparam, szmsg, c++);
textout(hdc, 2, 15, szcwpbuf, cch);
break;
default:
break;
}
releasedc(hwndmain, hdc);
return callnexthookex(myhookdata[callwndproc].hhook, ncode,
wparam, lparam);
}
/****************************************************************
wh_getmessage hook procedure
****************************************************************/
lresult callback getmsgproc(int ncode, wparam wparam, lparam lparam)
{
char szmsgbuf[256];
char szrem[16];
char szmsg[16];
hdc hdc;
static int c = 0;
int cch;
if (ncode < 0) // do not process message