RtlOemStringToCountedUnicodeSize
TOC
Collapse the table of content
Expand the table of content

RtlOemStringToCountedUnicodeSize routine

The RtlOemStringToCountedUnicodeSize routine determines the size, in bytes, that a given OEM string will be after it is translated into a counted Unicode string.

Syntax


ULONG RtlOemStringToCountedUnicodeSize(
  _In_ POEM_STRING OemString
);

Parameters

OemString [in]

Pointer to a caller-allocated OEM string.

Return value

RtlOemStringToCountedUnicodeSize returns the number of bytes that are required to contain a given OEM string when it has been translated into a counted Unicode string.

Remarks

RtlOemStringToCountedUnicodeSize can be called to determine how much memory to allocate when translating an OEM string to Unicode with RtlOemStringToCountedUnicodeString. The returned value does not include space for a NULL terminator for the Unicode string.

For information about other string-handling routines, see Strings.

Requirements

Target platform

Header

Ntifs.h (include Ntifs.h)

IRQL

< DISPATCH_LEVEL

See also

OEM_STRING
RtlOemStringToCountedUnicodeString
RtlOemStringToUnicodeSize

 

 

Send comments about this topic to Microsoft

Show:
© 2016 Microsoft