RtlUnicodeStringToOemString.3w

Langue: en

Version: Jun 2009 (debian - 07/07/09)

Section: 3 (Bibliothèques de fonctions)

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

Defined in "winternl.h".

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

Debug channel "ntdll".