RtlFreeOemString - NtDoc

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

NTSYSAPI
VOID
NTAPI
RtlFreeOemString(
    _Inout_ POEM_STRING OemString
    );

#endif

View code on GitHub
// ntifs.h

NTSYSAPI VOID RtlFreeOemString(
  [in, out] POEM_STRING OemString
);
View the official Windows Driver Kit DDI reference
// winternl.h

VOID RtlFreeOemString(
  [in, out] POEM_STRING OemString
);
View the official Win32 API reference

NtDoc

This function is documented in Windows Driver Kit.

Windows Driver Kit DDI reference (nf-ntifs-rtlfreeoemstring)

RtlFreeOemString function

Description

The RtlFreeOemString routine releases storage that was allocated by any of the Rtl..ToOemString routines.

Parameters

OemString [in, out]

Pointer to the OEM string buffer that was allocated by a preceding call to RtlUnicodeStringToCountedOemString, RtlUnicodeStringToOemString, RtlUpcaseUnicodeStringToCountedOemString, or RtlUpcaseUnicodeStringToOemString.

Return value

None

Remarks

RtlFreeOemString deallocates memory only for the buffered OEM string. This routine does not free the buffered Unicode string passed in a preceding call to the Rtl..ToOemString routine.

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

See also

OEM_STRING

RtlUnicodeStringToCountedOemString

RtlUnicodeStringToOemString

RtlUpcaseUnicodeStringToCountedOemString

RtlUpcaseUnicodeStringToOemString


Win32 API reference (nf-winternl-rtlfreeoemstring)

RtlFreeOemString function

Description

Frees the string buffer allocated by RtlUnicodeStringToOemString.

Parameters

OemString [in, out]

Address of the OEM string whose buffer was previously allocated by RtlUnicodeStringToOemString.

Remarks

This routine releases the Buffer member of the OEM_STRING structure. The Length and MaximumLength members are not affected by this routine.