` Printed Icetips Article

Icetips Article



Par2: Remove INI file section
2002-01-03 -- John Christ III
 
> Is it possible to remove a section in an INI-file?

Use the Windows API function WritePrivateProfileString:

MODULE('windows.lib')
  WritePrivateProfileStringA(*CSTRING, LONG, LONG, *CSTRING), |
                                        SHORT, PASCAL, RAW, DLL
END

Dummy = WritePrivateProfileStringA(SectionName, 0, 0, IniFilename)



Printed November 23, 2024, 9:20 pm
This article has been viewed/printed 35223 times.