FreeResource

Free a loaded resource

Declaration

Source position: resh.inc line 76

  function FreeResource(ResData: TFPResourceHGLOBAL) : LongBool;

Description

FreeResource unloads the resource identified by ResData from memory. The resource must have been loaded by LoadResource . It returns True if the operation was successful, False otherwise.

Errors

On error, False is returned.

See also

Name Description
FindResource Locate a resource and return a handle to it.
FreeResource Free a loaded resource
LoadResource Load a resource for use
LockResource Lock a resource
SizeofResource Return the size of a particular resource
UnlockResource Unlock a previously locked resource