#ifndef _NTRTL_H
NTSYSAPI
NTSTATUS
NTAPI
RtlAppendUnicodeStringToString(
_Inout_ PUNICODE_STRING Destination,
_In_ PCUNICODE_STRING Source
);
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 referenceThis function is documented in Windows Driver Kit.
The RtlAppendUnicodeStringToString routine concatenates two Unicode strings.
Destination [in, out]Pointer to a buffered Unicode string.
Source [in]Pointer to the buffered string to be concatenated.
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. |
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.