Archive: SHGetFolderPath


SHGetFolderPath
The release notes of 2.29 say...

Use SHGetFolderPath where available to better support all users' folders.

How do I call this? I couldn't find anything in the documentation about this call.

Is this a System call?

Why am I able to call it now?

Any help would be greatly appreciated.


you don't need to call it, nsis does this for you when using the folder constants ($startmenu and friends) and SetShellVarContext is set to all


The nFolder I need to find is CSIDL_COMMON_APPDATA.

On Vista, this is typically...

c:\programdata

and on XP it is...

c:\documents and settings\All Users\Application Data

How can I find these folders?


Ahh... I got it...

SetShellVarContext all
Messagebox MB_OK $APPDATA

Thanks for your help!