RtlInitUnicodeString function (winternl.h)

Initializes a counted Unicode string.


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


[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



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 NtosKrnl.lib
DLL Ntdll.dll; NtosKrnl.exe