LOGICAL_LOCKS

Returns a list of logical locks

Service:Synchronization
Defined In:nwsync.h

Structure

  typedef struct 
  { 
     nuint16        useCount; 
     nuint16        shareableLockCount; 
     nuint8         locked; 
     nuint16        nextRequest; 
     nuint16        numRecords; 
     LOGICAL_LOCK   logicalLock[128]; 
     nuint16        curRecord; 
  } LOGICAL_LOCKS;
  

Delphi Structure

  uses calwin32 
   
   LOGICAL_LOCKS = packed Record 
      useCount : nuint16;  
      shareableLockCount : nuint16;  
      locked : nuint8;  
      nextRequest : nuint16;  
      numRecords : nuint16;  
      logicalLock : Array[0..127] Of LOGICAL_LOCK;  
      curRecord : nuint16 
    End;
  

Fields

useCount
Specifies the number of logical connections that have logged the logical record.
shareableLockCount
Specifies the number of logical connections that have a shareable lock on the logical record.
locked
Specifies whether the logical record is exclusively locked:
  • 0 Not exclusively locked
  • 1 Exclusively locked
nextRequest
Is used internally by NWScanLogicalLocksByName to retrieve the next request.
numRecords
Specifies the number of LOGICAL_LOCK structures.
logicalLock
Specifies a buffer containing the LOGICAL_LOCK structure.
curRecord
Is for internal use only.

Remarks

You must not modify the values in nextRequest and curRecord; they are used internally to return the next record in a request.