Solved

Determining DriveType in VC++

Posted on 1999-01-18
3
230 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

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…
Introduction This article is the first in a series of articles about the C/C++ Visual Studio Express debugger.  It provides a quick start guide in using the debugger. Part 2 focuses on additional topics in breakpoints.  Lastly, Part 3 focuses on th…
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 learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.

623 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