ShlwApiPathAppend 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.PathCchAppend or NativeMethods.PathCchAppendEx function in its place.",
false)]
public static bool PathAppend(
StringBuilder path,
string more
)
<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.PathCchAppend or NativeMethods.PathCchAppendEx function in its place.",
false)>
Public Shared Function PathAppend (
path As StringBuilder,
more As String
) As Boolean
Dim path As StringBuilder
Dim more As String
Dim returnValue As Boolean
returnValue = ShlwApi.PathAppend(path,
more)
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.PathCchAppend or NativeMethods.PathCchAppendEx function in its place.",
false)]
static bool PathAppend(
StringBuilder^ path,
String^ more
)
[<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.PathCchAppend or NativeMethods.PathCchAppendEx function in its place.",
false)>]
static member PathAppend :
path : StringBuilder *
more : string -> bool
No code example is currently available or this language may not be supported.
- path StringBuilder
-
A pointer to a null-terminated string to which the path specified in more is appended.
You must set the size of this buffer to MAX_PATH to ensure that it is large enough to hold the returned string.
- more String
-
A pointer to a null-terminated string of maximum length MAX_PATH that contains the path to be appended.
Boolean
Returns
if successful, or
otherwise.