#ifndef _NTLDR_H
#if (PHNT_MODE != PHNT_MODE_KERNEL)
#if (PHNT_VERSION >= PHNT_WINDOWS_8)
// rev
/**
* The LdrpResGetResourceDirectory function returns the resource directory for a DLL.
*
* \param DllHandle A handle to the DLL.
* \param Size The size of the image mapping.
* \param Flags Flags for the resource search.
* \param ResourceDirectory An optional pointer to receive the resource directory.
* \param OutHeaders The NT headers of the image.
* \return NTSTATUS Successful or errant status.
*/
NTSYSAPI
NTSTATUS
NTAPI
LdrpResGetResourceDirectory(
_In_ PVOID DllHandle,
_In_ SIZE_T Size,
_In_ ULONG Flags,
_Out_opt_ PIMAGE_RESOURCE_DIRECTORY* ResourceDirectory,
_Out_ PIMAGE_NT_HEADERS* OutHeaders
);
View code on GitHubNo description available.