Hi Pablo
Before all, please don't use so much this word : "sorry"; here all we are friends, no such apologies required
In our country we a have a proverb :
Combat of ideas emerges the light of truth !
So, I believe that every post here give a knowledge, a idea to the people. So, please don't hesitate to tell as well as your opinions, you questions, your curiosities etc.
In this "start up folder" topic, we have a confusion: This "Start Up" term have multiple meaning:
1- System Start Up Folder: The folder that system boot files reside. In DOS this was C:\ and I guess this continues. In fact, this info doesn't have any practical benefit to users nor programmers.
2- Application Start Up Folder: The folder that executable of THIS application reside; return value of GetStartUpFolder() function of HMG.
3- Programs Automatic Start Up Locations: Locations ( not only Folder ) that keep such programs to run automatically when system (OS) start.
If I understood right, you are expecting info about #3, by #2; right ?
If so, short answer is: No! this function doesn't return #3 info and there isn't any problem in this behavior
Q: How can be such function that return #3 info ?
A: Very difficult
Because :
Programs Automatic Start Up Locations isn't unique nor standard. Yes, Windows have such folders; in XP and some of previous versions have
C:\Documents and Settings\<user>\Start Menu\Programs\Startup folders but Win7 doesn't have such folders
Moreover, such locations not only folders, to many registry entries too used for this purpose and information about all of that is very complicated and sadly not standard nor fixed. For more info please look at
here.
The second question was : "Since returns same info like GetCurrentFolder(), what is purpose of this function ?"
Short answer was: This isn't correct; this two functions doesn't return ALWAYS same value; unless folder that keep Application executable file and folder that this application called are same.
Pablo César wrote:Please, would post a code example which is used for ?
Which is used for is a relative and personal point of view; If you don't need it, you don't use it
But if you want a sample demonstrating different results by that two function, we can give such thing.
Saludos cordiales
--
Esgici