RtlOemStringToUnicodeSize macro (ntifs.h)

The RtlOemStringToUnicodeSize routine determines the size, in bytes, that a given OEM string will be after it is translated into a null-terminated Unicode string.

Syntax

void RtlOemStringToUnicodeSize(
   STRING
);

Parameters

STRING

Pointer to a caller-allocated OEM string.

Return value

None

Remarks

RtlOemStringToUnicodeSize can be called to determine how much memory to allocate when translating an OEM string to Unicode with RtlOemStringToUnicodeString. The returned value includes space for the NULL terminator.

For information about other string-handling routines, see Run-Time Library (RTL) Routines.

Requirements

Requirement Value
Target Platform Universal
Header ntifs.h (include FltKernel.h, Ntifs.h)
Library NtosKrnl.lib
DLL NtosKrnl.exe
IRQL < DISPATCH_LEVEL

See also

OEM_STRING

RtlOemStringToCountedUnicodeSize

RtlOemStringToUnicodeString