#ifndef _NTRTL_H
#if (PHNT_VERSION >= PHNT_20H1)
NTSYSAPI
VOID
NTAPI
RtlFreeUTF8String(
_Inout_ _At_(Utf8String->Buffer, _Frees_ptr_opt_) PUTF8_STRING Utf8String
);
View code on GitHub
/*
* RTL forward symbol typedefs
*
* This file is part of System Informer.
*/
#ifndef _NTRTL_FWD_H
// Note: ntdll symbols and exports define these forwarders:
// begin_forwarders
#ifndef PHNT_INLINE_FREE_FORWARDERS
//#define RtlFreeUTF8String(Utf8String) {if ((Utf8String)->Buffer) RtlFreeHeap(RtlProcessHeap(), 0, (Utf8String)->Buffer); memset(Utf8String, 0, sizeof(UTF8_STRING));}
FORCEINLINE
VOID
NTAPI
RtlFreeUTF8String(
_Inout_ _At_(Utf8String->Buffer, _Frees_ptr_opt_) PUTF8_STRING Utf8String
)
{
if (Utf8String->Buffer)
{
RtlFreeHeap(RtlProcessHeap(), 0, Utf8String->Buffer);
memset(Utf8String, 0, sizeof(UTF8_STRING));
}
}
View code on GitHub
This function is documented in Windows Driver Kit.