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

# RtlUnicodeStringToOemString(3w)

## NAME

**RtlUnicodeStringToOemString** (NTDLL.@)

## SYNOPSIS

NTSTATUS RtlUnicodeStringToOemString\
  (\
   STRING\*               *oem*,\
   const UNICODE\_STRING\* *uni*,\
   BOOLEAN               *doalloc*\
  )

## DESCRIPTION

Converts a Rtl Unicode string to an **OEM** string.

## PARAMS

*oem* **\[Out\]**  Destination for **OEM** string.

*uni* **\[In\]**  Source Unicode string.

*doalloc* **\[In\]**  **TRUE**=Allocate new buffer for *oem*,**FALSE**=Use existing buffer.

## RETURNS

**Success:** **STATUS\_SUCCESS**. *oem* contains the converted string

**Failure:** **STATUS\_BUFFER\_OVERFLOW**, if *doalloc* is **FALSE** and *oem* is too small. **STATUS\_NO\_MEMORY**, if *doalloc* is **TRUE** and allocation fails.

## NOTES

If *doalloc* is **TRUE**, the length allocated is *uni-\>Length* + **1.** This function always **' '** terminates the string returned.

## IMPLEMENTATION

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

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

Debug channel **"ntdll"**.
