// call an application-defined function that converts a
// message constant to a string and copies it to a
// buffer.
lookupthemessage((pmsg) lparam, szmsg);
hdc = getdc(hwndmain);
cch = wsprintf(szmsgbuf,
"getmessage - wparam: %s, msg: %s, %d times ",
szrem, szmsg, c++);
textout(hdc, 2, 35, szmsgbuf, cch);
break;
default:
break;
}
releasedc(hwndmain, hdc);
return callnexthookex(myhookdata[getmessage].hhook, ncode,
wparam, lparam);
}
/****************************************************************
wh_debug hook procedure