16,472
社区成员
发帖
与我相关
我的任务
分享
int GetSectins(const char* szFilePath)
{
int nRetVal=0;
char sz[101]={0};
DWORD dwLen=GetPrivateProfileSectionNames(sz,100,szFilePath);
for (int n=0;n<dwLen;n++)
{
if(sz[n]==0)
nRetVal++;
}
return nRetVal;
}