Way to know if two partitions are in one physical hard disk without WMI?

Posted by Alon on Stack Overflow See other posts from Stack Overflow or by Alon
Published on 2010-03-14T20:03:34Z Indexed on 2010/03/14 20:25 UTC
Read the original article Hit count: 199

Filed under:
|
|
|

Hey.

I have those partitions (in Windows) for example:

Hard Disk 1 - Partition C, Partition D
Hard Disk 2 - Partition E

Is there any way in a program language to know if for example partition C and partition D are in one physical hard disk without WMI?

I don't want to use WMI because it's slow - for this example, it took for me 0.5 seconds. I need it to be fast.

Thank you.

© Stack Overflow or respective owner

Related posts about Windows

Related posts about partition