Windows控制檯下響應鍵盤消息

利用hook技術,hook鍵盤消息,每次摁下和鬆開按鍵時都打印信息windows 源代碼以下spa #include <windows.h> #include <stdio.h> HHOOK g_Hook; LRESULT CALLBACK KeyboardProc(int code,WPARAM w,LPARAM l) { if(w == WM_KEYDOWN) printf(
相關文章
相關標籤/搜索