Previous Next

RtlCopyUnicodeString

The RtlCopyUnicodeString routine copies a source string to a destination string.

VOID 
  RtlCopyUnicodeString(
    IN OUT PUNICODE_STRING  DestinationString,
    IN PUNICODE_STRING  SourceString
    );

Parameters

DestinationString
Pointer to the destination string buffer.
SourceString
Pointer to the source string buffer.

Return Value

None

Headers

Declared in wdm.h and ntddk.h. Include wdm.h or ntddk.h.

Comments

If the source string is longer than the destination string, this routine copies bytes from the source to the end of the destination buffer, effectively truncating the copied source string.

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

See Also

RtlCopyString