LoadResource
Load a resource for use
Declaration
Source position: resh.inc line 72
function LoadResource(ModuleHandle: TFPResourceHMODULE;
ResHandle: TFPResourceHandle) : TFPResourceHGLOBAL;
Description
LoadResource loads a resource identified by ResHandle from a module identified by ModuleHandleinto memory. It returns a handle to the resource.
Loaded resources must be unloaded again using the FreeResource function.
Errors
On error, 0 is returned.
See also
Name | Description |
---|---|
FindResource | Locate a resource and return a handle to it. |
FreeResource | Free a loaded resource |
FreeResource | Free a loaded resource |
LockResource | Lock a resource |
SizeofResource | Return the size of a particular resource |
UnlockResource | Unlock a previously locked resource |