LdrAccessResource - NtDoc

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

//
// Resources
//

/**
 * 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
    );

#endif
#endif

View code on GitHub

No description available.