RtlAppendUnicodeStringToString function

The RtlAppendUnicodeStringToString routine concatenates two Unicode strings.

Syntax

NTSYSAPI NTSTATUS RtlAppendUnicodeStringToString(
  PUNICODE_STRING  Destination,
  PCUNICODE_STRING Source
);

Parameters

Destination

Pointer to a buffered Unicode string.

Source

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.

Requirements

   
Minimum supported client Available starting with Windows 2000.
Target Platform Universal
Header wdm.h (include Wdm.h, Ntddk.h, Ntifs.h, Wudfwdm.h)
Library NtosKrnl.lib
DLL NtosKrnl.exe
IRQL See Remarks section.

See Also

RtlAppendUnicodeToString