Hudson Worden
Hudson Worden

Reputation: 2353

Windows Edit Start Up Applications C/C++

I was looking at a project that someone wanted done and in order to do it I need to edit Windows' Start Up Programs. I am unsure of where to begin looking. What I really need is just a reference to some Windows API functions that will let me do this.

Thanks

Upvotes: 1

Views: 197

Answers (2)

Mark Ransom
Mark Ransom

Reputation: 308432

As Nikola Smiljanić says the Startup area is just a directory with file shortcuts in it. However it is dangerous to use a hardcoded path because this changes with different versions of Windows.

You can get the path to the startup folder with the SHGetFolderPath function and CSIDL_STARTUP as a parameter.

Upvotes: 3

Nikola Smiljanić
Nikola Smiljanić

Reputation: 26873

Startup programs is just a directory, I don't think there are any specific functions for it. You should be able to create shortcuts inside and that should be it.

c:\Users\username\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup\

Upvotes: 3

Related Questions