ReleaseFile

Unlocks the specified file in the log table but does not remove the file from the table

Local Servers:blocking
Remote Servers:blocking
Classification:3.x, 4.x, 5.x, 6.x
Service:Server-Based Synchronization

Syntax

  #include <\nlm\nit\nwsync.h>  
   
  int ReleaseFile (  
     char   *fileName); 
  

Parameters

fileName
(IN) Specifies the string containing filename with optional full path specification of the file to be unlocked (maximum 255 characters, including the NULL terminator).

Return Values

Decimal

Hex

Constant

0

(0x00)

ESUCCESS

255

(0xFF)

ERR_DOS_FILE_NOT_FOUND

Remarks

For cross-platform functionality, call NWReleaseFileLock2.

This function allows the application to release files without corrupting the integrity of the personal file table.

The fileName parameter can specify either a file’s complete pathname or a path relative to the current working directory (CWD).

SetCurrentNameSpace sets the name space that is used for parsing the path input to this function.

See Also

ClearFile, ClearFileSet, LockFileSet, LogFile, ReleaseFileSet