RtlUnicodeStringToOemString(3w)

RtlUnicodeStringToOemString3w

Usage

NTSTATUS RtlUnicodeStringToOemString
(
STRING* oem,
const UNICODE_STRING* uni,
BOOLEAN doalloc
)

Overview

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".

Releases

4 releases since Debian 4.0 (Etch); the text changed 3 times.

  1. 4.0
  2. 5.0
  3. 6.0
  4. 7

From libwine-dev 1.4.1-4 in Debian 7 (Wheezy). Parsed by carta from the page's man source.