RtlAnsiStringToUnicodeString (NTDLL.@)
NTSTATUS RtlAnsiStringToUnicodeString ( PUNICODE_STRING uni, PCANSI_STRING ansi, BOOLEAN doalloc )
uni | [In/Out] | Destination for the unicode string. |
ansi | [In] | Ansi string to be converted. |
doalloc | [In] | TRUE=Allocate new buffer for uni,FALSE=Use existing buffer. |
Converts an ansi string to a unicode string.
Success: STATUS_SUCCESS. uni 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. STATUS_INVALID_PARAMETER_2, if the unicode string would be larger than 65535.
This function always writes a terminating '\0'.
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.