`
wangminshe89
  • 浏览: 669175 次
文章分类
社区版块
存档分类
最新评论

ini 文件的字段删除

 
阅读更多
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指定的键删除了。

lpString 为NULL时 所指的lpKeyName字段将被删除

lpKeyName为NULL是 所在域lpAppName名下的所有字段都将删除。

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics