|
![]() |
![]() |
version 2003
PA_GetIndexedResource (resfile; kind; index; data) → long
Parameter | Type | Description | |
resfile | short | → | File reference number of the file to access |
kind | unsigned long | → | Kind (4 Bytes type) of the resource access by index |
index | short | → | xTh resource of type kind |
data | char* | ← | Resource data |
Function result | long | ← | Size of the received data in bytes |
Description
The routine
PA_GetIndexedResource
reads the
index
Th resource of type
kind
in the file
resFile
, fills the data pointed to by
resData
with the content of the resource, and returns its size in bytes.
Pass the file reference number of the file that holds the resource in
resFile
.
Pass in
kind
the 4-Bytes type code of the resource (such as 'PICT' or 'TEXT').
index
is a positive value in the range 1 to
PA_CountResources
. Note that the order is kept by the Internal Resource Manager and is arbitrary - it is not the order of creation of the resources.