#include
“HookDll.h“
HHOOK g_hMouse
=
NULL;
HINSTANCE g_hInst;
BOOL APIENTRY DllMain( HINSTANCE hinstDLL,
DWORD ul_reason_for_call,
LPVOID lpReserved
)
{
g_hInst
hinstDLL;
return
TRUE;
}
LRESULT CALLBACK MouseProc(
intnCode, WPARAM wParam, LPARAM lParam)
{
return 1
;
} void
SetHook()
{
g_hMouse = SetWindowsHookEx(WH_MOUSE, MouseProc, GetModuleHandle(“HookDll“), 0
);
}
发布者:全栈程序员-站长,转载请注明出处:https://javaforall.net/216079.html原文链接:https://javaforall.net
