Fix client offline issue and virtual desktop opening issue

This commit is contained in:
yuanyuanxiang
2025-12-13 18:20:26 +01:00
parent 460f6c44bc
commit 29abbfe489
4 changed files with 94 additions and 30 deletions

View File

@@ -102,7 +102,8 @@ VOID CScreenSpy::ScanScreen(HDC hdcDest, HDC hdcSour, ULONG ulWidth, ULONG ulHei
if (m_bVirtualPaint) {
int n = 0;
if (n = EnumWindowsTopToDown(NULL, EnumHwndsPrint, (LPARAM)&m_data.SetScreenDC(hdcDest))) {
Mprintf("EnumWindowsTopToDown failed: %d!!!\n", n);
Mprintf("EnumWindowsTopToDown failed: %d!!! GetLastError: %d\n", n, GetLastError());
Sleep(50);
}
return;
}