Project: Resource File Unit
Unit: PJResFile.
Class: TPJResourceFile
Applies to: ~>1.0
function FindEntryIndex(const ResType, ResName: Pchar;
const LangID: Word = $FFFF): Integer;
Finds the index in the Entries property of a resource entry with the given type, name and language id. The search can ignore the resource name or language id in which case first entry that matches the provided information is accepted.
Parameters:
- ResType: The type of the resource to be found as either an ordinal or string type.
- ResName: The name of the resource to be found as either an ordinal or string type. If just the first resource of the given type is required then
nil
can be specified here. - LangID: The language id of the required resource. If only the first matching resource for the given type and name is required this parameter can be left out (or
$FFFF
supplied). To find a language neutral resource specify0
here.
Returns:
The index of the found resource in the Entries property or -1
if no resource was found.