GetDriveType
The GetDriveType function determines whether a disk drive is a removable, fixed, CD-ROM, RAM disk, or network drive. UINT GetDriveType(
  LPCTSTR lpRootPathName   // pointer to root path
);
 欢迎UP http://www.csdn.net/expert/topic/340/340566.shtm