RtlCopyString - NtDoc

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

NTSYSAPI
VOID
NTAPI
RtlCopyString(
    _In_ PSTRING DestinationString,
    _In_opt_ PSTRING SourceString
    );

#endif

View code on GitHub
// ntddk.h

NTSYSAPI VOID RtlCopyString(
  [out]          PSTRING      DestinationString,
  [in, optional] const STRING *SourceString
);
View the official Windows Driver Kit DDI reference

NtDoc

This function is documented in Windows Driver Kit.

Windows Driver Kit DDI reference (nf-ntddk-rtlcopystring)

RtlCopyString function

Description

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

Parameters

DestinationString [out]

A pointer to the destination string buffer.

SourceString [in, optional]

A pointer to the source string buffer.

Return value

None

Remarks

The DestinationString Length is set to zero if no source string is supplied. The MaximumLength and Buffer members of the DestinationString are not modified by this routine.

The number of bytes copied from the SourceString is either the length of SourceString or the maximum length of DestinationString, whichever is smaller.

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

See also

RtlCopyUnicodeString