RtlxAnsiStringToUnicodeSize function (wdm.h)
The RtlxAnsiStringToUnicodeSize routine returns the number of bytes that are required for a null-terminated Unicode string that is equivalent to a specified ANSI string.
Syntax
NTSYSAPI ULONG RtlxAnsiStringToUnicodeSize(
[in] PCANSI_STRING AnsiString
);
Parameters
[in] AnsiString
Pointer to the ANSI string for which to compute the number of bytes that are required for an equivalent null-terminated Unicode string.
Return value
RtlxAnsiStringToUnicodeSize returns the number of bytes that are required for an equivalent null-terminated Unicode string, if the ANSI string can be translated into an Unicode string by using the current system locale information. Otherwise, this routine returns zero.
Remarks
The ANSI string is interpreted for the current system locale.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Available starting with Windows 2000. |
Target Platform | Universal |
Header | wdm.h (include Wdm.h) |
Library | NtosKrnl.lib |
DLL | NtosKrnl.exe |
IRQL | PASSIVE_LEVEL |
See also
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for