Retrieving virtual disk file name from disk number

Posted by Josip Medved on Stack Overflow See other posts from Stack Overflow or by Josip Medved
Published on 2010-05-02T23:36:36Z Indexed on 2010/05/21 1:00 UTC
Read the original article Hit count: 519

Filed under:
|
|
|

When I list virtual disks within diskpart:

DISKPART> list vdisk

  VDisk ###  Disk ###  State                 Type       File
  ---------  --------  --------------------  ---------  ----
  VDisk 0    Disk 2    Attached not open     Fixed       C:\Disk.vhd

Interesting part for me here is file name. I tried to find equivalent of function that would give me file name (under File column) if I know disk number.

Any idea which function that might be?

© Stack Overflow or respective owner

Related posts about c#

Related posts about pinvoke