RtlIsCurrentThreadAttachExempt - NtDoc

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

// rev
NTSYSAPI
BOOLEAN
NTAPI
RtlIsCurrentThreadAttachExempt(
    VOID
    );

#endif
#endif

View code on GitHub

Determines whether the current thread is supposed to skip calling DllMain with DLL_THREAD_ATTACH reason on loaded modules.

Implementation details

The function checks for SkipThreadAttach and RanProcessInit flags in TEB.

Related Win32 API

This functionality is not exposed in Win32 API.

See also