// ks.h
KSDDKAPI NTSTATUS KsLoadResource(
[in] PVOID ImageBase,
[in] POOL_TYPE PoolType,
[in] ULONG_PTR ResourceName,
[in] ULONG ResourceType,
[out] PVOID *Resource,
[out, optional] PULONG ResourceSize
);
View the official Windows Driver Kit DDI referenceNo description available.
Copies (loads) a resource from the given image.
ImageBase [in]Pointer to the image base
PoolType [in]Pool type to use when copying resource
ResourceName [in]Resource name.
ResourceType [in]Resource type
Resource [out]Pointer to resultant resource memory.
ResourceSize [out, optional]Pointer to ULONG value to receive the size of the resource.
STATUS_SUCCESS if successful, STATUS_INSUFFICIENT_RESOURCES if memory cannot be allocated, otherwise an appropriate error code.