Solved

Determining DriveType in VC++

Posted on 1999-01-18
3
216 Views
Last Modified: 2010-04-16
In the good old days I could just hit an interrupt and determine whether a drive was removeable, network, or hard drive, etc based on the return code.  What is convention for making the same determination in VC++?  I can't find any functions to handle this.  I'm only working in console apps for the moment.

TIA
0
Comment
Question by:gwork
  • 2
3 Comments
 

Author Comment

by:gwork
ID: 1184454
Edited text of question
0
 
LVL 22

Accepted Solution

by:
nietod earned 100 total points
ID: 1184455
GetDriveType() probably tells you what you want to know.  If not, let me know.
0
 
LVL 22

Expert Comment

by:nietod
ID: 1184456
If there is anything GetDriveType() missed, you can probably find it with GetVolumeInformation(), but I don't think that will be necessary.  (What you specificaly asked for is returned by GetDriveType()).
0

Featured Post

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Written by John Humphreys C++ Threading and the POSIX Library This article will cover the basic information that you need to know in order to make use of the POSIX threading library available for C and C++ on UNIX and most Linux systems.   [s…
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question