Подскажите кто знает почему GetVolumeInformation не выдает метку сетевого диска(переменная NameBuffer равна “”) Код | char szDrives[128]; char* pDrive;
if ( !GetLogicalDriveStrings( sizeof(szDrives), szDrives ) ) { m_strError = "Error Getting Logical DriveStrings!"; return FALSE; } UINT CurDrive; char NameBuffer[MAX_PATH]; char SysNameBuffer[MAX_PATH]; char* OldPDrive; DWORD VSNumber; DWORD MCLength; DWORD FileSF;
pDrive = szDrives; while( *pDrive ) {OldPDrive=pDrive; GetVolumeInformation(pDrive,NameBuffer, sizeof(NameBuffer), &VSNumber,&MCLength,&FileSF,SysNameBuffer,sizeof(SysNameBuffer)); ...
|
|