break;
}
releasedc(hwndmain, hdc);
return callnexthookex(myhookdata[debug].hhook, ncode, wparam,
lparam);
}
/****************************************************************
wh_cbt hook procedure
****************************************************************/
lresult callback cbtproc(int ncode, wparam wparam, lparam lparam)
{
char szbuf[128];
char szcode[128];
hdc hdc;
static int c = 0;
int cch;
if (ncode < 0) // do not process message
return callnexthookex(myhookdata[cbt].hhook, ncode, wparam,
lparam);
hdc = getdc(hwndmain);
switch (ncode)