NWReleaseFileLock2

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

Local Servers:blocking
Remote Servers:blocking
NetWare Server:3.11, 3.12, 3.2, 4.x, 5.x, 6.x
Platform:NLM, Windows NT, Windows 95, Windows 98
Library:Cross-Platform NetWare Calls (CAL*.*)
Service:Synchronization

Syntax

  #include <nwfile.h> 
  or 
  #include <nwcalls.h> 
   
  N_EXTERN_LIBRARY(NWCCODE) NWReleaseFileLock2 ( 
     NWCONN_HANDLE       conn,  
     NWDIR_HANDLE        dirHandle,  
     const nstr8 N_FAR  *path);
  

Delphi Syntax

  uses calwin32 
   
  Function NWReleaseFileLock2 
    (conn : NWCONN_HANDLE; 
     dirHandle : NWDIR_HANDLE; 
     path : pnstr8 
  ) : NWCCODE;
  

Parameters

conn
(IN) Specifies the NetWare server connection handle.
dirHandle
(IN) Specifies the directory handle of the new directory’s root directory.
path
(IN) Points to the string containing the name and path of the new directory.

Return Values

These are common return values; see Return Values (NDK: Connection, Message, and NCP Extensions) for more information.

0x0000

SUCCESSFUL

0x8801

INVALID_CONNECTION

0x890A

NLM_INVALID_CONNECTION

0x8998

VOLUME_DOES_NOT_EXIST

0x899B

BAD_DIRECTORY_HANDLE

0x899C

INVALID_PATH

Remarks

path can specify either a file’s complete path name or a path relative to the current working directory. For example, if a file’s complete path name is SYS:ACCOUNT/DOMEST/TARGET.DAT and the directory handle mapping is SYS:ACCOUNT, path could be either of the following:

  SYS:ACCOUNT/DOMEST/TARGET.DAT or 
  DOMEST/TARGET.DAT
  

NWReleaseFileLock2 is ignored if the requesting workstation does not have locked files.

NCP Calls

See Also

NWClearFileLock2, NWClearFileLockSet, NWLogFileLock2, NWReleaseFileLockSet