RtlOemStringToUnicodeString.3w

Langue: en

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

Section: 3 (Bibliothèques de fonctions)

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 an 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

Defined in "winternl.h".

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

Debug channel "ntdll".