View Single Post
Old 4th December 2015, 16:18   #1
thinktink
Forum King
 
thinktink's Avatar
 
Join Date: May 2009
Location: On the streets of Kings County, CA.
Posts: 3,009
Send a message via Skype™ to thinktink
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?
thinktink is offline   Reply With Quote