Click here to Skip to main content
15,891,204 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I have an application , and wan to run this before windows login screen . like anty theft alarm
Posted

Such kind of application is called "Windows Service": http://en.wikipedia.org/wiki/Windows_service[^].

You can develop them if you start here: http://msdn.microsoft.com/en-us/library/d56de412%28v=vs.110%29.aspx[^].

See also this walk-through article: http://msdn.microsoft.com/en-us/library/zt39148a.aspx[^].

This CodeProject article can also be useful, if you want some quick start: Simple Windows Service Sample[^].

—SA
 
Share this answer
 
I believe scheduling your app using windows Task Scheduler in a way where it will run when the computer starts meets your requirement of "run this before windows login screen".

How to schedule a task: http://windows.microsoft.com/en-US/windows7/schedule-a-task[^]

More specifically from that link, what you will want is "To select a schedule based on common recurring events, click When the computer starts or When I log on, and then click Next."

The other way would be to do it using windows services

Creating a Basic Windows Service in C#[^]

So that way the task kicks off when the computer starts. But i would suggest playing around with the task scheduler to do whatever it is you are wanting to do. If i knew more about your requirement there may be other ways to do what you are wanting (Active directory/domain stuffs) but from what i know...this should do what you need.
 
Share this answer
 
v2
There are several ways to start a regular application, like from startup script specified in local or domain group policy: http://technet.microsoft.com/en-us/library/cc753404.aspx[^]. But be aware, that something started here won't interact with the user.

An other, much better approach fur such a task is to make a windows service out of your application. Actually this is the way to do it. Start here: http://msdn.microsoft.com/en-us/library/zt39148a(v=vs.100).aspx[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900