RtlAppendUnicodeStringToString - NtDoc

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

NTSYSAPI
NTSTATUS
NTAPI
RtlAppendUnicodeStringToString(
    _Inout_ PUNICODE_STRING Destination,
    _In_ PCUNICODE_STRING Source
    );

#endif

View code on GitHub
// wdm.h

NTSYSAPI NTSTATUS RtlAppendUnicodeStringToString(
  [in, out] PUNICODE_STRING  Destination,
  [in]      PCUNICODE_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-wdm-rtlappendunicodestringtostring)

RtlAppendUnicodeStringToString function

Description

The RtlAppendUnicodeStringToString routine concatenates two Unicode strings.

Parameters

Destination [in, out]

Pointer to a buffered Unicode string.

Source [in]

Pointer to the buffered string to be concatenated.

Return value

RtlAppendUnicodeStringToString can return one of the following:

Return code Description
STATUS_SUCCESS The source string was successfully appended to the destination counted string. The destination string length is updated to include the appended bytes.
STATUS_BUFFER_TOO_SMALL The destination string length is too small to allow the source string to be concatenated. Accordingly, the destination string length is not updated.

Remarks

RtlAppendUnicodeStringToString copies bytes from the source to the specified destination string, after the current contents of the destination string and the destination length is incremented by the number of bytes copied.

The Destination and Source buffers must be resident if the caller is running at IRQL >= DISPATCH_LEVEL.

See also

RtlAppendUnicodeToString