RtlAppendStringToString - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
#ifndef _NTRTL_H

NTSYSAPI
NTSTATUS
NTAPI
RtlAppendStringToString(
    _Inout_ PSTRING Destination,
    _In_ PSTRING Source
    );

#endif

View code on GitHub
// ntifs.h

NTSYSAPI NTSTATUS RtlAppendStringToString(
  [in, out] PSTRING      Destination,
  [in]      const STRING *Source
);
View the official Windows Driver Kit DDI reference

NtDoc

This function is documented in Windows Driver Kit.

Windows Driver Kit DDI reference (nf-ntifs-rtlappendstringtostring)

RtlAppendStringToString function

Description

The RtlAppendStringToString routine concatenates two counted strings. It copies bytes from the source up to the length of the destination buffer.

Parameters

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.

Return value

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.

Remarks

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.

See also

RtlAppendUnicodeStringToString

RtlAppendUnicodeToString

RtlInitString