文件名称:MFC 下获取键盘,鼠标的钩子程序
文件大小:2.06MB
文件格式:RAR
更新时间:2015-06-11 13:06:59
CHOOK
#include "windows.h" HHOOK g_hMouse; HHOOK g_hKeyboard; #pragma data_seg("MySec") HWND g_hWnd=NULL; #pragma data_seg() #pragma comment(linker,"/section:MySec,RWS") /* SEGMENTS MySec READ WRITE SHARE */ #define WM_MSG WM_USER + 500 LRESULT CALLBACK MouseProc( int code, WPARAM wParam, LPARAM lParam ) { if(wParam==WM_RBUTTONDOWN) { ::PostMessage(g_hWnd,WM_MSG,wParam,lParam); // return 1; } return CallNextHookEx(g_hMouse,code,wParam,lParam); }
【文件预览】:
Hook
----Hook.plg(1KB)
----Hook.def(36B)
----Debug()
--------vc60.pdb(76KB)
--------Hook.obj(13KB)
--------Hook.bsc(1.83MB)
--------vc60.idb(137KB)
--------Hook.sbr(0B)
--------Hook.dll(200KB)
--------Hook.pch(4.26MB)
--------Hook.pdb(513KB)
--------Hook.lib(2KB)
--------Hook.ilk(256KB)
--------Hook.exp(637B)
----Hook.cpp(1KB)
----Hook.dsp(4KB)
----Hook.dsw(533B)
----Hook.opt(560KB)
----Hook.ncb(41KB)