MBW.Libraries.DeviceIOControlLib
MBW.Libraries.DeviceIOControlLib copied to clipboard
A C# Library to work with the Win32 DeviceIOControl method
Fix PARTITION_INFORMATION_GPT structure according to [url](https://www.pinvoke.net/default.aspx/Structures/PARTITION_INFORMATION_GPT.html). Works better for my case, for example I get correct partitionType Guid = ebd0a0a2-b9e5-4433-87c0-68b6b72699c7 instead of wrong eb0101a2-b9e5-4433-87c0-68b6b72699c7.
As per: https://docs.microsoft.com/en-us/windows/win32/api/winioctl/ns-winioctl-storage_device_descriptor#remarks therefore will need to also implement `STORAGE_DESCRIPTOR_HEADER` from https://docs.microsoft.com/en-us/windows/win32/api/winioctl/ns-winioctl-storage_descriptor_header
Since it's always against the same constant device...