TCHAR szDriverBuffer[512];
CString csDriver;
DWORD dwLength = GetLogicalDriveStrings(IN 512, OUT szDriverBuffer);
// 执行后,在szDriverBuffer中存储的盘符数据格式:
// C:\D:\
TCHAR *lpDriverBuffer = szDriverBuffer;
while (*lpDriverBuffer != NULL)
{
csDriver = lpDriverBuffer;
lpDriverBuffer = lpDriverBuffer + csDriver.GetLength() + 1;
//cout<
}
阅读(868) | 评论(0) | 转发(1) |