Click to See Complete Forum and Search --> : How can I run a program at startup?
msanford
April 9th, 2003, 06:09 PM
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.
mahanare
April 10th, 2003, 12:09 AM
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
filthy_mcnasty
April 10th, 2003, 12:56 AM
search the forum for "services" or something to that extent. it also depends on what operating system you're working with.
i remember once seeing a program that claimed it could turn your regular application into a service.
win.ini, start folder, registry, services, what loads on startup and i dont think the win.ini is still done since win2k
mahanare
April 10th, 2003, 01:18 AM
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
muthuis
April 11th, 2003, 10:55 PM
Looking at your requirement, I think the service idea proposed is the best suited for u. If you need any sample on this topic, u can probably look at this link
Win32 services (http://codersource.tripod.com/win32_ntservice.html)
Hope this helps.
shelly73
April 29th, 2003, 03:48 AM
hi !
i think that you can do it in another way. there's a registry key called RunOnce which runs the programs once when the system starts. you can check it out.
more info on that is available at
http://msdn.microsoft.com/library/en-us/install/hh/install/install-over_6orr.asp?frame=true
Cheers!
Shelly.
the_ENIGMA
April 29th, 2003, 06:52 AM
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.
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.