KernelBasePathCchStripPrefix Method
Removes the "\?" prefix, if present, from a file path.
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 PathCchStripPrefix(
StringBuilder path,
uint pathSize
)
<DllImportAttribute("KernelBase.dll", CharSet := CharSet.Auto, BestFitMapping := false,
ThrowOnUnmappableChar := true>]
Public Shared Function PathCchStripPrefix (
path As StringBuilder,
pathSize As UInteger
) As HResult
Dim path As StringBuilder
Dim pathSize As UInteger
Dim returnValue As HResult
returnValue = KernelBase.PathCchStripPrefix(path,
pathSize)
public:
[DllImportAttribute(L"KernelBase.dll", CharSet = CharSet::Auto, BestFitMapping = false,
ThrowOnUnmappableChar = true)]
static HResult PathCchStripPrefix(
StringBuilder^ path,
unsigned int pathSize
)
[<DllImportAttribute("KernelBase.dll", CharSet = CharSet.Auto, BestFitMapping = false,
ThrowOnUnmappableChar = true)>]
static member PathCchStripPrefix :
path : StringBuilder *
pathSize : uint32 -> HResult
No code example is currently available or this language may not be supported.
- path StringBuilder
-
A pointer to the path string.
When this function returns successfully,
the same path string will have had the prefix removed,
if the prefix was present.
If no prefix was present, the string will be unchanged.
- pathSize UInt32
-
The size of the buffer pointed to by path, in characters.
HResult
Returns
S_OK if the prefix was removed,
S_FALSE if the path did not have a prefix to remove,
or an
HResult failure code.