#ifndef _NTLDR_H
#if (PHNT_MODE != PHNT_MODE_KERNEL)
/**
* The LdrFastFailInLoaderCallout routine forcefully terminates the calling program if it is invoked inside a loader callout. Otherwise, it has no effect.
*
* \remarks This routine does not catch all potential deadlock cases; it is possible for a thread inside a loader callout
* to acquire a lock while some thread outside a loader callout holds the same lock and makes a call into the loader.
* In other words, there can be a lock order inversion between the loader lock and a client lock.
* https://learn.microsoft.com/en-us/windows/win32/devnotes/ldrfastfailinloadercallout
*/
NTSYSAPI
VOID
NTAPI
LdrFastFailInLoaderCallout(
VOID
);
View code on GitHubVOID NTAPI LdrFastFailInLoaderCallout(void);
View the official Win32 development documentationNo description available.
[Some information relates to pre-released product which may be substantially modified before it's commercially released. Microsoft makes no warranties, express or implied, with respect to the information provided here.]
This function forcefully terminates the calling program if it is invoked inside a loader callout. Otherwise, it has no effect.
This function has no parameters.
This function does not return a value.
This routine does not catch all potential deadlock cases; it is possible for a thread inside a loader callout to acquire a lock while some thread outside a loader callout holds the same lock and makes a call into the loader. In other words, there can be a lock order inversion between the loader lock and a client lock.
| Requirement | Value |
|---|---|
| Library |
NTDll.lib |
| DLL |
NTDll.dll |