Solved

Determining DriveType in VC++

Posted on 1999-01-18
3
211 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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Quicksort a dynamic deque 33 72
Unresolved External Symbols 3 81
Beginner to Unreal Engine 4 5 80
Installshield for Embarcadero EX 10.1 Berlin 4 40
Templates For Beginners Or How To Encourage The Compiler To Work For You Introduction This tutorial is targeted at the reader who is, perhaps, familiar with the basics of C++ but would prefer a little slower introduction to the more ad…
Many modern programming languages support the concept of a property -- a class member that combines characteristics of both a data member and a method.  These are sometimes called "smart fields" because you can add logic that is applied automaticall…
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.

776 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