Can we set a global hook in a COM object?
C / C++ / MFC
1
Posts
1
Posters
0
Views
1
Watching
-
in the SetWindowsHookEx function, I set the _pModule->get_m_hInst() as the HINSTANCE parameter. The relust of this code is a local hook on the procedure. "Global hook procedures should be placed in a separate DLL". is com is a separate DLL
hKeyboardHook = SetWindowsHookEx(WH_KEYBOARD_LL, LowLevelKeyboardProc, _pModule->get_m_hInst(), 0);
a related article is talking about the subject in a standart DLL (not COM). http://www.codeproject.com/win32/AntonioWinLock.asp