1 UINT uiResult = GetDriveType(TEXT("c:\\"));
2 switch(uiResult)
3 {
4 case DRIVE_CDROM:
5 std::cout<<"It's a CDROM Drive "<<std::endl;
6 break;
7 case DRIVE_FIXED:
8 std::cout <<"It's a Fixed Drive!"<<std::endl;
9 break;
10 case DRIVE_NO_ROOT_DIR:
11 std::cout <<"It is not a Root Dir!"<<std::endl;
12 break;
13 case DRIVE_RAMDISK:
14 std::cout<<"It's a Ram Disk!"<<std::endl;
15 break;
16 case DRIVE_REMOTE:
17 std::cout<<"It's Remote dir!"<<std::endl;
18 break;
19 case DRIVE_REMOVABLE:
20 std::cout<<"It's a removable disk!"<<std::endl;
21 break;
22 case DRIVE_UNKNOWN:
23 std::cout<<"It is a Unknown dir!"<<std::endl;
24 break;
25 }
2 switch(uiResult)
3 {
4 case DRIVE_CDROM:
5 std::cout<<"It's a CDROM Drive "<<std::endl;
6 break;
7 case DRIVE_FIXED:
8 std::cout <<"It's a Fixed Drive!"<<std::endl;
9 break;
10 case DRIVE_NO_ROOT_DIR:
11 std::cout <<"It is not a Root Dir!"<<std::endl;
12 break;
13 case DRIVE_RAMDISK:
14 std::cout<<"It's a Ram Disk!"<<std::endl;
15 break;
16 case DRIVE_REMOTE:
17 std::cout<<"It's Remote dir!"<<std::endl;
18 break;
19 case DRIVE_REMOVABLE:
20 std::cout<<"It's a removable disk!"<<std::endl;
21 break;
22 case DRIVE_UNKNOWN:
23 std::cout<<"It is a Unknown dir!"<<std::endl;
24 break;
25 }