RtlxUnicodeStringToAnsiSize - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// wdm.h

NTSYSAPI ULONG RtlxUnicodeStringToAnsiSize(
  [in] PCUNICODE_STRING UnicodeString
);
View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (nf-wdm-rtlxunicodestringtoansisize)

RtlxUnicodeStringToAnsiSize function

Description

The RtlxUnicodeStringToAnsiSize routine returns the number of bytes required for a null-terminated ANSI string that is equivalent to a specified Unicode string.

Parameters

UnicodeString [in]

Pointer to the Unicode string for which to compute the number of bytes required for an equivalent null-terminated ANSI string.

Return value

If the Unicode string can be translated into an ANSI string using the current system locale information, RtlxUnicodeStringToAnsiSize returns the number of bytes required for an equivalent null-terminated ANSI string. Otherwise, it returns zero.

Remarks

The Unicode string is interpreted for the current system locale.

See also

RtlUnicodeStringToAnsiSize