RtlUnicodeStringToOemString (NTDLL.@)
NTSTATUS RtlUnicodeStringToOemString ( STRING* oem, const UNICODE_STRING* uni, BOOLEAN doalloc )
Converts a Rtl Unicode string to an OEM string.
oem | [Out] | Destination for OEM string. |
uni | [In] | Source Unicode string. |
doalloc | [In] | TRUE=Allocate new buffer for oem,FALSE=Use existing buffer. |
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.
If doalloc is TRUE, the length allocated is uni->Length + 1. This function always '\0' terminates the string returned.
Declared in "winternl.h". https://source.winehq.org/source/include/winternl.h
Implemented in "dlls/ntdll/rtlstr.c". https://source.winehq.org/source/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 May 2024.