Участник:StasFomin/Bookmarks/Stegano — различия между версиями
Материал из DISCOPAL
StasFomin (обсуждение | вклад) (Добавлена закладка Increase Windows XP Colour Depth when using Remote Desktop or XP Mode – Ufo-X.com) |
StasFomin (обсуждение | вклад) (Добавлена закладка 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 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(&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, &mybmi, DIB_RGB_COLORS, (VOID **)&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
- 2020-07-03, 09:55:08: GetWindowDC and BitBlt in Windows 7 and Windows 8
- 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 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.
Anyone knows why?
Thanks
hdc = GetWindowDC(hwnd);
hdcMem = CreateCompatibleDC(hdc);
memset(&mybmi, 0x0, sizeof(BITMAPINFOHEADER));
mybmi.bmiHeader.biSize = sizeof(mybmi);
mybmi.bmiHeader.biWidth = dim_x;
mybmi.bmiHeader.biHeight = -dim_y;
mybmi.bmiHeader.biPlanes = 1;
mybmi.bmiHeader.biBitCount = BITMAP_BITCOUNT;
mybmi.bmiHeader.biCompression = BI_RGB;
mybmi.bmiHeader.biSizeImage = dim_x * dim_y * BITMAP_BITCOUNT;
hbitmap = CreateDIBSection(hdc, &mybmi, DIB_RGB_COLORS, (VOID **)&bits, 0, 0);
hOldbitmap = (HBITMAP)SelectObject(hdcMem, hbitmap);
BitBlt(hdcMem, 0, 0, dim_x, dim_y, hdc, 0, 0, SRCCOPY);
SelectObject(hdc, hOldbitmap);
DeleteDC(hdcMem);
ReleaseDC(hwnd, hdc);
- 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 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.
- 2020-07-03, 09:54:36: Increase Windows XP Colour Depth when using Remote Desktop or XP Mode – Ufo-X.com
- 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.
- 2020-07-03, 09:52:03: Switch easily between VirtualBox and Hyper-V with a BCDEdit boot Entry in Windows 8.1 - Scott Hanselman
- Switch easily between VirtualBox and Hyper-V with a BCDEdit boot Entry in Windows 8.1
- 2020-07-03, 09:50:37: c++ - CMake and MsVS-NuGet - Stack Overflow
- 2020-07-03, 09:50:05: NuGet Gallery | openssl-vc141-static-x86_64 1.1.0
- 2020-07-03, 09:47:51: You were told about this four years ago - Developer Community
- Compiling with VS 2015 or 2017, XP toolset, in this particular case, "Visual Studio 2017 - Windows XP (v141_xp)":
#define _WIN32_WINNT 0x0501
#define NTDDI_VERSION 0x05010300
- Compiling with VS 2015 or 2017, XP toolset, in this particular case, "Visual Studio 2017 - Windows XP (v141_xp)":
- 2020-07-03, 09:45:04: GitHub - alexjc/neural-enhance: Super Resolution for images using deep learning.
- 2020-07-03, 09:44:54: GitHub - PELock/Dekoder-AZTEC-2D-Python: Dekoder Kodu AZTEC 2D z Dowodu Rejestracyjnego dla Python (Web API) z rozpoznawaniem obrazu.
- 2020-07-03, 09:44:22: python - Changing the directory where .pyc files are created - Stack Overflow
- 2020-07-03, 09:43:29: Inconsistency detected by ld.so: dl-minimal.c: 126: realloc: Assertion `ptr == alloc_last_block' failed! - Google Search
- 2020-07-03, 09:43:20: Logging Cookbook — Python 3.8.4rc1 documentation
- 2020-07-03, 09:40:14: GitHub - ccd97/image-classify-server: Image classification using Tensorflow (Inception v3)
- 2020-07-03, 09:40:01: GitHub - malikwahab/pilxel: A photo Editor Built with Django and PILLOW
- 2020-07-03, 00:39:08: Поиск секретов путем декомпиляции байт-кода Python в общедоступных репозиториях | How to recover
- Поиск секретов путем декомпиляции байт-кода Python в общедоступных репозиториях
- 2020-07-03, 00:35:02: Оптическая иллюзия — Википедия
- 2020-07-03, 00:33:10: CUPSPrintQueues - Debian Wiki
- 2020-07-03, 00:32:57: CUPSDebugging - Debian Wiki
- 2020-07-03, 00:31:30: SDB:Using Your Own Filters to Print with CUPS - openSUSE Wiki
- 2020-07-03, 00:30:48: HowTos/RebuildSRPM - CentOS Wiki
- Install the SRPM and then Build from the Specfile
- 2020-07-03, 00:24:34: python - Threading pool similar to the multiprocessing Pool? - Stack Overflow
- 2020-07-03, 00:21:25: (SOLVED) This is driving me mad: "Inconsistency detected by ld.so"
- Topic: [SOLVED] This is driving me mad: "Inconsistency detected by ld.so" (Read 4460 times)
- 2020-07-03, 00:19:02: В поисках LD_PRELOAD / Хабр
- 2020-07-03, 00:13:44: How-To: Python Compare Two Images - PyImageSearch
- 2020-07-03, 00:11:26: kivy/buildozer: Generic Python packager for Android and iOS
- 2020-07-03, 00:11:16: HeaTTheatR/KivyMD: KivyMD is a collection of Material Design compliant widgets for use with Kivy, a framework for cross-platform, touch-enabled graphical applications.
- 2020-07-03, 00:10:47: Nuitka vs Numba | Python Interpreters Benchmarks
- 2020-07-03, 00:04:35: megastep/makeself: A self-extracting archiving tool for Unix systems, in 100% shell script.
- 2020-07-02, 23:52:52: Build Python with Mingw and gcc - Stack Overflow
-
hg clone https://bitbucket.org/puqing/python-mingw
It is a copy of the official repository but contains some modification to make it compile with mingw. Enter PC/MinGW directory:
cd PC/MinGW && make
Not sure if it compiles in win64, but with win32 and msys it should work.
-
- 2020-07-02, 23:52:18: puqing / python-mingw — Bitbucket
-
python-mingw
-
- 2020-07-02, 19:48:59: How to build windows xp apps using nuitka? · Issue #110 · Nuitka/Nuitka
- How to build windows xp apps using nuitka?
- 2020-07-02, 18:56:04: Градостроительно-земельная комиссия: тайные решения мэрии Москвы о застройке города | Портал «Красная Москва»
- Градостроительно-земельная комиссия: тайные решения мэрии Москвы о застройке города
- 2020-07-02, 18:53:52: Manuk Akopyan / Stegano · GitLab
- Stegano