CSDN首页 空间 新闻 论坛 Blog 下载 读书 网摘 搜索 .NET Java 视频 接项目 求职 在线学习 买书 程序员 通知
不看会后悔的Windows XP之经验谈 简单快捷DIY实用家庭影院
CSDN社区
搜索 收藏 打印 关闭
CSDN社区 >  VC/MFC >  基础类

如何区别存储器

楼主shark()2000-01-16 21:08:00 在 VC/MFC / 基础类 提问

编程中如何区别存储器是光驱,硬盘,活动硬盘,磁光盘?  
  接口可能是IDE   SCSI 问题点数:50、回复次数:2Top

1 楼kxy(手举穿肠毒药,怀抱刮骨钢刀)回复于 2000-01-17 02:35:00 得分 30

UINT   GetDriveType(  
   
          LPCTSTR   lpRootPathName   //   address   of   root   path    
        );  
     
   
  Parameters  
   
  lpRootPathName  
   
  Points   to   a   null-terminated   string   that   specifies   the   root   directory   of   the   disk   to   return   information   about.   If   lpRootPathName   is   NULL,   the   function   uses   the   root   of   the   current   directory.    
   
     
   
  Return   Values  
   
  The   return   value   specifies   the   type   of   drive.   It   can   be   one   of   the   following   values:    
   
  Value Meaning  
  0 The   drive   type   cannot   be   determined.  
  1 The   root   directory   does   not   exist.  
  DRIVE_REMOVABLE The   drive   can   be   removed   from   the   drive.  
  DRIVE_FIXED The   disk   cannot   be   removed   from   the   drive.  
  DRIVE_REMOTE The   drive   is   a   remote   (network)   drive.  
  DRIVE_CDROM The   drive   is   a   CD-ROM   drive.  
  DRIVE_RAMDISK The   drive   is   a   RAM   disk.  
     
  IDE   SCSI的不知道可不可以.Top

2 楼herolee()回复于 2000-01-18 01:15:00 得分 20

UINT   GetDriveType(  
      LPCTSTR   lpRootPathName       //   pointer   to   root   path  
  );  
   
  Return   Values  
  The   return   value   specifies   the   type   of   drive.   It   can   be   one   of   the   following   values:    
   
  Value   Meaning    
  0   DRIVE_UNKNOWN   The   drive   type   cannot   be   determined.    
  1   DRIVE_NO_ROOT_DIR   The   root   directory   does   not   exist.    
  2   DRIVE_REMOVABLE   The   disk   can   be   removed   from   the   drive.    
  3   DRIVE_FIXED   The   disk   cannot   be   removed   from   the   drive.    
  4   DRIVE_REMOTE   The   drive   is   a   remote   (network)   drive.    
  5   DRIVE_CDROM   The   drive   is   a   CD-ROM   drive.    
  6   DRIVE_RAMDISK   The   drive   is   a   RAM   disk.    
   
  Top

相关问题

  • dos中的概念,扩展存储器和扩充存储器的区别?
  • 问个存储器的问题flash和eeprom和sram的区别
  • 关于寄存器和存储器的联系和区别的问题!?
  • 寄存器的大小有多大?在存储器中代码段,数据段等是如何划分的?
  • VC6中,如何编程读写U盘(外置USB接口的移动存储器)?
  • 如何检测系统中的可移动存储器,并将他们设置为只读状态
  • 如何将linux内核嵌入到主板bios存储器?大侠们帮忙啊?
  • 建表存储器不足?
  • 存储器是内存?
  • byte[] String char[] 区别如何?

关键词

  • 硬盘
  • root
  • null
  • drive
  • 区别存储器
  • lprootpathname
  • valuesthe
  • getdrivetype
  • disk
  • specifies

得分解答快速导航

  • 帖主:shark
  • kxy
  • herolee

相关链接

  • Visual C++类图书
  • Visual C++类源码下载

广告也精彩

反馈

请通过下述方式给我们反馈
反馈
提问
网站简介|广告服务|VIP资费标准|银行汇款帐号|网站地图|帮助|联系方式|诚聘英才|English|问题报告
北京创新乐知广告有限公司 版权所有, 京 ICP 证 070598 号
世纪乐知(北京)网络技术有限公司 提供技术支持
Copyright © 2000-2008, CSDN.NET, All Rights Reserved
GongshangLogo