N
N
Nikolay Pavlov2018-05-17 15:00:27
Windows
Nikolay Pavlov, 2018-05-17 15:00:27

Why doesn't Windows create a window handle when RDP is minimized?

Good afternoon!
I use a toolkit based on AutoIT and directly WinAPI for automated work with a Windows application through its GUI. I ran into a problem, let's say I connect via RDP to a remote machine, run a script on it and it starts working with the application (click buttons, open windows, etc.), all work is based on the fact that we know the window handle and I'm with it I work by sending messages to the window via WinAPI (for example, using the SendMessage function), but as soon as I minimize the RDP connection window, then on the remote Windows machine it stops giving the handle of the window with which the robot works. A similar situation occurs when the RDP window is open and everything works correctly, but after 15 minutes of inactivity, the parent OS (through which I open the RDP connection) turns off the display and blocks the account (we have such a security policy).
The question is, is it possible to somehow configure Windows so that it always gives the window handle, even if the monitor is turned off and the parent OS is in sleep mode (the remote machine is running at that time).

Answer the question

In order to leave comments, you need to log in

3 answer(s)
T
tartarelin, 2018-05-17
@PavlovNik

IP KVM, VNC, Teamviewer or equivalent
Or install a hypervisor

A
Artem @Jump, 2018-05-17
curated by the

Why Windows does not create a window handle when RDP is minimized
Because there is no window.
And there is no window, no handle.
Connect locally, or for example via Teamviewer - and there will be no such problem.
Windows is a graphical user interface. They are only created when the user is logged into the system.
If you are logged in locally, you will be logged in until you click the logout button, or shut down the system.
If you logged in via RDP - you will be in the system while the RDP session is active, as soon as it becomes inactive - for example, you closed it, or simply turned it off, the system stops serving the graphical user interface, because the user logged out.
Although running processes continue to run.

R
res2001, 2018-05-17
@res2001

The problem is deeply buried:
rsdn.org/forum/asm/3361089.all

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question