27 if (!global::Interop.Kernel32.GetVolumeInformation(
Name,
null, 0,
null,
null,
out var _,
ptr, 261))
41 bool flag = global::Interop.Kernel32.SetThreadErrorMode(1
u,
out lpOldMode);
65 bool flag = global::Interop.Kernel32.SetThreadErrorMode(1
u,
out lpOldMode);
111 if (!global::Interop.Kernel32.GetVolumeInformation(
Name,
ptr, 261,
null,
null,
out var _,
null, 0))
123 bool flag = global::Interop.Kernel32.SetThreadErrorMode(1
u,
out lpOldMode);
126 if (!global::Interop.Kernel32.SetVolumeLabel(
Name,
value))
static bool Exists([NotNullWhen(true)] string? path)
static string[] GetLogicalDrives()
static string NormalizeDriveName(string driveName)
override string ToString()
static DriveInfo[] GetDrives()
DirectoryInfo RootDirectory
DriveInfo(string driveName)
static string NormalizeDriveName(string driveName)
unsafe string DriveFormat
unsafe string VolumeLabel
static Exception GetExceptionForLastWin32DriveError(string driveName)
static Exception GetExceptionForWin32DriveError(int errorCode, string driveName)
static int GetLastPInvokeError()
static string InvalidOperation_SetVolumeLabelFailed
void GetObjectData(SerializationInfo info, StreamingContext context)