This came up from my other question about IMAPI2 is it possible to identify if a DVD/CD drive is virtual and not physical?
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.
The purpose of a virtual drive is to act exactly as its physical counterpart, just without the physical media. Both kinds of drives work with the operating system in the same manner as a device driver. I highly doubt the difference between them would be visible within the Win32 API. That would be counter-intuitive to the virtual drive’s purpose.
I looked at the information provided by WMI (which is accessible in C#) and found something of interest. The device id of my virtual drive began with ‘SCSI’ whereas the device id of my physical SATA drive began with ‘IDE’. I believe most of (all of?) virtual drive software emulates a SCSI drive; I’m not sure. Typically, a user would have either an IDE or SATA optical drive which would both have an id beginning with ‘IDE’.
Notice in my example device ids that the virtual drive is clearly identified as the Clone Drive software. You could check the manufacturer and product name against a known list of virtual drive software. This might yield a lot of false negatives and be very hard to maintain.
Either way, I am not confident that searching for features in the device id would be a highly reliable solution. There might be virtual drives which identify themselves differently. I only tested Clone Drive and Daemon Tools in researching your question.
If you were to use this approach for copyright protection (what else would you use it for?) then you have to consider if the chance of a false virtual drive determination is worth angering your customers.
Here is the C# code for inspecting the drives using WMI and accessing the device id. You will need to reference the System.Management assembly.