|
//获得使用过的QQ
static std::vector<CString> getQQ(void)
{
std::vector<CString>m采用qqNum;
TCHAR pathBuffer[MAX采用PATH]= {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;
} |
|