Best way to get Program Files/Common Files?

Lucas Zawacki lfzawacki at
Tue Aug 9 16:17:12 CDT 2011

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.


More information about the wine-devel mailing list