PHYSICAL_LOCK

Returns physical lock information

Service:Synchronization
Defined In:nwsync.h

Structure

  typedef struct 
  { 
     nuint16   loggedCount; 
     nuint16   shareableLockCount; 
     nuint32   recordStart; 
     nuint32   recordEnd; 
     nuint16   connNumber; 
     nuint16   taskNumber; 
     nuint8    lockType; 
  } PHYSICAL_LOCK;
  

Delphi Structure

  uses calwin32
  
  PHYSICAL_LOCK = packed Record
     {$IfDef N_ARCH_32} 
         loggedCount        : nuint16; 
     {$else} 
         loggedCount        : nuint8; 
     {$EndIf} 
         shareableLockCount : nuint16; 
         recordStart        : nuint32; 
         recordEnd          : nuint32; 
         connNumber         : nuint16; 
         taskNumber         : nuint16; 
         lockType           : nuint8; 
     {$IfDef N_ARCH_32} 
         filler             : nuint8; 
         filler2            : nuint16; 
     {$EndIf} 
       End;
  

Fields

loggedCount
Specifies the number of tasks having the record logged.
shareableLockCount
Specifies the number of tasks having the record locked shareable.
recordStart
Specifies the byte offset of where the record begins in the file.
recordEnd
Specifies the logical connection that has exclusively locked the record.
connNumber
Specifies the logical connection number for the connection that has the record exclusively locked.
taskNumber
Specifies the task number for the logical connection that has the record exclusively locked.
lockType
Specifies whether the record is locked:
  • 0x00 Not locked
  • 0xFE Locked by a file lock
  • 0xFF Locked by begin share file set