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

# RtlUnicodeStringToAnsiSize(3w)

## NAME

**RtlUnicodeStringToAnsiSize** (NTDLL.@)

## SYNOPSIS

DWORD RtlUnicodeStringToAnsiSize\
  (\
   const UNICODE\_STRING\* *str*\
  )

## DESCRIPTION

Calculate the size in bytes necessary for the Ansi conversion of *str*, including the terminating **' '**.

## PARAMS

*str* **\[In\]**  String to calculate the size of.

## RETURNS

The calculated size.

## IMPLEMENTATION

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

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

Debug channel **"ntdll"**.
