RtlUnicodeStringToAnsiSize - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
#ifndef _NTRTL_H

// rev
NTSYSAPI
ULONG
NTAPI
RtlUnicodeStringToAnsiSize(
    _In_ PCUNICODE_STRING SourceString
    );

#endif

View code on GitHub
// wdm.h

void RtlUnicodeStringToAnsiSize(
  [in] STRING
);
View the official Windows Driver Kit DDI reference

NtDoc

No description available.

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

Description

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

Parameters

STRING [in]

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

Remarks

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

The Unicode string is interpreted for the current system locale.

RtlUnicodeStringToAnsiSize performs the same operation as RtlxUnicodeStringToAnsiSize, but executes faster if the system does not use multibyte code pages.

See also

RtlxUnicodeStringToAnsiSize