ini 文件的字段删除
来源:互联网 发布:单片机控制蜂鸣器发声 编辑:程序博客网 时间:2024/04/30 13:41
BOOL WritePrivateProfileString(
LPCTSTR lpAppName, // section name
LPCTSTR lpKeyName, // key name
LPCTSTR lpString, // string to add
LPCTSTR lpFileName // initialization file
);
lpString
[in] Pointer to a null-terminated string to be written to the file. If this parameter is NULL, the key pointed to by the lpKeyName parameter is deleted
看清楚了么,只需将lpString设置为NULL,就可以将lpKeyName指定的键删除了。
LPCTSTR lpAppName, // section name
LPCTSTR lpKeyName, // key name
LPCTSTR lpString, // string to add
LPCTSTR lpFileName // initialization file
);
lpString
[in] Pointer to a null-terminated string to be written to the file. If this parameter is NULL, the key pointed to by the lpKeyName parameter is deleted
看清楚了么,只需将lpString设置为NULL,就可以将lpKeyName指定的键删除了。
lpString 为NULL时 所指的lpKeyName字段将被删除
lpKeyName为NULL是 所在域lpAppName名下的所有字段都将删除。
- ini 文件的字段删除
- 删除INI文件某个字段或者键值
- 删除INI文件某个字段或者键值
- 写ini文件的重复字段问题
- 删除_desktop.ini文件
- 获取ini文件中所有块的特定字段值
- 如何删除_desktop.ini文件
- 批量删除文件desktop_.ini
- 批量删除 desktop_.ini 文件
- 快捷删除_desktop.ini文件
- [原创]删除Ini文件中Section下的某个Key
- 删除熊猫烧香生成的desktop_.ini文件,批处理删除所有
- INI文件的读写
- ini文件的控制
- INI文件的读写
- INI文件的操作
- Ini文件的操作
- ini 文件的操作
- 统计用户输入的一串数字中每个数字出现的次数和Winform ComboBox拥有(name,values)
- 小波变换教程(二)
- Host Context配置
- 堆排序
- 用javascript实现网站来回撞动的广告图片
- ini 文件的字段删除
- Js 判断浏览器类型
- Linux系统的管道命令
- 网络协议关系拓扑图 很全面 很好
- Android Suspend/resume 过程分析
- 利用window对象实现一个图片的浮动效果
- Oracle Direct-Path Insert学习笔记
- DevExpress.XtraGrid.GridView 自定义样式设置
- JSON对象和字符串之间的相互转换