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 "SetVolumeLabel" in [All]

kernel32

.

static extern bool SetVolumeLabel(string lpRootPathName, string lpVolumeName);

.

Private Shared Function SetVolumeLabel(ByVal lpRootPathName As String, ByVal lpVolumeName As String) As Boolean

.

        static extern bool SetVolumeLabel(string lpRootPathName, string lpVolumeName);

.

            if(SetVolumeLabel("C:\\","PInvokeC Drive"))

.

    Private Function SetVolumeLabel(ByVal lpRootPathName As String, ByVal lpVolumeName As String) As Boolean

.

            If Not SetVolumeLabel(DrivePath, value) Then Throw New Win32Exception(Marshal.GetLastWin32Error())

.
Documentation
[SetVolumeLabel] on MSDN

 
Access PInvoke.net directly from VS: