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 '\0' terminates the string returned.

IMPLEMENTATION

Declared in "include/winternl.h". gitlab.winehq.org/wine/wine/blob/master/include/winternl.h

Implemented in "dlls/ntdll/rtlstr.c". gitlab.winehq.org/wine/wine/blob/master/dlls/ntdll/rtlstr.c

Debug channel "ntdll".


Copyright © 2024 The Wine Project. All trademarks are the property of their respective owners. Visit WineHQ for license details. Generated Nov 2024.