#ifndef _NTLDR_H
#if (PHNT_MODE != PHNT_MODE_KERNEL)
#if (PHNT_VERSION >= PHNT_WINDOWS_8)
// rev
/**
* The LdrResFallbackLangList routine builds the ordered list of languages the MUI resource loader tries for a module:
* the requested language, its parent, the preferred UI languages, the module's ultimate fallback language,
* then (with LDR_RES_SEARCH_RESULT_NO_RC_CONFIG) the thread locale, the user and system default locales and en-US (0x409).
* Used by LdrpResSearchResourceMappedFile before probing alternate (.mui) modules; not exported.
*
* \param DllHandle The module whose MUI RC config supplies the ultimate fallback language (may be NULL to skip that step).
* \param MappingSize The size of the DllHandle mapping, forwarded to RtlpResUltimateFallbackInfo.
* \param LangId The requested language ID (0 = neutral; no parent step).
* \param Flags LDR_RES_SEARCH_SKIP_MUI (0x4) stops after the requested language; LDR_RES_SEARCH_RESULT_NO_RC_CONFIG (0x80000)
* adds the thread/default locales; LDR_LOAD_ALT_RESOURCE_LIC_FILTER (0x100000) drops LIC-restricted languages.
* \param FallbackList Receives the fallback list.
* \return NTSTATUS Successful or errant status (STATUS_INVALID_PARAMETER if FallbackList is NULL).
*/
NTSYSAPI
NTSTATUS
NTAPI
LdrResFallbackLangList(
_In_opt_ PVOID DllHandle,
_In_opt_ SIZE_T MappingSize,
_In_ LANGID LangId,
_In_ ULONG Flags,
_Out_ PLDR_FALLBACK_LANG_LIST FallbackList
);
View code on GitHubNo description available.