得到INI文件所有Section(所有节点名称)

char SectionNames[MAX_PATH],*pSectionName;
ZeroMemory(SectionNames,MAX_PATH);
GetPrivateProfileSectionNames(SectionNames,MAX_PATH,"config.ini");
int i=0;
for (char* Name = SectionNames;*Name !='\0';Name+=strlen(Name)+1,i++)
{
m_List.InsertItem(i,Name);
}

posted @ 2015-07-30 15:46  疯封风  阅读(2684)  评论(0编辑  收藏  举报