---
name: "RtlInitUnicodeStringEx"
section: "3w"
platform: "linux"
package: "libwine-dev"
version: "1.4.1-4"
release: "Debian 7 (Wheezy)"
platforms: ["linux"]
url: "https://new.carta.tech/RtlInitUnicodeStringEx"
---

# RtlInitUnicodeStringEx(3w)

## NAME

**RtlInitUnicodeStringEx** (NTDLL.@)

## SYNOPSIS

NTSTATUS RtlInitUnicodeStringEx\
  (\
   PUNICODE\_STRING *target*,\
   PCWSTR          *source*\
  )

## PARAMS

*target* **\[In/Out\]**  Buffered unicode string to be initialized.

*source* **\[In\]**  **' '** terminated unicode string used to initialize *target*.

## DESCRIPTION

Initializes a buffered unicode string.

## RETURNS

**Success:** **STATUS\_SUCCESS**. *target* is initialized.

**Failure:** **STATUS\_NAME\_TOO\_LONG**, if the *source* string is larger than **65532** bytes.

## NOTES

Assigns *source* to *target-\>Buffer*. The length of *source* is assigned to *target-\>Length* and *target-\>MaximumLength*. If *source* is **NULL** the length of *source* is assumed to be **0.**

## IMPLEMENTATION

Declared in **"winternl.h"**.

Implemented in **"dlls/ntdll/rtlstr.c"**.

Debug channel **"ntdll"**.
