Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Modify the framebuffer in Windows

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

like image 431
Michael M. Avatar asked Sep 21 '26 23:09

Michael M.


1 Answers

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.

like image 67
dhein Avatar answered Sep 23 '26 15:09

dhein



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!