[fix] improve Windows secure desktop capture and input transitions

This commit is contained in:
kunkundi
2026-10-09 00:05:37 +08:00
parent 5004c91a6c
commit 3cfe7cbb80
26 changed files with 1376 additions and 582 deletions
@@ -14,6 +14,11 @@
namespace crossdesk {
inline bool IsDesktopTransitionInputError(DWORD error) {
return error == ERROR_ACCESS_DENIED ||
error == ERROR_REQUIRES_INTERACTIVE_WINDOWSTATION;
}
inline std::wstring GetDesktopNameW(HDESK desktop) {
DWORD bytes_needed = 0;
if (desktop == nullptr) {
@@ -149,4 +154,4 @@ class ScopedInteractiveDesktop {
} // namespace crossdesk
#endif
#endif