Solved

Determining DriveType in VC++

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

When writing generic code, using template meta-programming techniques, it is sometimes useful to know if a type is convertible to another type. A good example of when this might be is if you are writing diagnostic instrumentation for code to generat…
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…
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

861 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

Need Help in Real-Time?

Connect with top rated Experts

25 Experts available now in Live!

Get 1:1 Help Now