Apr 19 2023 02:46 AM
As per the below code, the hook_Api procedure is never called when working with "Notepad" on Windows 11. It's no problem when I work with other applications.
g_hHook = SetWindowsHookEx(
WH_CALLWNDPROC,
(HOOKPROC)hook_Api,
g_hDll,
threadid);
Note: No problem when working with "Notepad" on Windows 10.
Please help me solve this problem.
Regards,
Trong Le