RtlUnicodeStringToInteger (NTDLL.@)
NTSTATUS RtlUnicodeStringToInteger ( const UNICODE_STRING* str, ULONG base, ULONG* value )
str | [In] | Unicode string to be converted. |
base | [In] | Number base for conversion (allowed 0,2,8,10 or 16). |
value | [Out] | Destination for the converted value. |
Converts a unicode string into its integer equivalent.
Success: STATUS_SUCCESS. value contains the converted number
Failure: STATUS_INVALID_PARAMETER, if base is not 0, 2, 8, 10 or 16. STATUS_ACCESS_VIOLATION, if value is NULL.
For base 0 it uses 10 as base and the string should be in the format "{whitespace} [+|-] [0[x|o|b]] {digits}". For other bases the string should be in the format "{whitespace} [+|-] {digits}". No check is made for value overflow, only the lower 32 bits are assigned. If str is NULL it crashes, as the native function does.
This function does not read garbage on string length 0 as the native version does.
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.