Scroll to navigation

RtlUnicodeStringToOemString(3w) Wine API 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".
Oct 2012 Wine API