I'm writing an application to stream the content of specified windows. The BitBlt works well for many applications, and even for DirectX applications.
However, when trying to get the content of Microsoft Word or PowerPoint, the magic fails and returns a black rectangle of pixels.
I wonder whether there's a standard way to get the bits of the window content for any windows.
Free Yu a écrit :
I'm writing an application to stream the content of specified windows. The BitBlt works well for many applications, and even for DirectX applications.
However, when trying to get the content of Microsoft Word or PowerPoint, the magic fails and returns a black rectangle of pixels.
I wonder whether there's a standard way to get the bits of the window content for any windows.A way is with DwmRegisterThumbnail
(used by Explorer Thumbnails in the Taskbar)
(then D3DXSaveSurfaceToFileInMemory to get the HBITMAP)
or also recent methods : https://blogs.windows.com/windowsdeveloper/2019/09/16/new-ways-to-do-screen-capture/
Thanks a lot. I'll give it a try. But I doubt that the content retrieved from Thumbnail interface might be a low level mipmap.
and you can extract a HBITMAP with D3DX)Can You please give example how to get surface from DwmRegisterThumbnail?
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 379 |
Nodes: | 16 (2 / 14) |
Uptime: | 42:00:08 |
Calls: | 8,141 |
Calls today: | 4 |
Files: | 13,085 |
Messages: | 5,857,792 |