[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] Reference for unit 'System' (#rtl)

TResourceManager

Resource manager definition

Declaration

Source position: resh.inc line 84

type TResourceManager = record

  HINSTANCEFunc: function: TFPResourceHMODULE;

  

Return the programs instance handle.

  EnumResourceTypesFunc: function(

  

Handler for EnumResourceTypes.

  ModuleHandle: TFPResourceHMODULE;

  EnumFunc: EnumResTypeProc;

  lParam: PtrInt

):LongBool;

  EnumResourceNamesFunc: function(

  

Handler for EnumResourceNames.

  ModuleHandle: TFPResourceHMODULE;

  ResourceType: PChar;

  EnumFunc: EnumResNameProc;

  lParam: PtrInt

):LongBool;

  EnumResourceLanguagesFunc: function(

  

Handler for EnumResourceLanguages.

  ModuleHandle: TFPResourceHMODULE;

  ResourceType: PChar;

  ResourceName: PChar;

  EnumFunc: EnumResLangProc;

  lParam: PtrInt

):LongBool;

  FindResourceFunc: function(

  

Handler for FindResource

  ModuleHandle: TFPResourceHMODULE;

  ResourceName: PChar;

  ResourceType: PChar

):TFPResourceHandle;

  FindResourceExFunc: function(

  

Handler for FindResourceEx

  ModuleHandle: TFPResourceHMODULE;

  ResourceType: PChar;

  ResourceName: PChar;

  Language: Word

):TFPResourceHandle;

  LoadResourceFunc: function(

  

Handler for LoadResource

  ModuleHandle: TFPResourceHMODULE;

  ResHandle: TFPResourceHandle

):TFPResourceHGLOBAL;

  SizeofResourceFunc: function(

  

Handler for SizeOfResource

  ModuleHandle: TFPResourceHMODULE;

  ResHandle: TFPResourceHandle

):LongWord;

  LockResourceFunc: function(

  

Handler for LockResource

  ResData: TFPResourceHGLOBAL

):Pointer;

  UnlockResourceFunc: function(

  

Handler for UnLockResource

  ResData: TFPResourceHGLOBAL

):LongBool;

  FreeResourceFunc: function(

  

Handler for FreeResource

  ResData: TFPResourceHGLOBAL

):LongBool;

end;

Description

TResourceManager is the record describing the resource manager. Depending on the kind of resources (internal, external), another resource managing handler is installed by the system. The resource manager record is used by all resource handling functions to do the actual work: for each function in the API, a handler function is available. People wishing to implement their own resource manager, must implement all handler functions in their implementation.

As soon as resources are used, the compiler will install a resource manager, depending on the platform, this may be an internal or an external resource manager.

See also

GetResourceManager

  

Return the currently active resource manager

SetResourceManager

  

Set the resource manager


Documentation generated on: Jun 23 2021