Reputation: 2584
Is there a way to modify the framebuffer before it is drawn ? Let say I want to set red values to zero in the entire screen in any desktop application.
1) Catch drawing event and get framebuffer
2) Get each pixel and set R=0 to RGB value (with a GPU langage to avoid GPU->CPU memory tranfer)
3) Draw modified framebuffer
Upvotes: 3
Views: 6309
Reputation: 6555
Ha I found it what you probably are looking for:
Direct Kernel Object Manipulation
It's a Windows API that can write such filter drivers, you are looking for. They could grant you full access to the Kernel memory and let you modify it. As far you can hook filesystems and locations, as the Kernel memory itself and lower level network management with it, even can crash the OS itself, I would bet you could hook GPU informations before they get comitted to the gpu!
Here is a short description of it:
http://www.blackhat.com/presentations/win-usa-04/bh-win-04-butler.pdf
An API under windows which is able to do these hooks is for example:
MS Detours
I'm not willed to work me in that API but from the description it should be able to do that.
Upvotes: 2