Home > Back-end >  Windows program task start program, how to display?
Windows program task start program, how to display?

Time:09-30

I had a server-side program, requires every time start the computer will automatically run; I plan by Windows task to create a task item:
1, each run automatically switched on
2, run as Administrator


Through test, found that after the system startup (not landing system), program has been normal boot operation; I use the Administrator users enter the system, can see the running process in the process list, but I can't access the interface;

How do I can dispatch interface running process this way out? Write a program, it is best to separate run will be able to transform the process interface show come out,

CodePudding user response:

Points I have big, can open post continuously chase points, hope can help to give directions

CodePudding user response:

The one I have, I sent to you to find the code, such as

CodePudding user response:

refer to the second floor QSWW21CN response:
this one I have, I sent to you to find the code, such as
did you first code is not sent to me? And you that code seemingly useless!!!!!!!!!!!!!!!!!!!!!


I caught a diagram, process,

CodePudding user response:

, without login system is created when the process should be by the winlogon desktop management, should be by themselves or external program, after entering it into the current desktop, to see the interface,
On the desktop, reference msdn:http://msdn.microsoft.com/en-us/library/windows/desktop/ms682573 (v=versus 85). Aspx
A desktop has A logical display surface and the contains user interface objects to the as Windows, menus, and hooks. It can be 2 create and manage Windows. Each desktop object is a securable object. When a desktop is created, it is associated with the current window station of the calling process and assigned to the calling thread.

Window messages can be sent only between the processes that are on the same desktop. In addition, the hook procedure of a process running on a particular desktop can only receive messages intended for Windows created In the same desktop.

The desktops associated with the interactive window station, Winsta0, can be made to display a user interface and receive user input, but only one of these desktops at a time is active. This active desktop, also known as the input desktop, is the one that is currently visible to the user and that receives user input. Applications can use the OpenInputDesktop function to get a handle to the input desktop. Applications that have the required access can use the SwitchDesktop function to specify a different input desktop.

By default, there are three desktops in the interactive window station: default, ScreenSaver, and Winlogon.
The Default desktop is created when Winlogon starts The initial process as The logged on user -. At that point, The Default desktop becomes active, and it is 2 interact with The user.

Whenever a secure screen saver activates, the system automatically switches to the ScreenSaver desktop, which protects the the processes on the default desktop from unauthorized users. Unsecured screen savers run on Winsta0 \ default

The Winlogon desktop is active while a user logs on, The system switches to The default desktop when The shell are that it is ready to display something, or after thirty seconds, whichever comes first. During The user 's session, The system switches to The Winlogon desktop when The user presses The CTRL + ALT + DEL key sequence, or when The user Account Control (UAC) dialog box is open.

CodePudding user response:

@ Avan_Lau
Thank you for the clue, I look at first, the spiral of, I take a closer look

CodePudding user response:

You this is a service or ordinary EXE, I write programs on the start menu in the startup, after login, can display interface, didn't find what you said,

CodePudding user response:

  • Related