How can I run a program at startup?
I know this is more a windows question than a c++ question so I will especially appreciate any responses. How can you run tell windows to start a program (besides the registry and the startup folder). I am trying to make a program that will analyze windows and all the programs that are running (including the ones hidden from task manager). I would like to be able to present a true list of all the programs that are running at startup.
I feel why don't have other options..
Hi, i read your question, As i know we don't have any other way of doing things.
but you do this through program only.
write another application which can place that exe file in the startup folder.. or a shortcut of that..
why do you need any other way of doing it.
But if you come to know that do let me know that
cheers
As a service it is possible
I know working with service..
I think service will solve the basic question of this thread.
MSDN has even sample code also.
yesterday i was learning how to start service from program.
even creating service (converting an exe to service) is not tough.
search with key words "StartService" "OpenService" "CreateService".. etc.. in vc++ and related tab
if you need further help i feel happy to do but I am also a newbie to this.
cheers
harinath
a bit cryptic way to do this
Checkout "creating Winlogon Notification Package" & "WLX_NOTIFICATION_INFO" structure in particular. (in MSDN)
it takes a 2K machine to implement that stuff
Winlogon will notify your DLL of these events -- Startup Logon,Logoff,Shutdown,Machine Lock,StartShell,Unlock.
Provide a handlers for these events, make your system aware of your DLL by creating Reg Keys as mentioned in MSDN, and
you will have your own "event logger and manager" kinda stuff.