I started digging into Win32k callbacks while looking for a PatchGuard bypass. T...
Idov31 @idov31@infosec.exchange
I started digging into Win32k callbacks while looking for a PatchGuard bypass. That lead went nowhere, but it raised a better question: how does the Windows kernel choose the callback for session-specific GUI work? https://idov31.github.io/posts/paint-it-blue-reverse-win32k
To answer that, I traced the path from win32u.dll and KiSystemCall64 through GUI-thread conversion to PsInvokeWin32Callout. The same numbered callback path handles GDI batch flushes, object events, power notifications, and more interesting operations.
The post aims to shed more light on the under documented win32k subsystem with explanation about the callback IDs, session-routing modes, and the relationship between win32k and the kernel. I hope it will help people in their journey when investigating win32k :)