#ifndef _NTRTL_H
NTSYSAPI
NTSTATUS
NTAPI
RtlAppendStringToString(
_Inout_ PSTRING Destination,
_In_ PSTRING Source
);
View code on GitHub// ntifs.h
NTSYSAPI NTSTATUS RtlAppendStringToString(
[in, out] PSTRING Destination,
[in] const STRING *Source
);
View the official Windows Driver Kit DDI referenceThis function is documented in Windows Driver Kit.
The RtlAppendStringToString routine concatenates two counted strings. It copies bytes from the source up to the length of the destination buffer.
Destination [in, out]A pointer to a counted string to which the string at Source should be appended.
Source [in]A pointer to a counted string to be appended to the string at Destination.
The RtlAppendStringToString routine returns STATUS_SUCCESS if it appended the string at Source to the string at Destination. RtlAppendStringToString returns STATUS_BUFFER_TOO_SMALL if the MaximumLength of the Destination string is too small to allow the source string to be appended.
The sum of the Length members of the Destination and Source strings must be less than or equal to the MaximumLength of the Destination string.
For information about other string-handling routines, see Run-Time Library (RTL) Routines.
RtlAppendUnicodeStringToString