c# 4.0 - Find out if HDD is GPT or MBT in C# -
how find out if hard drive type gpt or mbr c#? looked @ win32_diskdrive , doesn't seem have it.
you'd want use pinvoke (see http://pinvoke.net) createfile
, deviceiocontrol
(dwiocontrolcode = ioctl_disk_get_partition_info_ex
), , partition_information_ex
structure's partitionstyle
field tell (partition_style_mbr
, partition_style_gpt
or partition_style_raw
).
Comments
Post a Comment