KsLoadResource function

Copies (loads) a resource from the given image.

Syntax


NTSTATUS KsLoadResource(
  _In_      PVOID     ImageBase,
  _In_      POOL_TYPE PoolType,
  _In_      ULONG_PTR ResourceName,
  _In_      ULONG     ResourceType,
  _Out_     PVOID     *Resource,
  _Out_opt_ PULONG    ResourceSize
);

Parameters

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.

Return value

STATUS_SUCCESS if successful, STATUS_INSUFFICIENT_RESOURCES if memory cannot be allocated, otherwise an appropriate error code.

Requirements

Target platform

Universal

Header

Ks.h (include Ks.h)

Library

Ks.lib

 

 

Send comments about this topic to Microsoft

Show: