简体   繁体   中英

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

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\

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM