Differentiate between virtual drive and physical drive
-
Hi! I have installed daemon-tools and have a virtual drive. I need my C# program to list all my physical disk-drives and not virtual ones. So far, I could do the following [DllImport("kernel32.dll")] public static extern DriveType GetDriveType([MarshalAs(UnmanagedType.LPStr)] string lpRootPathName); ----and in the code---- string[] allDrives = Directory.GetLogicalDrives(); for (int i = 0; i < allDrives.Length; i++) { if ((GetDriveType(allDrives[i]) & DriveType.CDROM) == DriveType.CDROM) { Console.WriteLine(allDrives[i]); } } It lists my physical disk-drives as well as virtual ones. Any suggestions how to go about enumerating only the physical ones? Thanks.
I code at Will!
-
Hi! I have installed daemon-tools and have a virtual drive. I need my C# program to list all my physical disk-drives and not virtual ones. So far, I could do the following [DllImport("kernel32.dll")] public static extern DriveType GetDriveType([MarshalAs(UnmanagedType.LPStr)] string lpRootPathName); ----and in the code---- string[] allDrives = Directory.GetLogicalDrives(); for (int i = 0; i < allDrives.Length; i++) { if ((GetDriveType(allDrives[i]) & DriveType.CDROM) == DriveType.CDROM) { Console.WriteLine(allDrives[i]); } } It lists my physical disk-drives as well as virtual ones. Any suggestions how to go about enumerating only the physical ones? Thanks.
I code at Will!
You need the driver infusion api, this will provide you the a differenciating interface which providing you pass the correcting structs in should do the job. Also you could listen for the differences, a virtual drive won't be audible. Good luck.
If you're struggling developing software, then I'd recommend gardening.
-
Hi! I have installed daemon-tools and have a virtual drive. I need my C# program to list all my physical disk-drives and not virtual ones. So far, I could do the following [DllImport("kernel32.dll")] public static extern DriveType GetDriveType([MarshalAs(UnmanagedType.LPStr)] string lpRootPathName); ----and in the code---- string[] allDrives = Directory.GetLogicalDrives(); for (int i = 0; i < allDrives.Length; i++) { if ((GetDriveType(allDrives[i]) & DriveType.CDROM) == DriveType.CDROM) { Console.WriteLine(allDrives[i]); } } It lists my physical disk-drives as well as virtual ones. Any suggestions how to go about enumerating only the physical ones? Thanks.
I code at Will!
Yes, you should be enumerating the physical drives only. This way you won't get any of the virtual drives.
There are 10 kinds of people in this world. Those who understand binary and those who don't... ______________________ "Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook
-
You need the driver infusion api, this will provide you the a differenciating interface which providing you pass the correcting structs in should do the job. Also you could listen for the differences, a virtual drive won't be audible. Good luck.
If you're struggling developing software, then I'd recommend gardening.
You clearly haven't got a copy of our virtual hard drive virtual fan driver, virtfhand.dll[^] then you'd not only be able to hear your virtual drive but many user claim to be able to hear the difference between the SCSI drive fan emulation and the IDE fan emulation. The new 7200 SATA virtual drive virtual fan promises adaptive rpm emulation in real time, full head parking micro rev simulation and realistic startup latency bearing wear tracking over the lifetime of your virtual drive. Only $49.99 per drive available 04/01/08
Nothing is exactly what it seems but everything with seems can be unpicked.
-
You need the driver infusion api, this will provide you the a differenciating interface which providing you pass the correcting structs in should do the job. Also you could listen for the differences, a virtual drive won't be audible. Good luck.
If you're struggling developing software, then I'd recommend gardening.
Tricky. If the physical drives have been greased or they are submerged in any class 3 sound isolating liquid then you can't tell by listening alone. How did you get your driver infusion api to work? :confused: I had to couple min through double K9 wires before it worked.
There are 10 kinds of people in this world. Those who understand binary and those who don't... ______________________ "Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook
-
Tricky. If the physical drives have been greased or they are submerged in any class 3 sound isolating liquid then you can't tell by listening alone. How did you get your driver infusion api to work? :confused: I had to couple min through double K9 wires before it worked.
There are 10 kinds of people in this world. Those who understand binary and those who don't... ______________________ "Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook
Mustafa Ismail Mustafa wrote:
K9 wires
Which type? K9-A or K9-B?
If you truly believe you need to pick a mobile phone that "says something" about your personality, don't bother. You don't have a personality. A mental illness, maybe - but not a personality. - Charlie Brooker My Blog - My Photos - ScrewTurn Wiki
-
Mustafa Ismail Mustafa wrote:
K9 wires
Which type? K9-A or K9-B?
If you truly believe you need to pick a mobile phone that "says something" about your personality, don't bother. You don't have a personality. A mental illness, maybe - but not a personality. - Charlie Brooker My Blog - My Photos - ScrewTurn Wiki
B of course! :omg: A would upset the inter-dimensional matrices of my computer's drive. And we all know what that means. Yep. Data Splatters are NOT fun.
There are 10 kinds of people in this world. Those who understand binary and those who don't... ______________________ "Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook
-
Mustafa Ismail Mustafa wrote:
K9 wires
Which type? K9-A or K9-B?
If you truly believe you need to pick a mobile phone that "says something" about your personality, don't bother. You don't have a personality. A mental illness, maybe - but not a personality. - Charlie Brooker My Blog - My Photos - ScrewTurn Wiki
-
You clearly haven't got a copy of our virtual hard drive virtual fan driver, virtfhand.dll[^] then you'd not only be able to hear your virtual drive but many user claim to be able to hear the difference between the SCSI drive fan emulation and the IDE fan emulation. The new 7200 SATA virtual drive virtual fan promises adaptive rpm emulation in real time, full head parking micro rev simulation and realistic startup latency bearing wear tracking over the lifetime of your virtual drive. Only $49.99 per drive available 04/01/08
Nothing is exactly what it seems but everything with seems can be unpicked.
-
Actually I used a K9-Bypass a special type of wire which uses molecular bypass technology.
If you're struggling developing software, then I'd recommend gardening.
sweet! I've heard/read about those! Can't get 'em here in Jordan :sigh:
There are 10 kinds of people in this world. Those who understand binary and those who don't... ______________________ "Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook
-
sweet! I've heard/read about those! Can't get 'em here in Jordan :sigh:
There are 10 kinds of people in this world. Those who understand binary and those who don't... ______________________ "Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook
Mustafa Ismail Mustafa wrote:
I've heard/read about those! Can't get 'em here in Jordan
I can give you the principles of fabricating some of these wires, you'll have to sign a disclosure document detailing that under no circumatances is this technology to be passed on to anybody else.
If you're struggling developing software, then I'd recommend gardening.
-
sweet! I've heard/read about those! Can't get 'em here in Jordan :sigh:
There are 10 kinds of people in this world. Those who understand binary and those who don't... ______________________ "Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook
Mustafa Ismail Mustafa wrote:
I've heard/read about those! Can't get 'em here in Jordan
Let me know how many you want and I'll FedEx them to you.
Deja View - the feeling that you've seen this post before.
-
Mustafa Ismail Mustafa wrote:
I've heard/read about those! Can't get 'em here in Jordan
Let me know how many you want and I'll FedEx them to you.
Deja View - the feeling that you've seen this post before.
-
Hey you didn't mention the disclosure aggreement, you know you can't go distributing this kind of technology willy-nilly.
If you're struggling developing software, then I'd recommend gardening.
I like to do things willy-nilly. It's the only fun I get nowadays, nillying my willy. You're right of course - I'll secure the package so that it self destructs if the NDA hasn't been signed first.
Deja View - the feeling that you've seen this post before.
-
I like to do things willy-nilly. It's the only fun I get nowadays, nillying my willy. You're right of course - I'll secure the package so that it self destructs if the NDA hasn't been signed first.
Deja View - the feeling that you've seen this post before.
email me the NDA, I'll print it and sign it and get it back to you via cpp (Carrier Pigeon Post) ASAP
There are 10 kinds of people in this world. Those who understand binary and those who don't... ______________________ "Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook
-
Hi! I have installed daemon-tools and have a virtual drive. I need my C# program to list all my physical disk-drives and not virtual ones. So far, I could do the following [DllImport("kernel32.dll")] public static extern DriveType GetDriveType([MarshalAs(UnmanagedType.LPStr)] string lpRootPathName); ----and in the code---- string[] allDrives = Directory.GetLogicalDrives(); for (int i = 0; i < allDrives.Length; i++) { if ((GetDriveType(allDrives[i]) & DriveType.CDROM) == DriveType.CDROM) { Console.WriteLine(allDrives[i]); } } It lists my physical disk-drives as well as virtual ones. Any suggestions how to go about enumerating only the physical ones? Thanks.
I code at Will!
allDrives[i].GetType().IsVirtual
-
email me the NDA, I'll print it and sign it and get it back to you via cpp (Carrier Pigeon Post) ASAP
There are 10 kinds of people in this world. Those who understand binary and those who don't... ______________________ "Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook
How about I email you the pigeon as well?
Deja View - the feeling that you've seen this post before.
-
How about I email you the pigeon as well?
Deja View - the feeling that you've seen this post before.
-
How about I email you the pigeon as well?
Deja View - the feeling that you've seen this post before.
Interesting. Do you propose to do that by stuffing the poor bird through, say, your CD/DVD drive, copying its internals into a machine readable format before converting it to a human readable format onto a pdf file and then emailing it to me?
There are 10 kinds of people in this world. Those who understand binary and those who don't... ______________________ "Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook
-
Hi! I have installed daemon-tools and have a virtual drive. I need my C# program to list all my physical disk-drives and not virtual ones. So far, I could do the following [DllImport("kernel32.dll")] public static extern DriveType GetDriveType([MarshalAs(UnmanagedType.LPStr)] string lpRootPathName); ----and in the code---- string[] allDrives = Directory.GetLogicalDrives(); for (int i = 0; i < allDrives.Length; i++) { if ((GetDriveType(allDrives[i]) & DriveType.CDROM) == DriveType.CDROM) { Console.WriteLine(allDrives[i]); } } It lists my physical disk-drives as well as virtual ones. Any suggestions how to go about enumerating only the physical ones? Thanks.
I code at Will!
Well, a physical drive behaves according to Newtonian physics, while a virtual drive behaves according to Einsteinian physics. So, if you experience temporal displacement with the drive, you know it's a virtual drive. Marc