#ifndef _NTRTL_H
NTSYSAPI
VOID
NTAPI
RtlCopyString(
_In_ PSTRING DestinationString,
_In_opt_ PSTRING SourceString
);
View code on GitHub// ntddk.h
NTSYSAPI VOID RtlCopyString(
[out] PSTRING DestinationString,
[in, optional] const STRING *SourceString
);
View the official Windows Driver Kit DDI referenceThis function is documented in Windows Driver Kit.
The RtlCopyString routine copies a source string to a destination string.
DestinationString [out]A pointer to the destination string buffer.
SourceString [in, optional]A pointer to the source string buffer.
None
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.