In C #, I can do the following:
DirectoryInfo di = new DirectoryInfo(System.Environment.GetEnvironmentVariable("ALLUSERSPROFILE"));
Which will give me the path to the profile of all users.
In C ++, I can use SHGetFolderPath, but it does not have a CSLID for all users. Is there an equlivant function so that I can infer% ALLUSERSPROFILE% from my path value?
source share