UnlockFile()

  UnlockFile

Description

UnlockFile() is used to release a previously set file lock on the specified file.

Call Signature

int UnlockFile ( int/string filespec )

Return Value

int

1 indicates the unlock succeeded, while 0 indicates it failed.

Argument

int/string filespec:

This can either be the handle returned by one of the file opening functions, or the name of such a file.

Remarks

On some systems it is possible to release a lock grabbed by another process.

It is up to the programmer to enforce proper pairing of LockFile() and UnlockFile().

See also

LockFile()

© PCI Geomatics Enterprises, Inc.®, 2026. All rights reserved.