Search
Module:
Directory

   Desktop Functions:

   Smart Device Functions:


Show Recent Changes
Subscribe (RSS)
Misc. Pages
Comments
FAQ
Helpful Tools
Playground
Suggested Reading
Website TODO List
Download Visual Studio Add-In

Search Results for "DriveLetter" in [All]

kernel32

.

DeleteVolumeMountPoint(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.

.

static extern TODO DriveLetter(TODO);

.

Declare Function DriveLetter Lib "kernel32.dll" (TODO) As TODO

.
Documentation
[DriveLetter] on MSDN
.

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);


 
Access PInvoke.net directly from VS: