Hi Jürgen,
please pay attention that the program files directory and the windows
directory have special handlings when a process tries to write there.
To be compatible with Windows 7/8/10 you should NEVER write anything
there.
If your program or another program tries this, the following can occur:
1) if the writing program is manifested for Windows 7/8/10, and the
process has not elevated rights, the write will fail.
2) if the writing program is not manifested for newer Windows versions,
the ini or whatever file is written to the virtual store hierarchy of
the current user, so the configuration data is not shared between
different users, and could also not be shared between different
applications.
I don't know if GetPrivateProfileString() is not trying to write and
fails therefore - it is a Windows API function, not a VO function.
My strong recommendation is to never install programs that are using
configuration data or, even worser, application data (like nearly all
my VO programs do) into the Program Files structure - better to install
them in a separate directory.
Programs installed into the Program Files structure should put their
configuration and data in the (hidden) ProgramData structure.
Wolfgang
--