KernelBasePathCchRemoveBackslashEx Method
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("KernelBase.dll", CharSet = CharSet.Auto, BestFitMapping = false,
ThrowOnUnmappableChar = true)]
public static HResult PathCchRemoveBackslashEx(
StringBuilder buffer,
uint bufferSize,
out IntPtr refEnd,
out uint refRemaining
)
<DllImportAttribute("KernelBase.dll", CharSet := CharSet.Auto, BestFitMapping := false,
ThrowOnUnmappableChar := true>]
Public Shared Function PathCchRemoveBackslashEx (
buffer As StringBuilder,
bufferSize As UInteger,
<OutAttribute> ByRef refEnd As IntPtr,
<OutAttribute> ByRef refRemaining As UInteger
) As HResult
Dim buffer As StringBuilder
Dim bufferSize As UInteger
Dim refEnd As IntPtr
Dim refRemaining As UInteger
Dim returnValue As HResult
returnValue = KernelBase.PathCchRemoveBackslashEx(buffer,
bufferSize, refEnd, refRemaining)
public:
[DllImportAttribute(L"KernelBase.dll", CharSet = CharSet::Auto, BestFitMapping = false,
ThrowOnUnmappableChar = true)]
static HResult PathCchRemoveBackslashEx(
StringBuilder^ buffer,
unsigned int bufferSize,
[OutAttribute] IntPtr% refEnd,
[OutAttribute] unsigned int% refRemaining
)
[<DllImportAttribute("KernelBase.dll", CharSet = CharSet.Auto, BestFitMapping = false,
ThrowOnUnmappableChar = true)>]
static member PathCchRemoveBackslashEx :
buffer : StringBuilder *
bufferSize : uint32 *
refEnd : IntPtr byref *
refRemaining : uint32 byref -> HResult
No code example is currently available or this language may not be supported.
- buffer StringBuilder
-
A pointer to the path string.
When this function returns successfully, the string contains the path with any trailing backslash removed.
If no trailing backslash was found, the string is unchanged.
- bufferSize UInt32
-
The size of the buffer pointed to by buffer, in characters.
- refEnd IntPtr
-
A value that, when this function returns successfully, receives the address of a pointer to end of the new string.
If the string is a root path such as "C:", the pointer points to the backslash;
otherwise the pointer points to the string's terminating null character.
- refRemaining UInt32
-
A pointer to a value that, when this function returns successfully,
receives the number of unused characters in the destination buffer, including the terminating null character.
If the string is a root path such as "C:", this count includes the backslash in that string.
HResult
This function returns
S_OK if the function was successful,
S_FALSE if the string was a root path or if no backslash was found,
or an error code otherwise.