Участник:StasFomin/Bookmarks/Stegano — различия между версиями

Материал из DISCOPAL
Перейти к: навигация, поиск
(Добавлена закладка Jer's One Stop Shop > Home - Vista DWM Hacking – Capture and Stream D3D/WPF Windows Real-Time)
(Добавлена закладка Accessing bit data of DwmRegisterThumbnail - c++)
Строка 2: Строка 2:
 
=== 2020-07 ===
 
=== 2020-07 ===
  
 +
* 2020-07-03, 10:21:15: [https://android.developreference.com/article/20737763/Accessing+bit+data+of+DwmRegisterThumbnail Accessing bit data of DwmRegisterThumbnail - c++]
 +
*: <html>I have been playing around with the Windows DWM APIs to see if I can capture external windows with them. I have made a small C++ program which creates a window, grabs an external HWND, links the external HWND to my window, and successfully renders the external data. The API works great in this situation. What I'm trying to figure out now is whether or not I can capture the bit data which being rendered into my own window. I figured since I have ownership of this window there should be a way. My Goals To capture the DWM rendered content in my own window into a bitmap. This should work regardless of whether my window is in the foreground or background. My Test Case In my test case I have a youtube video playing in my external window. I put it in the background and allow the video to render into my application's window in the foreground. From there I try the methods below to capture the content of my window. Capture Methods Attempted BitBlt I've tried to use BitBlt to capture the windows content into a bitmap. Whenever I try this though, I simply end up with title bar of my window and none of the DWM thumbnail content. However, if instead of getting a DC for my window, I get a DC for the entire screen and grab the coordinates of my window, I am able to get the DWM rendered content. But if the window is in the background, obviously I don't get what I want. PrintWindow PrintWindow fails for me as well. I get similar results to BitBlt, my windows title bar but nothing in the content area. My Question Is there any reliable way to get the bit data from the DWM APIs? Could I do something on WM_PAINT/WM_PRINT to capture this?</html>
 +
<!-- NEXT BOOKMARK -->
 
* 2020-07-03, 10:18:59: [http://jmorrill.hjtcentral.com/Home/tabid/428/EntryId/278/Vista-DWM-Hacking-Capture-and-Stream-D3D-WPF-Windows-Real-Time.aspx Jer's One Stop Shop > Home - Vista DWM Hacking – Capture and Stream D3D/WPF Windows Real-Time]
 
* 2020-07-03, 10:18:59: [http://jmorrill.hjtcentral.com/Home/tabid/428/EntryId/278/Vista-DWM-Hacking-Capture-and-Stream-D3D-WPF-Windows-Real-Time.aspx Jer's One Stop Shop > Home - Vista DWM Hacking – Capture and Stream D3D/WPF Windows Real-Time]
 
*: <html><p>Here is the source for the application.&nbsp; It's very ugly code, but it's only a quick prototype I threw together.&nbsp; I use SlimDX, so if you have any issues using it, make sure to install the <a href="http://www.microsoft.com/downloads/details.aspx?familyid=c1367bc3-4676-481a-bfaa-5c15d1d7199d&amp;displaylang=en" target="_blank">latest DX runtimes here</a>.</p> <p><a href="http://jmorrill.hjtcentral.com/Portals/21/blog/DxCapture.zip">http://jmorrill.hjtcentral.com/Portals/21/blog/DxCapture.zip</a></p></html>
 
*: <html><p>Here is the source for the application.&nbsp; It's very ugly code, but it's only a quick prototype I threw together.&nbsp; I use SlimDX, so if you have any issues using it, make sure to install the <a href="http://www.microsoft.com/downloads/details.aspx?familyid=c1367bc3-4676-481a-bfaa-5c15d1d7199d&amp;displaylang=en" target="_blank">latest DX runtimes here</a>.</p> <p><a href="http://jmorrill.hjtcentral.com/Portals/21/blog/DxCapture.zip">http://jmorrill.hjtcentral.com/Portals/21/blog/DxCapture.zip</a></p></html>

Версия 07:21, 3 июля 2020

2020

2020-07

Навигация