深入浅出HOOKS(之陆)[11]

[入库:2005年8月18日] [更新:2007年3月24日]

本文简介:选择自 jaccorporation 的 blog

 ****************************************************************/

 

lresult callback debugproc(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[debug].hhook, ncode,

            wparam, lparam);

 

    hdc = getdc(hwndmain);

 

    switch (ncode)

    {

        case hc_action:

            cch = wsprintf(szbuf,

                "debug - ncode: %d, tsk: %ld, %d times   ",

                ncode,wparam, c++);

            textout(hdc, 2, 55, szbuf, cch);

            break;

 

        default:

本文关键:hooks
 

本站最佳浏览方式为 分辨率 1024x768 IE 6.0(或更高版本的 IE浏览器)

go top