Desktop Functions: Smart Device Functions:
|
Search Results for "DriveLetter" in [All]kernel32DeleteVolumeMountPoint(DriveLetter+":\\"); hDevice - To retrieve a handle to a volume, call CreateFile with the lpFileName parameter set to a string of the following form: \\.\DriveLetter:. DriveLetter is not case-sensitive and does not require a colon after it. 3: DriveLetter
static extern TODO DriveLetter(TODO);
Declare Function DriveLetter Lib "kernel32.dll" (TODO) As TODO System.Management.ManagementObject("Win32_LogicalDisk.DeviceID=" & DriveLetter & ":") Private Function GetVolumeSerial(ByVal DriveLetter As String) As String
Dim ValidDriveLetters As String = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
If ValidDriveLetters.IndexOf(DriveLetter) <> -1 Then
If DriveLetter.Length = 1 Then
Dim Disk As New System.Management.ManagementObject("Win32_LogicalDisk.DeviceID=""" & DriveLetter & ":""")
string driveLetter = Path.GetPathRoot(path).Replace("\\", "");
QueryDosDevice(driveLetter, pathInformation, 250);
public static string[] QueryDevice(string driveLetter=null)
uint len = QueryDosDevice(driveLetter, buffer, (uint)buffer.Length); |