钩子初接触(二十八)

结构4CWPSTRUCT Structure

The CWPSTRUCT structure defines the message parameters passed to a WH_CALLWNDPROC hook procedure, CallWndProc.

CWPSTRUCT 结构定义了传递给WH_CALLWNDPROC钩子子程CallWndProc的消息参数。

Syntax

typedef struct {
  
  
    LPARAM lParam;
  
  
    WPARAM wParam;
  
  
    UINT message;
  
  
    HWND hwnd;
  
  
} CWPSTRUCT, *PCWPSTRUCT;
  
  

Members

lParam  / wParam

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

message

Specifies the message. 指定消息

hwnd

Handle to the window to receive the message. 接收消息的窗体的句柄。

 

结构5DEBUGHOOKINFO Structure

The DEBUGHOOKINFO structure contains debugging information passed to a WH_DEBUG hook procedure, DebugProc.

DEBUGHOOKINFO结构包含有传递给WH_DEBUG钩子子程DebugProc的调试信息。

Syntax

typedef struct {
  
  
    DWORD idThread;
  
  
    DWORD idThreadInstaller;
  
  
    LPARAM lParam;
  
  
    WPARAM wParam;
  
  
    int code;
  
  
} DEBUGHOOKINFO, *PDEBUGHOOKINFO;
  
  

Members成员

idThread

Handle to the thread containing the filter function. 包含过滤方法的线程的句柄。

idThreadInstaller

Handle to the thread that installed the debugging filter function. 安装调试过滤方法的线程的句柄。

lParam / wParam

Specifies the value to be passed to the hook in the lParam parameter of the DebugProc callback function. 指定在DebugProc回调函数的lParam/ wParam 参数中,要传递给钩子的值。

code

Specifies the value to be passed to the hook in the nCode parameter of the DebugProc callback function. 指定在DebugProc回调函数的nCode 参数中,要传递给钩子的值。

 

结构6EVENTMSG Structure

The EVENTMSG structure contains information about a hardware message sent to the system message queue. This structure is used to store message information for the JournalPlaybackProc callback function.

该结构包含有关于硬件的消息,该消息被发送给系统的消息队列。该结构用来为JournalPlaybackProc回调函数存储消息的信息。

Syntax语法

typedef struct {
  
  
    UINT message;
  
  
    UINT paramL;
  
  
    UINT paramH;
  
  
    DWORD time;
  
  
    HWND hwnd;
  
  
} EVENTMSG, *PEVENTMSG;
  
  

Members成员

message

Specifies the message. 指定消息。

paramH / paramH

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

time

Specifies the time at which the message was posted. 消息被传递时的时间

hwnd

Handle to the window to which the message was posted. 消息被传给的窗口的句柄。

Helios  2007-5-31  

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值