how to get drives letters which are available (not in use) in MFC using C++ ?
Any code snippet..
how to get drives letters which are available (not in use) in MFC using
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Your probably after GetLogicalDrives, this gives you a bit mask of all the drive letters in use by the system, it’ll be up to you to convert these to letters and add them into the combo box
To make it a little more clear:
so
GetLogicalDrives() & 1checks if drive A is present,GetLogicalDrives() & 4checks if drives C is there