Das größere Problem ist, daß MS das irgendwann mal so ändert,
daß nur noch in die Registry geschrieben werden kann.
Warum sollte MS das tun? Ist doch eigentlich klar definiert, was MS macht:
Zitat von https://msdn.microsoft.com/en-us/library/windows/desktop/ms725501(v=vs.85).aspx
The system maps most .ini file references to the registry, using the mapping defined under the following registry key:HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindows NTCurrentVersionIniFileMappingThis mapping is likely if an application modifies system-component initialization files, such as Control.ini, System.ini, and Winfile.ini. In this case, the function writes information to the registry, not to the initialization file; the change in the storage location has no effect on the function's behavior.
Hinzu kommt dann PrivateProfile... für die heute gar nicht mehr existente WIN.INI.
Es geht nur um die Windows-Einstellungen. Und nur um Kompatibilität zu alten 16-Bit-Programmen zu wahren. Betrifft ein 64-Bit-System gar nicht und ein 32-Bit-System nur soweit, wie 16-Bit-Anwendungen ausgeführt werden. Was da in VBA gemacht wurde, damit nicht jeder Office-Macro eine eigene INI-Datei erstellt, wenn er mal einen Wert ablegen will, ist dann wieder eine ganz andere Frage. habe ich nur der Vollständigkeit halber erwähnt, daß es sowas gibt.
Gruß Volkmar