ShlwApiPathRemoveBackslash Method
Note: This API is now obsolete.
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("ShlwApi.dll", CharSet = CharSet.Auto, BestFitMapping = false,
ThrowOnUnmappableChar = true, SetLastError = true)]
[ObsoleteAttribute("This function is deprecated. We recommend the use of the NativeMethods.PathCchRemoveBackslash or NativeMethods.PathCchRemoveBackslashEx function in its place.",
false)]
public static IntPtr PathRemoveBackslash(
StringBuilder path
)
<DllImportAttribute("ShlwApi.dll", CharSet := CharSet.Auto, BestFitMapping := false,
ThrowOnUnmappableChar := true, SetLastError := true>]
<ObsoleteAttribute("This function is deprecated. We recommend the use of the NativeMethods.PathCchRemoveBackslash or NativeMethods.PathCchRemoveBackslashEx function in its place.",
false)>
Public Shared Function PathRemoveBackslash (
path As StringBuilder
) As IntPtr
Dim path As StringBuilder
Dim returnValue As IntPtr
returnValue = ShlwApi.PathRemoveBackslash(path)
public:
[DllImportAttribute(L"ShlwApi.dll", CharSet = CharSet::Auto, BestFitMapping = false,
ThrowOnUnmappableChar = true, SetLastError = true)]
[ObsoleteAttribute(L"This function is deprecated. We recommend the use of the NativeMethods.PathCchRemoveBackslash or NativeMethods.PathCchRemoveBackslashEx function in its place.",
false)]
static IntPtr PathRemoveBackslash(
StringBuilder^ path
)
[<DllImportAttribute("ShlwApi.dll", CharSet = CharSet.Auto, BestFitMapping = false,
ThrowOnUnmappableChar = true, SetLastError = true)>]
[<ObsoleteAttribute("This function is deprecated. We recommend the use of the NativeMethods.PathCchRemoveBackslash or NativeMethods.PathCchRemoveBackslashEx function in its place.",
false)>]
static member PathRemoveBackslash :
path : StringBuilder -> IntPtr
No code example is currently available or this language may not be supported.
- path StringBuilder
-
A pointer to a null-terminated string of length MAX_PATH that contains the path from which to remove the backslash.
IntPtr
A pointer that, when this function returns successfully and if a backslash has been removed,
points to the terminating null character that has replaced the backslash at the end of the string.
If the path did not include a trailing backslash, this value will point to the final character in the string.