Вверх ↑
Ответов: 9906
Рейтинг: 351
#1: 2008-08-19 16:36:56 ЛС | профиль | цитата
Dilma писал(а):
ну наверно не просто так код из 132 байт помещен в dll..

Разъяснение:
MSDN/SetWindowsHookEx писал(а):
lpfn
[in] Pointer to the hook procedure. If the dwThreadId parameter is zero or specifies the identifier of a thread created by a different process, the lpfn parameter must point to a hook procedure in a dynamic-link library (DLL). Otherwise, lpfn can point to a hook procedure in the code associated with the current process.
hMod
[in] Handle to the DLL containing the hook procedure pointed to by the lpfn parameter. The hMod parameter must be set to NULL if the dwThreadId parameter specifies a thread created by the current process and if the hook procedure is within the code associated with the current process.
dwThreadId
[in] Specifies the identifier of the thread with which the hook procedure is to be associated. If this parameter is zero, the hook procedure is associated with all existing threads running in the same desktop as the calling thread.

Т.е., если это глобальный хук, то -- без вариантов. И хучь в ухо мочись
((красное - выделено мною, для обратить на него особое внимание))
карма: 9

0