LdrResGetRCConfig - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
#ifndef _NTLDR_H
#if (PHNT_MODE != PHNT_MODE_KERNEL)
#if (PHNT_VERSION >= PHNT_WINDOWS_8)

/**
 * The LdrResGetRCConfig function locates the MUI RC configuration resource (type L"MUI", name 1, neutral language)
 * of a module and returns a pointer to it inside the mapping. The loader uses it to decide whether a resource type is
 * served by the main module or by its .mui satellite and to find the ultimate fallback language.
 *
 * \param DllHandle A handle (image, or datafile with LDR_IS_DATAFILE) of the module.
 * \param MappingSize The mapping size of DllHandle; 0 = query it via LdrpResGetMappingSize (unless LDR_RES_SEARCH_LENIENT).
 * \param Config Optional; receives a pointer to the MUI_RC_CONFIG inside the mapping (not a copy; no buffer is written).
 * \param Flags LDR_RES_SEARCH_* flags; LDR_RES_SEARCH_LENIENT skips the MUI_RC_CONFIG structure validation.
 * \param UseCache TRUE to consult and update the loader's per-module MUI cache (LdrpGetFromMUIMemCache);
 * a cached negative entry returns STATUS_RESOURCE_TYPE_NOT_FOUND without searching.
 * \return NTSTATUS Successful or errant status (STATUS_RESOURCE_TYPE_NOT_FOUND if no config;
 * STATUS_INVALID_IMAGE_FORMAT / STATUS_MUI_INVALID_RC_CONFIG for a malformed config).
 */
NTSYSAPI
NTSTATUS
NTAPI
LdrResGetRCConfig(
    _In_ PVOID DllHandle,
    _In_opt_ SIZE_T MappingSize,
    _Out_opt_ PMUI_RC_CONFIG* Config,
    _In_ ULONG Flags,
    _In_ BOOLEAN UseCache
    );

#endif
#endif
#endif

View code on GitHub

NtDoc

No description available.