Tech Support > Microsoft Windows > Drivers > Access Frame Buffer From User App
Access Frame Buffer From User App
Posted by fchen on October 20th, 2006


Does anyone know how to access frame buffer directly from a user application?
I am guessing the I could share the video memory
(IOCTL_VIDEO_SHARE_VIDEO_MEMORY). However, I am unable to get the device
handle for \\.\DISPLAY1 (access denied). Also how do I determine the
framebuffer size?

Thanks,

Posted by Tim on October 21st, 2006


fchen wrote:
The short answer is: you cannot reliably get direct access to the frame
buffer. It might not be in system memory, or only a portion may be
mapped at any one time. The format may be unusual too.

The long answer starts with a question: Why?

If you just want a snap shot, you can do a bitblt from the display
device context to your receiving bitmap device context.

If you want continuous updates you can use hooks like VNC (source
available) or a mirror driver (sample in the DDK/WDK) like UltraVNC.

Hope this helps,
Tim.


Posted by Maxim S. Shatskih on October 23rd, 2006


DirectDraw will help you.

--
Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
maxim@storagecraft.com
http://www.storagecraft.com



Similar Posts