Sign in Join
FPDoc Onlineexperiment

LoadResource function

In unit System

Load a resource for use.

Declaration

pascal
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

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.