ClearFile

Unlocks the specified file and removes it from the log 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 ClearFile (  
     char   *fileName); 
  

Parameters

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

Return Values

Decimal

Hex

Constant

Description

0

(0x00)

ESUCCESS

 

255

(0xFF)

ERR_DOS_FILE_NOT_FOUND

No logged file found with the specified filename.

Remarks

For cross-platform functionality, call NWClearFileLock2.

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

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

See Also

ClearFileSet, LockFileSet, LogFile, ReleaseFile, ReleaseFileSet