help files
Z505 | PasWiki | FUQ | Search | Main Docs | API Guide



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

FindResource

Locate a resource and return a handle to it.

Declaration

Source position: line 0

function FindResource(

  ModuleHandle: HMODULE;

  ResourceName: PChar;

  ResourceType: PChar

):TResourceHandle;

function FindResource(

  ModuleHandle: HMODULE;

  ResourceName: AnsiString;

  ResourceType: AnsiString

):TResourceHandle;

Description

FindResource searches for a resource with name ResourceName and of type ResourceType in the executable or library identified by ModuleHandle. It returns a TResourceHandle which can be used to load the resource with LoadResource.

Errors

None. In case the resource was not found, 0 is returned.

See also

FreeResource

  

Free a loaded resource

LoadResource

  

Load a resource for use

SizeofResource

  

Return the size of a particular resource

LockResource

  

Lock a resource

UnlockResource

  

Unlock a previously locked resource

FreeResource

  

Free a loaded resource

Notes

 No notes exist for this page yet. 





lufdoc, Powtils, fpc, freepascal, delphi, kylix, c/c++, mysql, cgi web framework docs, Z505