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

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

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

结构7KBDLLHOOKSTRUCT Structure 智动软件

The KBDLLHOOKSTRUCT structure contains information about a low-level keyboard input event. 本文来自智动软件zdwork.cn

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

copyright 智动软件

Syntax语法

本文来自智动软件zdwork.cn

typedef struct { 
智动软件
    DWORD vkCode; 
智动软件
    DWORD scanCode; 
内容来自zdwork.cn
    DWORD flags; 
内容来自zdwork.cn
    DWORD time; 

www.zdwork.cn

    ULONG_PTR dwExtraInfo; copyright 智动软件 
} KBDLLHOOKSTRUCT, *PKBDLLHOOKSTRUCT; 
copyright 智动软件

Members成员 内容来自zdwork.cn

vkCode 内容来自zdwork.cn

Specifies a virtual-key code. The code must be a value in the range 1 to 254.  指定虚拟键值。该值必须在1254的范围内。

zdwork.cn

scanCode

本文来自智动软件zdwork.cn

Specifies a hardware scan code for the key.指定键的硬件扫描码。

www.zdwork.cn

flags zdwork.cn

Specifies the extended-key flag, event-injected flag, context code, and transition-state flag. This member is specified as follows. An application can use the following values to test the keystroke flags. 内容来自zdwork.cn

指定扩展键标志,事件注入标志,上下文代码,转换状态码。成员如下所示。应用程序可以使用下列值来检查键盘敲击标志。 zdwork.cn

Value

copyright 智动软件

Purpose目的 www.zdwork.cn

LLKHF_EXTENDED zdwork.cn

Test the extended-key flag. 测试扩展键标志。 copyright 智动软件

LLKHF_INJECTED copyright 智动软件

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

内容来自zdwork.cn

LLKHF_ALTDOWN

copyright 智动软件

Test the context code. 测试上下文代码。

www.zdwork.cn

LLKHF_UP 智动软件

Test the transition-state flag. 测试转换状态码。 zdwork.cn

内容来自zdwork.cn

0 Specifies whether the key is an extended key, such as a function key or a key on the numeric keypad. The value is 1 if the key is an extended key; otherwise, it is 0. 指定该键是否是扩展键,例如:功能键、数字键盘上的键。是扩展键为1,否则为0 copyright 智动软件

1-3 Reserved. 保留。

内容来自zdwork.cn

4  Specifies whether the event was injected. The value is 1 if the event was injected; otherwise, it is 0. 指定事件是否被注入。被注入为1,否则为0

本文来自智动软件zdwork.cn

5  Specifies the context code. The value is 1 if the ALT key is pressed; otherwise, it is 0. 指定上下文代码。如果按下了ALT,该值为1,否则为0

智动软件

6  Reserved. 保留。 智动软件

7  Specifies the transition state. The value is 0 if the key is pressed and 1 if it is being released.指定转换状态。如果该键被按下该值为1,如果被释放为0 www.zdwork.cn

time 内容来自zdwork.cn

Specifies the time stamp for this message, equivalent to what GetMessageTime would return for this message. 指定消息的时间戳,相当于GetMessageTime返回的值。 智动软件

dwExtraInfo 内容来自zdwork.cn

Specifies extra information associated with the message. 指定和该消息相关联的扩展信息。 www.zdwork.cn

Helios  2007-5-31

智动软件

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

推荐内容

热门内容

相关内容


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

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