智动软件 - 站长优化推广网站好帮手
帐号: 密码: 注册会员
模糊 标题

钩子(HOOK)函数教程(二十七)

时间:2010-04-21 Tag: HOOK 钩子 教程 点击:统计中..

下面是应用Hook时会用到的各种结构。 智动软件

结构1CBT_CREATEWND Structure zdwork.cn

The CBT_CREATEWND structure contains information passed to a WH_CBT hook procedure, CBTProc, before a window is created. 本文来自智动软件zdwork.cn

该结构包含有:在一个窗口被创建之前传递给WH_CBT钩子子程,即CBTProc,的信息。 www.zdwork.cn

Syntaxy语法 本文来自智动软件zdwork.cn

typedef struct { copyright 智动软件 
    LPCREATESTRUCT lpcs; 智动软件 
    HWND hwndInsertAfter; www.zdwork.cn 
} CBT_CREATEWND, *LPCBT_CREATEWND; www.zdwork.cn 

Members成员

copyright 智动软件

lpcs www.zdwork.cn

Pointer to a CREATESTRUCT structure that contains initialization parameters for the window about to be created. 一个指向CREATESTRUCT结构的指针,该结构包含即将被创建的窗体的初始化参数。

www.zdwork.cn

hwndInsertAfter zdwork.cn

Handle to the window whose position in the Z order precedes that of the window being created.

www.zdwork.cn

窗体的句柄,该窗体的Z轴位置在正在被创建的窗体的Z轴位置之前。 zdwork.cn

  内容来自zdwork.cn

结构2CBTACTIVATESTRUCT Structure

本文来自智动软件zdwork.cn

The CBTACTIVATESTRUCT structure contains information passed to a WH_CBT hook procedure, CBTProc, before a window is activated.

内容来自zdwork.cn

CBTACTIVATESTRUCT 结构包含在窗体被激活之前,传递给WH_CBT钩子子程CBTProc 的信息。 zdwork.cn

Syntax copyright 智动软件

typedef struct { 
copyright 智动软件
    BOOL fMouse; 

zdwork.cn

    HWND hWndActive; 本文来自智动软件zdwork.cn 
} CBTACTIVATESTRUCT, *LPCBTACTIVATESTRUCT; copyright 智动软件 

Members 成员 内容来自zdwork.cn

fMouse

内容来自zdwork.cn

Specifies whether the window is being activated as a result of a mouse click. This value is TRUE if a mouse click is causing the activation or FALSE if it is not. 指定窗体是否是由于鼠标的点击而导致被激活。如果是因为鼠标的点击而引发了窗体的激活,返回true,否则返回false

智动软件

hWndActive

内容来自zdwork.cn

Handle to the active window. 活动窗口的句柄。 copyright 智动软件

 

本文来自智动软件zdwork.cn

  www.zdwork.cn

结构3CWPRETSTRUCT Structure

www.zdwork.cn

The CWPRETSTRUCT structure defines the message parameters passed to a WH_CALLWNDPROCRET hook procedure, CallWndRetProc.

www.zdwork.cn

CWPRETSTRUCT结构定义了传递给WH_CALLWNDPROCRET钩子子程CallWndRetProc的消息参数。 内容来自zdwork.cn

Syntax语法 内容来自zdwork.cn

typedef struct { zdwork.cn 
    LRESULT lResult; 
www.zdwork.cn
    LPARAM lParam; 内容来自zdwork.cn 
    WPARAM wParam; 智动软件 
    UINT message; 
内容来自zdwork.cn
    HWND hwnd; 内容来自zdwork.cn 
} CWPRETSTRUCT, *PCWPRETSTRUCT; 智动软件 

Members成员

www.zdwork.cn

lResult

www.zdwork.cn

Specifies the return value of the window procedure that processed the message specified by the message value.  指定了窗体程序的返回值,该窗体程序处理由 message 值指定的消息。 智动软件

lParam / wParam

智动软件

Specifies additional information about the message. The exact meaning depends on the message value. 指定消息的附加信息。附加的意义取决于message的值。 智动软件

message

本文来自智动软件zdwork.cn

Specifies the message. 指定消息。 copyright 智动软件

hwnd

智动软件

Handle to the window that processed the message specified by the message value. 处理由message的值指定的消息的窗体的窗体句柄。

zdwork.cn

Helios  2007-5-31

zdwork.cn

 

copyright 智动软件

(责任编辑:admin)
顶一下
(1)
100%
踩一下
(0)
0%

推荐内容

热门内容

相关内容


关于我们 | 联系我们 | 代理合作 | 意见及建议

本站免费提供刷IP软件,另有邮件搜索软件等,需要定制软件或有建议可联系我们。联系方式:QQ:896186342 Email:zdwork@qq.com 滇ICP备08001410号.