Kernel32DeleteVolumeMountPoint Method
Deletes a drive letter or mounted folder.
Namespace: DevCase.Win32.NativeMethodsAssembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[DllImportAttribute("Kernel32.dll", CharSet = CharSet.Auto, BestFitMapping = false,
ThrowOnUnmappableChar = true, SetLastError = true)]
public static bool DeleteVolumeMountPoint(
string volumeMountPoint
)
<DllImportAttribute("Kernel32.dll", CharSet := CharSet.Auto, BestFitMapping := false,
ThrowOnUnmappableChar := true, SetLastError := true>]
Public Shared Function DeleteVolumeMountPoint (
volumeMountPoint As String
) As Boolean
Dim volumeMountPoint As String
Dim returnValue As Boolean
returnValue = Kernel32.DeleteVolumeMountPoint(volumeMountPoint)
public:
[DllImportAttribute(L"Kernel32.dll", CharSet = CharSet::Auto, BestFitMapping = false,
ThrowOnUnmappableChar = true, SetLastError = true)]
static bool DeleteVolumeMountPoint(
String^ volumeMountPoint
)
[<DllImportAttribute("Kernel32.dll", CharSet = CharSet.Auto, BestFitMapping = false,
ThrowOnUnmappableChar = true, SetLastError = true)>]
static member DeleteVolumeMountPoint :
volumeMountPoint : string -> bool
No code example is currently available or this language may not be supported.
- volumeMountPoint String
-
The drive letter or mounted folder to be deleted.
A trailing backslash is required, for example, "X:" or "Y:\MountX".
Boolean
If the function succeeds, the return value is
.
If the function fails, the return value is
.
To get extended error information, call
GetLastWin32Error.