Applications can add their own INI file to registry by:
After completing these two steps, the application can use Windows 32-bit profile functions to modify the contents of XYZ.INI.
When finished, the registry structure looks like this:
winreg (root) --- | |-- REGH_WINOS2INI --- XYZ.INI | |--section 1 | | (value name=key name 11; | value content...) | value name=key name 12; | value content...) | |--section 2 | (value name=key name 21; value content...) value name=key name 22; value content...) |-- REGH_INIMAPPING |--- XYZ.INI (value name=section1; value content="XYZ.INI\section1") (value name=section2; value content="XYZ.INI\section2")
All new keys added under HKEY_LOCAL_MACHINE\SOFTWARE\MICROSOFT\WINDOWS NT\CURRENTVERSION\INIFILEMAPPING are added to REGH_INIMAPPING.
All references to HKEY_LOCAL_MACHINE\SOFTWARE are mapped to REGH_WINOS2INI.