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

# RtlOemStringToUnicodeString(3w)

## NAME

**RtlOemStringToUnicodeString** (NTDLL.@)

## SYNOPSIS

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

## PARAMS

*uni* **\[In/Out\]**  Destination for the unicode string.

*oem* **\[In\]**  Oem string to be converted.

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

## DESCRIPTION

Converts an *oem* string to a unicode string.

## RETURNS

**Success:** **STATUS\_SUCCESS**. *uni* 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 the allocation fails. **STATUS\_INVALID\_PARAMETER\_2**, if the unicode string would be larger than **65535.**

## NOTES

This function always writes a terminating **' '**.

## IMPLEMENTATION

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

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

Debug channel **"ntdll"**.
