#ifndef _NTRTL_H
// begin_msdn:"Winternl"
#if (PHNT_VERSION >= PHNT_VISTA)
NTSYSAPI
PRTL_UNLOAD_EVENT_TRACE
NTAPI
RtlGetUnloadEventTraceEx(
_Out_ PULONG *ElementSize,
_Out_ PULONG *ElementCount,
_Out_ PVOID *EventTrace // works across all processes
);
View code on GitHub
This function is documented in Windows SDK.