PA_UnlockResource


version 2003


PA_UnlockResource (resfile; kind; id)

Parameter Type Description
resfile short File reference number of the file to access
kind unsigned long Kind (4 Bytes type) of resource to access
id short Unique resource ID

Description

The routine PA_UnlockResource unlocks the resource of type kind and the ID resID of the file resFile (previously locked by a succesful call to PA_LockResource) .

The resource does nothing if it was not locked by the plug-in. If the plug-in did in fact lock the resource over the network through a succesful call to PA_LockResource , the routine unlocks it so that other clients can access it.

Always unlock a resource when you have finished working with it.

Example

See PA_LockResource .

See Also

About the internal resource manager , PA_GetResource , PA_LockResource .

Error Handling

Use PA_GetLastError to see if an error occurred