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

钩子(HOOK)函数教程(三十一)

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

结构9MSLLHOOKSTRUCT Structure 本文来自智动软件zdwork.cn

The MSLLHOOKSTRUCT structure contains information about a low-level keyboard input event. msdn错误) copyright 智动软件

MSLLHOOKSTRUCT结构包含有低层键盘输入事件的信息。

zdwork.cn

Syntax语法 www.zdwork.cn

typedef struct { 智动软件 
    POINT pt; www.zdwork.cn 
    DWORD mouseData; 

本文来自智动软件zdwork.cn

    DWORD flags; copyright 智动软件 
    DWORD time; 

zdwork.cn

    ULONG_PTR dwExtraInfo; 
zdwork.cn
} MSLLHOOKSTRUCT, *PMSLLHOOKSTRUCT; 本文来自智动软件zdwork.cn 

Members成员 copyright 智动软件

pt Specifies a POINT structure that contains the x- and y-coordinates of the cursor, in screen coordinates. 指定在屏幕坐标系下,包含有光标xy坐标的POINT结构。

www.zdwork.cn

mouseData

zdwork.cn

If the message is WM_MOUSEWHEEL, the HIWORD of this member is the wheel delta. The LOWORD is undefined and reserved. A positive value indicates that the wheel was rotated forward, away from the user; a negative value indicates that the wheel was rotated backward, toward the user. One wheel click is defined as WHEEL_DELTA, which is 120.

www.zdwork.cn

如果消息是WM_MOUSEWHEEL,该成员的HIWORD就是wheel deltaLOWORD做为保留未定义。正值表示滚轮向前旋转,即远离用户的方向;负值表示滚轮向后旋转,即朝向用户的方向。滚轮的点击被定义为WHEEL_DELTA, 具体值为120

智动软件

If the message is WM_XBUTTONDOWN, WM_XBUTTONUP, WM_XBUTTONDBLCLK, WM_NCXBUTTONDOWN, WM_NCXBUTTONUP, or WM_NCXBUTTONDBLCLK, the HIWORD of mouseData specifies which X button was pressed or released, and the LOWORD is undefined and reserved. This member can be one or more of the following values. Otherwise, mouseData is not used. www.zdwork.cn

如果消息是WM_XBUTTONDOWN, WM_XBUTTONUP, WM_XBUTTONDBLCLK, WM_NCXBUTTONDOWN, WM_NCXBUTTONUP, 或者 WM_NCXBUTTONDBLCLK,  mouseData  HIWORD值指定哪个X键被按下或者释放,LOWORD做为保留未定义。该成员可以是以下值中的一个或者多个。否则,mouseData未使用。 www.zdwork.cn

1XBUTTON1The first X button was pressed or released. 第一个X键被按下或者释放。 本文来自智动软件zdwork.cn

2XBUTTON2 The second X button was pressed or released.第二个X键被按下或者释放。

copyright 智动软件

flags copyright 智动软件

Specifies the event-injected flag. An application can use the following value to test the mouse flags. 指定事件注入标志。应用程序可以使用下列值来测试鼠标标志。 本文来自智动软件zdwork.cn

Value

智动软件

Purpose

www.zdwork.cn

LLMHF_INJECTED

内容来自zdwork.cn

Test the event-injected flag.测试事件注入标志。

copyright 智动软件

copyright 智动软件

0

本文来自智动软件zdwork.cn

Specifies whether the event was injected. The value is 1 if the event was injected; otherwise, it is 0. 事件是否被注入。如果被注入,为 1,否则为0 www.zdwork.cn

1-15 Reserved.保留

zdwork.cn

time

www.zdwork.cn

Specifies the time stamp for this message. 消息的时间戳。

www.zdwork.cn

dwExtraInfo zdwork.cn

Specifies extra information associated with the message. 消息的扩展信息。

www.zdwork.cn

Helios  2007-5-31 zdwork.cn

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

推荐内容

热门内容

相关内容


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

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