version 2003
PA_GetUniqueResID (resFile; kind) short
Parameter | Type | Description | |
resFile | short | File reference number of the file to access | |
kind | unsigned long | Kind (4 Bytes type) of resource | |
Function result | short | Unique ID number |
Description
The routine PA_GetUniqueResID returns an unique ID number for a resource of type kind in the file referenced by resFile.
Please note that if kind is not an existing resource type in the file or if resFile is an invalid reference number, the routines still return an unique number for that kind and PA_GetLastError() returns 0.
Example
PA_CreateResource(resFile, 'toto', PA_GetUniqueResID(resFile, 'toto'), data, size);
See Also
No reference.
Error Handling
Use PA_GetLastError to see if an error occurred