Skip to content

Commit

Permalink
Update gui.c
Browse files Browse the repository at this point in the history
Use WDA_EXCLUDEFROMCAPTURE as the SetWindowDisplayAffinity value for IsProtectScreen=y.
  • Loading branch information
offhub committed Mar 10, 2024
1 parent d73ce18 commit 6cf990a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sandboxie/core/dll/gui.c
Original file line number Diff line number Diff line change
Expand Up @@ -1576,7 +1576,7 @@ _FX VOID Gui_ProtectScreen(HWND hWnd)
if(!pSetWindowDisplayAffinity)
pSetWindowDisplayAffinity = (LPSETWINDOWDISPLAYAFFINITY)Ldr_GetProcAddrNew(DllName_user32, L"SetWindowDisplayAffinity", "SetWindowDisplayAffinity");
if (pSetWindowDisplayAffinity)
pSetWindowDisplayAffinity(hWnd, 0x00000001);
pSetWindowDisplayAffinity(hWnd, 0x00000011);
}


Expand Down

0 comments on commit 6cf990a

Please sign in to comment.