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

Материал из DISCOPAL
Перейти к: навигация, поиск
(Добавлена закладка Increase Windows XP Colour Depth when using Remote Desktop or XP Mode – Ufo-X.com)
(Добавлена закладка GetWindowDC and BitBlt in Windows 7 and Windows 8)
Строка 2: Строка 2:
 
=== 2020-07 ===
 
=== 2020-07 ===
  
 +
* 2020-07-03, 09:55:08: [https://social.msdn.microsoft.com/Forums/windowsdesktop/en-US/fb7d5836-5e3b-42f8-95cb-586cb2b3da21/getwindowdc-and-bitblt-in-windows-7-and-windows-8?forum=windowssdk GetWindowDC and BitBlt in Windows 7 and Windows 8]
 +
*: <html>Code in Windows 8 returns the desired window(hwnd) without any overlapping window on it even if hwnd is completely hidden but Windows 7 is returning&nbsp;a bitmap containing windows overlapping my target window. It looks like BitBlt in Windows 7 gets a bitmap  of the desktop, not of the window.<br> <br> Anyone knows why?<br> <br> Thanks<br> <br> hdc = GetWindowDC(hwnd);<br> hdcMem = CreateCompatibleDC(hdc);<br> memset(&amp;mybmi, 0x0, sizeof(BITMAPINFOHEADER));<br> mybmi.bmiHeader.biSize = sizeof(mybmi);<br> mybmi.bmiHeader.biWidth = dim_x;<br> mybmi.bmiHeader.biHeight = -dim_y;<br> mybmi.bmiHeader.biPlanes = 1;<br> mybmi.bmiHeader.biBitCount = BITMAP_BITCOUNT;<br> mybmi.bmiHeader.biCompression = BI_RGB;<br> mybmi.bmiHeader.biSizeImage = dim_x * dim_y * BITMAP_BITCOUNT;<br> hbitmap = CreateDIBSection(hdc, &amp;mybmi, DIB_RGB_COLORS, (VOID **)&amp;bits, 0, 0);<br> hOldbitmap = (HBITMAP)SelectObject(hdcMem, hbitmap);<br> BitBlt(hdcMem, 0, 0, dim_x, dim_y, hdc, 0, 0, SRCCOPY);<br> SelectObject(hdc, hOldbitmap);<br> DeleteDC(hdcMem);<br> ReleaseDC(hwnd, hdc);</html>
 +
<!-- NEXT BOOKMARK -->
 
* 2020-07-03, 09:54:36: [https://ufo-x.com/increase-windows-xp-colour-depth-when-using-remote-desktop-or-xp-mode/ Increase Windows XP Colour Depth when using Remote Desktop or XP Mode – Ufo-X.com]
 
* 2020-07-03, 09:54:36: [https://ufo-x.com/increase-windows-xp-colour-depth-when-using-remote-desktop-or-xp-mode/ Increase Windows XP Colour Depth when using Remote Desktop or XP Mode – Ufo-X.com]
 
*: <html>When a Windows XP system is accessed via Remote Desktop or Terminal Services connection, the default maximum color resolution (color depth or color quality) is set to 16-bit on Windows XP. The color depth is limited in order to improve connection performance especially on slow link, and reduce server load.</html>
 
*: <html>When a Windows XP system is accessed via Remote Desktop or Terminal Services connection, the default maximum color resolution (color depth or color quality) is set to 16-bit on Windows XP. The color depth is limited in order to improve connection performance especially on slow link, and reduce server load.</html>

Версия 06:55, 3 июля 2020

2020

2020-07