UtilDrivesGetHardDriveHandle(Char) Method
Gets a handle to the specified hard drive.
Namespace: DevCase.Core.IO.Devices.DrivesAssembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public static SafeFileHandle GetHardDriveHandle(
char driveLetter
)
Public Shared Function GetHardDriveHandle (
driveLetter As Char
) As SafeFileHandle
Dim driveLetter As Char
Dim returnValue As SafeFileHandle
returnValue = UtilDrives.GetHardDriveHandle(driveLetter)
public:
static SafeFileHandle^ GetHardDriveHandle(
wchar_t driveLetter
)
static member GetHardDriveHandle :
driveLetter : char -> SafeFileHandle
No code example is currently available or this language may not be supported.
- driveLetter Char
-
The letter of the hard drive, such as "C" or "D".
SafeFileHandle
A
SafeFileHandle that represents the handle to the specified hard drive.
This is a code example.
No code example is currently available or this language may not be supported.
Using deviceHandle As SafeFileHandle = GetHardDriveHandle("C"c)
Console.WriteLine(deviceHandle.DangerousGetHandle().ToInt32())
End Using
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.