CSDN首页 空间 新闻 论坛 Blog 下载 读书 网摘 搜索 .NET Java 视频 接项目 求职 在线学习 买书 程序员 通知
可用分押宝游戏火热进行中... 专题改版:Java Web 专题
CSDN社区
搜索 收藏 打印 关闭
CSDN社区 >  VC/MFC >  基础类

关于GetLogicalDriveStrings

楼主oracle121(鸿鹰无寂)2004-05-02 13:10:04 在 VC/MFC / 基础类 提问

我要在treectrl上显示硬盘分区,但GetLogicalDriveStrings把可获得的盘符都显示了,如何去掉我不想要的(例如光盘,软驱。。) 问题点数:0、回复次数:2Top

1 楼subtop(南来北往)回复于 2004-05-02 13:14:21 得分 0

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  
  );  
     
  Parameters  
  lpRootPathName    
  Pointer   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    
  DRIVE_UNKNOWN   The   drive   type   cannot   be   determined.    
  DRIVE_NO_ROOT_DIR   The   root   directory   does   not   exist.    
  DRIVE_REMOVABLE   The   disk   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.    
   
   
  QuickInfo  
      Windows   NT:   Requires   version   3.1   or   later.  
      Windows:   Requires   Windows   95   or   later.  
      Windows   CE:   Unsupported.  
      Header:   Declared   in   winbase.h.  
      Import   Library:   Use   kernel32.lib.  
      Unicode:   Implemented   as   Unicode   and   ANSI   versions   on   Windows   NT.  
   
  Top

2 楼Mackz(在相互)回复于 2004-05-02 15:07:18 得分 0

GetDriveTypeTop

相关问题

  • 请问关于getlogicaldrivestrings的api用法
  • 怎么回事?我用GetLogicalDriveStrings()函数却只能得到“A:\”?
  • 我想获得机器可用的最后一个盘符,我用GetLogicalDriveStrings返回a:\

关键词

  • root
  • null
  • getlogicaldrivestrings
  • drive
  • lprootpathname
  • disk
  • getdrivetype
  • removed
  • determined
  • cannot

得分解答快速导航

  • 帖主:oracle121

相关链接

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

广告也精彩

反馈

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