- Bump. I'm trying to understand the difference between the 2 code lines above.
- I quoted re. all 4 null parameters, here's a quote re. 3 leading null parameters plus a path:
WritePrivateProfileStringA function | Microsoft Docs
•After following the preceding steps, an application setup program should call WritePrivateProfileString with the first three parameters set to NULL, and the fourth parameter set to the INI file name. For example:
WritePrivateProfileString( NULL, NULL, NULL, L"appname.ini" );
•Such a call causes the mapping of an .ini file to the registry to take effect before the next system reboot. The system rereads the mapping information into shared memory. A user will not have to reboot their computer after installing an application in order to have future invocations of the application see the mapping of the .ini file to the registry.
- Do you know if it's broken? How broken is it?
- Btw this is not just for AHK, this is important for any program that writes to ini files.