I have discovered a new property of the WritePrivateProfileString API.
If you write a string with quotes like:
the API will NOT write the quotes to the INI file.
This explains why when doing a CTRL+F5 to execute a program in Wedit
the program would fail...
The only work around I discovered was to write
"\ "c:\program files\somepath\foo"
When I write the string I test if a quote is the first char.
If it is, I add a \ and a space before it, and I eliminate them
when I read it.
This is not documented as specified behavior. The docs tell
only that the TAB char is ignored, never mentioning anything
Well, you know now.