NWClearLogicalRecord

Unlocks a logical record and removes 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) NWClearLogicalRecord ( 
     NWCONN_HANDLE       conn,  
     const nstr8 N_FAR  *logRecName);
  

Delphi Syntax

  uses calwin32 
   
  Function NWClearLogicalRecord 
    (conn : NWCONN_HANDLE; 
     const logRecName : pnstr8 
  ) : NWCCODE;
  

Parameters

conn
(IN) Specifies the NetWare server connection handle containing the logical record.
logRecName
(IN) Points to the name of the logical record being cleared (128 characters).

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

0x89FF

LOCK_ERROR

Remarks

A logical record is simply a name (a string) registered with the NetWare server. The name (as with a semaphore) can then be locked or unlocked by applications and can be used as an inter-application locking mechanism.

NOTE:Locking or unlocking a logical record does not physically lock or unlock those resources associated with the logical record; only the applications using the record know about such an association.

Applications define logical record names. A logical record name represents a group of files, physical records, structures, etc. NWLogLogicalRecord or NWLockLogicalRecordSet lock one or more logical record names, not the actual files, physical records, or structures associated with each logical record name. Any uncooperative application can ignore a lock on the logical record name and directly lock physical files or records. Therefore, applications using logical record locks must not use other locking techniques simultaneously.

NCP Calls

See Also

NWClearLogicalRecordSet, NWLockLogicalRecordSet, NWLogLogicalRecord, NWReleaseLogicalRecord, NWReleaseLogicalRecordSet