Search code examples
assemblyenvironment-variablesstartupfasmstartup-folder

Environment Variable - Startup Folder


Is there an Environment Variable for the startup folder.

On XP it is located under C:\Documents and Settings(user)\Start Menu\Programs\Startup and on vista 7 it is under Appdata\Microsoft\Windows\Start Menu\Programs\Startup\

So I was wondering if there was an EnVar for this folder?


Solution

  • Since you create binaries, why don't you use CSIDL_STARTMENU with SHGetFolderPathA?

    http://msdn.microsoft.com/en-us/library/windows/desktop/bb762181%28v=vs.85%29.aspx