I tried using DetoursX and observed the following behavior:
- Hooking
ntoskrnl functions works correctly
- Hooking
win32k functions causes BSOD (e.g., NtUserFindWindowEx with KeStackAttachProcess attaching to explorer.exe)
Could you please provide a working example of hooking NtUserFindWindowEx?