[GH-ISSUE #733] UAC Causes Remote Desktop to freeze #477

Open
opened 2026-02-27 15:50:33 +03:00 by kerem · 11 comments
Owner

Originally created by @xuxuedong on GitHub (Dec 9, 2018).
Original GitHub issue: https://github.com/quasar/Quasar/issues/733

stuck when i open task manager on remote desktop
at that moment, the cpu consume is larger than the normal
qq 20181209092428

tested server os: win10_pro_x64_cn
test client os: win8.1_pro_x64_cn

Originally created by @xuxuedong on GitHub (Dec 9, 2018). Original GitHub issue: https://github.com/quasar/Quasar/issues/733 stuck when i open task manager on remote desktop at that moment, the cpu consume is larger than the normal ![qq 20181209092428](https://user-images.githubusercontent.com/9376976/49692371-479cf380-fb94-11e8-9f74-f59d7afd8344.png) tested server os: win10_pro_x64_cn test client os: win8.1_pro_x64_cn
Author
Owner

@Aholicknight commented on GitHub (Dec 10, 2018):

Could you post your log so we can further help?

<!-- gh-comment-id:445951459 --> @Aholicknight commented on GitHub (Dec 10, 2018): Could you post your log so we can further help?
Author
Owner

@xuxuedong commented on GitHub (Dec 11, 2018):

log? windows event log? there is none log file within the current directory

<!-- gh-comment-id:446104498 --> @xuxuedong commented on GitHub (Dec 11, 2018): log? windows event log? there is none log file within the current directory
Author
Owner

@xuxuedong commented on GitHub (Dec 11, 2018):

as i see, it isn't stuck, the picture is changing, just unresponsible when i click after started task manager

<!-- gh-comment-id:446108395 --> @xuxuedong commented on GitHub (Dec 11, 2018): as i see, it isn't stuck, the picture is changing, just unresponsible when i click after started task manager
Author
Owner

@xuxuedong commented on GitHub (Dec 11, 2018):

but when i tested:
server os: win10_pro_x64_cn
client os: xp_pro_x86_cn
i use remote desktop to operate xp, it's responsible when i click after i started task manager

in addition, i found the cpu consume is normal

<!-- gh-comment-id:446115965 --> @xuxuedong commented on GitHub (Dec 11, 2018): but when i tested: server os: win10_pro_x64_cn client os: xp_pro_x86_cn i use remote desktop to operate xp, it's responsible when i click after i started task manager in addition, i found the cpu consume is normal
Author
Owner

@Aholicknight commented on GitHub (Dec 11, 2018):

So is this issue fixed?

<!-- gh-comment-id:446226081 --> @Aholicknight commented on GitHub (Dec 11, 2018): So is this issue fixed?
Author
Owner

@MaxXor commented on GitHub (Dec 11, 2018):

@trollmad3 No, it's not on Windows 8.1.

<!-- gh-comment-id:446226684 --> @MaxXor commented on GitHub (Dec 11, 2018): @trollmad3 No, it's not on Windows 8.1.
Author
Owner

@Aholicknight commented on GitHub (Dec 11, 2018):

When I get home, I will create a windows 8.1 virtual machine and see if I could do anything to fix this.

<!-- gh-comment-id:446227542 --> @Aholicknight commented on GitHub (Dec 11, 2018): When I get home, I will create a windows 8.1 virtual machine and see if I could do anything to fix this.
Author
Owner

@mystyq commented on GitHub (Dec 11, 2018):

This behavior also occurs when opening chrome browser (temporarily).

<!-- gh-comment-id:446362203 --> @mystyq commented on GitHub (Dec 11, 2018): This behavior also occurs when opening chrome browser (temporarily).
Author
Owner

@mystyq commented on GitHub (Dec 11, 2018):

I believe the problem is related to the mouse_event WinAPI calls. If you run the task manager as administrator it seems to work. mouse_event is deprecated and I wonder if switching to SendInput calls would fix this.

<!-- gh-comment-id:446392904 --> @mystyq commented on GitHub (Dec 11, 2018): I believe the problem is related to the `mouse_event` WinAPI calls. If you run the task manager as administrator it seems to work. `mouse_event` is deprecated and I wonder if switching to `SendInput` calls would fix this.
Author
Owner

@xuxuedong commented on GitHub (Dec 12, 2018):

@mystyq yeah, you are right, i tested the client run as admin on win8.1, it's no problem

<!-- gh-comment-id:446427559 --> @xuxuedong commented on GitHub (Dec 12, 2018): @mystyq yeah, you are right, i tested the client run as admin on win8.1, it's no problem
Author
Owner

@ghost commented on GitHub (Jan 7, 2019):

Adding to mystyq's answer/solution. User32 has plenty of undocumented features for injecting keyboard or mouse input. Even for touch input.

See user32!InjectDeviceInput, user32!InjectGenericHidInput, user32!InjectKeyboardInput, user32!InjectMouseInput, user32!InjectPointerInput, user32!InjectTouchInput

Here's some sample code for Visual Basic .NET github.com/Nukepayload2/Nukepayload2.Diagnostics.InputInjection@00600d8a22/Nukepayload2.Diagnostics.InputInjection/Preview/UnsafeNativeMethods.vb

And I took the time to write a demonstration in C# https://github.com/gigajew/KeyboardInjection

<!-- gh-comment-id:451811744 --> @ghost commented on GitHub (Jan 7, 2019): Adding to mystyq's answer/solution. User32 has plenty of undocumented features for injecting keyboard or mouse input. Even for touch input. See user32!InjectDeviceInput, user32!InjectGenericHidInput, user32!InjectKeyboardInput, user32!InjectMouseInput, user32!InjectPointerInput, user32!InjectTouchInput Here's some sample code for Visual Basic .NET https://github.com/Nukepayload2/Nukepayload2.Diagnostics.InputInjection/blob/00600d8a22e9ea1ba8ef284a0e2c6ed552d9192e/Nukepayload2.Diagnostics.InputInjection/Preview/UnsafeNativeMethods.vb And I took the time to write a demonstration in C# https://github.com/gigajew/KeyboardInjection
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/Quasar#477
No description provided.