NWReleaseFileLockSet

Unlocks all files logged in the log table but does not remove them from the 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 )NWReleaseFileLockSet  ( 
     void);
  

Delphi Syntax

  uses calwin32 
   
  Function NWReleaseFileLockSet 
    : NWCCODE;
  

Return Values

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

0x0000

SUCCESSFUL

Remarks

To avoid deadlock, a workstation must request those files it needs to lock; it does so by making an entry into the File Log Table at the NetWare server. Once the log table is complete, the application can then lock those files. The locking works only if all files in the table are available.

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

NCP Calls

See Also

NWClearFileLock2, NWClearFileLockSet, NWLogFileLock2, NWReleaseFileLock2