mirror of
https://github.com/kunkundi/crossdesk.git
synced 2026-10-18 18:03:08 +08:00
[fix] improve Windows secure desktop capture and input transitions
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user