public static extern bool FindNextVolume(VolumeSafeHandle hFindVolume, [Out] char[] lpszVolumeName, uint cchBufferLength);
public static extern bool DeviceIoControl([InAttribute()] VolumeSafeHandle hDevice, UInt32 dwIoControlCode, [InAttribute()] IntPtr lpInBuffer, Int32 nInBufferSize, ref VOLUME_DISK_EXTENTS lpOutBuffer, Int32 nOutBufferSize, ref Int32 lpBytesReturned, IntPtr lpOverlapped);
/// <summary> /// ボリューム名を取得する /// </summary> /// <returns></returns> public static IEnumerable <string> FindVolumes() => VolumeSafeHandle.Find();