RtlGetUnloadEventTraceEx - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
#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
    );

#endif
// end_msdn
#endif

View code on GitHub

This function is documented in Windows SDK.