RtlxAnsiStringToUnicodeSize - NtDoc

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

NTSYSAPI
ULONG
NTAPI
RtlxAnsiStringToUnicodeSize(
    _In_ PCANSI_STRING AnsiString
    );

#endif

View code on GitHub
// wdm.h

NTSYSAPI ULONG RtlxAnsiStringToUnicodeSize(
  [in] PCANSI_STRING AnsiString
);

View the official Windows Driver Kit DDI reference

NtDoc

No description available.

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

RtlxAnsiStringToUnicodeSize function

Description

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.

Parameters

AnsiString [in]

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 a 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.

See also

RtlAnsiStringToUnicodeSize