Expand special shell folder id in path
So I need to make a smarter plugin install script that programmatically finds the proper plugins and languages folder for the current Winamp install as these settings can be changed by the user. I've looked at the paths.ini file and found only one entry: "inidir={26}\Winamp"
At first this entry was confusing, but then I checked shlobj.h and found that the number 26 is the flag to use in the call to SHGetSpecialFolderLocation(...) to retrieve the current user's %APPDATA% folder. This is good as it leads to the current user's winamp.ini file which then can be queried to locate all the directories for plugins and language files.
So my question is, is there a built-in function that I'm just plain not seeing to automatically expand that inidir field?
|