Best way to get Program Files/Common Files?

Bruno Jesus 00cpxxx at
Tue Aug 9 16:37:49 CDT 2011

On Tue, Aug 9, 2011 at 18:17, Lucas Zawacki <lfzawacki at> 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:

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,

universe* god::bigbang (void); //and then it all began...

More information about the wine-devel mailing list