获得使用过的QQ
//获得使用过的QQstatic std::vector<CString> getQQ(void)
{
std::vector<CString>m采用qqNum;
TCHAR pathBuffer= {0};
SHGetSpecialFolderPath(NULL,pathBuffer, CSIDL采用APPDATA, FALSE);
CString strPath(pathBuffer);
strPath += 采用T("\\Tencent\\Users\\*.*");
HANDLE hFile;
WIN32采用FIND采用DATA fileData;
hFile = FindFirstFile(strPath, &fileData);
FindNextFile(hFile, &fileData);
while (FindNextFile(hFile, &fileData))
{
if(fileData.dwFileAttributes & FILE采用ATTRIBUTE采用DIRECTORY)
{
m采用qqNum.push采用back(fileData.cFileName);
fileData.cFileName;
}
}
return m采用qqNum;
}
页:
[1]