version 2003
PA_RemoveResourceByID (resFile; kind; resID)
Parameter | Type | Description | |
resFile | short | File reference number of the file to access | |
kind | unsigned long | Kind (4 Bytes type) of resource to access | |
resID | short | Unique resource ID |
Description
The routine PA_RemoveResourceByID removes the resource ID resID of type kind from the file referenced by resFile.
If the resource does not exist or if resFile is an invalid file reference number, the routine does nothing and sets PA_GetLastError to -3.
Example
Remove personal resource ID 12.
#define kMyResourceKind 'PERS' /* . . . */ PA_RemoveResourceByID(resFile, kMyResourceKind, 12);
See Also
Error Handling
Use PA_GetLastError to see if an error occurred