INtime SDK Help
CfgSectionDelete

Delete a section.

DWORD Cfg(
CFGFILE cFile,
    LPCSTR  szSection
);

Parameters

cFile
(in) File handle retrieved by previous CfgFileOpen with argument CFG_SECTION as type.
szSection
(in) Name of section to delete.

Return values

ECFG_OK for success or an error code on failure.

Remarks

Deletes the section with all its parameters.

Errors

ECFG_BADCFGFILE
File handle out of range or invalid
ECFG_NOTFOUND
Section name not found
ECFG_WRONGFILETYPE
Wrong file type
See Also