[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] |
Resource manager definition
Source position: resh.inc line 90
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 |
||
FindResourceExFunc: function( |
|
Handler for FindResourceEx |
ModuleHandle: TFPResourceHMODULE; |
||
ResourceType: PChar; |
||
ResourceName: PChar; |
||
Language: Word |
||
LoadResourceFunc: function( |
|
Handler for LoadResource |
ModuleHandle: TFPResourceHMODULE; |
||
ResHandle: TFPResourceHandle |
||
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; |
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.
|
Return the currently active resource manager |
|
|
Set the resource manager |