Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Program run on startup

Status
Not open for further replies.

TheCrappyProgrammer

Programmer
Sep 17, 2001
41
US
How would I programmically make a program run at start-up?
 
To do it programmically, You should change Kernel32.dll.
If You wish easy start Your program at start-up: it is not for all systems the same. On Windows 95/98/ME You can use autoexec.bat, if You has a command-line Program (easy write in the file:
C:\YourProgram.exe
and You have it).
On Windows NT/2000/XP You should use the Registry. For Win32 Programs You must use the Registry for all Systems. You can write in Registry programmically too.
If You wish to replace couple system Files with Your Program at startup, You have to do some another things in the Registry. If Your Program is a service or a driver, You should also write another things in the Registry.
 
Registry key inside of
[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run]
look for help on RegCreateKeyEx() & Co
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top