KernelBasePathCchAddExtension 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 PathCchAddExtension(
StringBuilder buffer,
uint bufferSize,
string ext
)
<DllImportAttribute("KernelBase.dll", CharSet := CharSet.Auto, BestFitMapping := false,
ThrowOnUnmappableChar := true>]
Public Shared Function PathCchAddExtension (
buffer As StringBuilder,
bufferSize As UInteger,
ext As String
) As HResult
Dim buffer As StringBuilder
Dim bufferSize As UInteger
Dim ext As String
Dim returnValue As HResult
returnValue = KernelBase.PathCchAddExtension(buffer,
bufferSize, ext)
public:
[DllImportAttribute(L"KernelBase.dll", CharSet = CharSet::Auto, BestFitMapping = false,
ThrowOnUnmappableChar = true)]
static HResult PathCchAddExtension(
StringBuilder^ buffer,
unsigned int bufferSize,
String^ ext
)
[<DllImportAttribute("KernelBase.dll", CharSet = CharSet.Auto, BestFitMapping = false,
ThrowOnUnmappableChar = true)>]
static member PathCchAddExtension :
buffer : StringBuilder *
bufferSize : uint32 *
ext : string -> 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 buffer contains the string with the appended extension.
This value should not be NULL.
- bufferSize UInt32
-
The size of the buffer pointed to by buffer, in characters.
- ext String
-
A pointer to the file name extension string.
This string can be given either with or without a preceding period (".ext" or "ext").
HResult
If this function succeeds, it returns
S_OK.
Otherwise, it returns an
HResult code.