RtlUnicodeStringToAnsiString (NTDLL.@)
NTSTATUS RtlUnicodeStringToAnsiString ( STRING* ansi, const UNICODE_STRING* uni, BOOLEAN doalloc )
ansi | [In/Out] | Destination for the ansi string. |
uni | [In] | Unicode string to be converted. |
doalloc | [In] | TRUE=Allocate new buffer for ansi,FALSE=Use existing buffer. |
Converts a unicode string to an ansi string.
Success: STATUS_SUCCESS. ansi contains the converted string
Failure: STATUS_BUFFER_OVERFLOW, if doalloc is FALSE and ansi is too small. STATUS_NO_MEMORY, if doalloc is TRUE and the allocation fails.
This function always writes a terminating '\0'. It performs a partial copy if ansi is too small.
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 Apr 2024.