#ifndef _NTLDR_H
#if (PHNT_MODE != PHNT_MODE_KERNEL)
/**
* The LdrAccessResource function returns a pointer to the first byte of the specified resource in memory.
*
* \param DllHandle A handle to the DLL.
* \param ResourceDataEntry The resource information block.
* \param ResourceBuffer The pointer to the specified resource in memory.
* \param ResourceLength The size, in bytes, of the specified resource.
* \return NTSTATUS Successful or errant status.
* \sa https://learn.microsoft.com/en-us/windows/win32/api/libloaderapi/nf-libloaderapi-loadresource
*/
NTSYSAPI
NTSTATUS
NTAPI
LdrAccessResource(
_In_ PVOID DllHandle,
_In_ PIMAGE_RESOURCE_DATA_ENTRY ResourceDataEntry,
_Out_opt_ PVOID *ResourceBuffer,
_Out_opt_ ULONG *ResourceLength
);
View code on GitHub
No description available.