Solved

Determining DriveType in VC++

Posted on 1999-01-18
3
195 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
Comment Utility
Edited text of question
0
 
LVL 22

Accepted Solution

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

Expert Comment

by:nietod
Comment Utility
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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

IntroductionThis article is the second in a three part article series on the Visual Studio 2008 Debugger.  It provides tips in setting and using breakpoints. If not familiar with this debugger, you can find a basic introduction in the EE article loc…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
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.
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

772 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

15 Experts available now in Live!

Get 1:1 Help Now