diff --git a/pupy/packages/windows/all/pupwinutils/keylogger.py b/pupy/packages/windows/all/pupwinutils/keylogger.py index adf60018..a384426d 100644 --- a/pupy/packages/windows/all/pupwinutils/keylogger.py +++ b/pupy/packages/windows/all/pupwinutils/keylogger.py @@ -59,7 +59,10 @@ VK_RETURN = 0x0D # ENTER key VK_ESCAPE = 0x1B # Base Win API -SetWindowsHookEx = user32.SetWindowsHookExW +SetWindowsHookEx = user32.SetWindowsHookExW +SetWindowsHookEx.argtypes = (c_int, HOOKPROC, HINSTANCE, DWORD) +SetWindowsHookEx.restype = HHOOK + UnhookWindowsHookEx = user32.UnhookWindowsHookEx CallNextHookEx = user32.CallNextHookEx GetMessage = user32.GetMessageW