How can i get overlay surface?

now i want to write a driver that can save a playing video frame to a bmp file,

i konw the video use the overlay surface to play ,but i don't kown how to find the overlay surface in display memory,

i supposed if i find the address and lenght of the playing video overlay surface,that i can copy it to a alloced memory and finally save it,is this right

what the driver should do does mirror driver can do it

i hope someone can help me,thanks!!!!!!!

wating on-line!




Answer this question

How can i get overlay surface?

  • Ceres629

    Two questions before we start trying to answer your question:

    1. Is this really a Media Foundation question Media Foundation is the new multimedia platform for Windows Vista. If you need your code to run on pre-Vista OSes, then you'll want to use DirectShow instead, in which case you'll want to post your question here: http://forums.microsoft.com/msdn/showforum.aspx forumid=129&siteid=1
    2. Assuming you really are asking about Media Foundation... Any reason why you need to do this from a driver If all you're trying to do is get the bits that are being displayed and save them off somewhere, then you can do this without having to write a driver.



  • How can i get overlay surface?