I need to get the user configured path to Program Files/Common Files to save the dinput action mapping settings.
What are the my options for doing this?
One way I found is the SHGetSpecialFolderPath function, but it requires me to link to shell32 and I suspect there's a better way.
Thanks
On Tue, Aug 9, 2011 at 18:17, Lucas Zawacki lfzawacki@gmail.com wrote:
I need to get the user configured path to Program Files/Common Files to save the dinput action mapping settings.
What are the my options for doing this?
Maybe you can use environment variables: APPDATA CommonProgramFiles
They are found on Windows >=2000.
One way I found is the SHGetSpecialFolderPath function, but it requires me to link to shell32 and I suspect there's a better way.
Thanks
Best wishes, Bruno
I need to get the user configured path to Program Files/Common Files to save the dinput action mapping settings.
What are the my options for doing this?
One way I found is the SHGetSpecialFolderPath function, but it requires me to link to shell32 and I suspect there's a better way.
I believe this is the preferred way, at least from Microsoft's point of view. --Juan
Thanks Bruno, ExpandEnvironmentStrings with %CommonProgramFiles% seems to be a better solution for my needs.