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

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

本文简介:选择自 jaccorporation 的 blog

            // 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

本文关键:hooks
 

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

go top