RtlInitUnicodeString function (winternl.h)

Initializes a counted Unicode string.

Syntax

void RtlInitUnicodeString(
  [in, out]      PUNICODE_STRING DestinationString,
  [in, optional] PCWSTR          SourceString
);

Parameters

[in, out] DestinationString

The buffer for a counted Unicode string to be initialized. The length is initialized to zero if the SourceString is not specified.

[in, optional] SourceString

Optional pointer to a null-terminated Unicode string with which to initialize the counted string.

Return value

None

Requirements

Requirement Value
Minimum supported client Windows 2000 Professional [desktop apps only]
Minimum supported server Windows 2000 Server [desktop apps only]
Target Platform Windows
Header winternl.h
Library ntdll.lib
DLL ntdll.dll; NtosKrnl.exe