PA_UnlockResource

4D - Documentation   Français   English   German   4D Plugin API, Command Theme List   4D Plugin API, Command Alphabetical List   Back   Previous   Next

version 2003


PA_UnlockResource (resfile; kind; id)

ParameterTypeDescription
resfileshortFile reference number of the file to access
kindunsigned longKind (4 Bytes type) of resource to access
idshortUnique 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


4D - Documentation   Français   English   German   4D Plugin API, Command Theme List   4D Plugin API, Command Alphabetical List   Back   Previous   Next