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

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

本文简介:选择自 jaccorporation 的 blog

    int index;

    static hmenu hmenu;

 

    switch (umsg)

    {

        case wm_create:

 

            // save the menu handle.

 

            hmenu = getmenu(hwndmain);

 

            // initialize structures with hook data. the menu-item

            // identifiers are defined as 0 through 6 in the

            // header file. they can be used to identify array

            // elements both here and during the wm_command

            // message.

 

            myhookdata[idm_callwndproc].ntype = wh_callwndproc;

            myhookdata[idm_callwndproc].hkprc = callwndproc;

            myhookdata[idm_cbt].ntype = wh_cbt;

            myhookdata[idm_cbt].hkprc = cbtproc;

            myhookdata[idm_debug].ntype = wh_debug;

本文关键:hooks
 

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

go top