HGLOBAL LoadResource(hinst, hrsrc) | |||||
HINSTANCE hinst; | /* handle of file containing resource | */ | |||
HRSRC hrsrc; | /* handle of resource, */ |
The LoadResource function loads the specified resource in global memory.
hinst
Identifies an instance of the module whose executable file contains the resource to be loaded.
hrsrc
Identifies the resource to be loaded. This handle must have been created by using the FindResource function.
The return value is the instance handle of the global memory object containing the data associated with the resource. It is NULL if no such resource exists.
When finished with a resource, an application should free the global memory associated with it by using the FreeResource function.
If the specified resource has been loaded, this function simply increments the reference count for the resource.
The resource is not loaded until the LockResource function is called to translate the handle returned by LoadResource into a far pointer to the resource data.