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

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

本文简介:选择自 jaccorporation 的 blog

            myhookdata[idm_debug].hkprc = debugproc;

            myhookdata[idm_getmessage].ntype = wh_getmessage;

            myhookdata[idm_getmessage].hkprc = getmsgproc;

            myhookdata[idm_keyboard].ntype = wh_keyboard;

            myhookdata[idm_keyboard].hkprc = keyboardproc;

            myhookdata[idm_mouse].ntype = wh_mouse;

            myhookdata[idm_mouse].hkprc = mouseproc;

            myhookdata[idm_msgfilter].ntype = wh_msgfilter;

            myhookdata[idm_msgfilter].hkprc = messageproc;

 

            // initialize all flags in the array to false.

 

            memset(afhooks, false, sizeof(afhooks));

 

            return 0;

 

        case wm_command:

            switch (loword(wparam))

            {

                 // the user selected a hook command from the menu.

 

本文关键:hooks
 

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

go top