ShlwApiPathAddBackslash 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("Misuse of this function can lead to a buffer overrun. We recommend the use of the safer NativeMethods.PathCchAddBackslash or NativeMethods.PathCchAddBackslashEx function in its place.",
false)]
public static IntPtr PathAddBackslash(
StringBuilder path
)
<DllImportAttribute("ShlwApi.dll", CharSet := CharSet.Auto, BestFitMapping := false,
ThrowOnUnmappableChar := true, SetLastError := true>]
<ObsoleteAttribute("Misuse of this function can lead to a buffer overrun. We recommend the use of the safer NativeMethods.PathCchAddBackslash or NativeMethods.PathCchAddBackslashEx function in its place.",
false)>
Public Shared Function PathAddBackslash (
path As StringBuilder
) As IntPtr
Dim path As StringBuilder
Dim returnValue As IntPtr
returnValue = ShlwApi.PathAddBackslash(path)
public:
[DllImportAttribute(L"ShlwApi.dll", CharSet = CharSet::Auto, BestFitMapping = false,
ThrowOnUnmappableChar = true, SetLastError = true)]
[ObsoleteAttribute(L"Misuse of this function can lead to a buffer overrun. We recommend the use of the safer NativeMethods.PathCchAddBackslash or NativeMethods.PathCchAddBackslashEx function in its place.",
false)]
static IntPtr PathAddBackslash(
StringBuilder^ path
)
[<DllImportAttribute("ShlwApi.dll", CharSet = CharSet.Auto, BestFitMapping = false,
ThrowOnUnmappableChar = true, SetLastError = true)>]
[<ObsoleteAttribute("Misuse of this function can lead to a buffer overrun. We recommend the use of the safer NativeMethods.PathCchAddBackslash or NativeMethods.PathCchAddBackslashEx function in its place.",
false)>]
static member PathAddBackslash :
path : StringBuilder -> IntPtr
No code example is currently available or this language may not be supported.
- path StringBuilder
-
A pointer to a buffer with a string that represents a path.
The size of this buffer must be set to MAX_PATH to ensure that it is large enough to hold the returned string.
IntPtr
A pointer that, when this function returns successfully, points to the new string's terminating null character.
If the backslash could not be appended due to inadequate buffer size, this value is NULL.