CONN_PHYSICAL_LOCK

Returns a connection’s physical locks

Service:Synchronization
Defined In:nwsync.h

Structure

  typedef struct 
  { 
     nuint16   taskNumber; 
     nuint8    lockType; 
     nuint32   recordStart; 
     nuint32   recordEnd; 
  } CONN_PHYSICAL_LOCK;
  

Delphi Structure

  uses calwin32 
   
  CONN_PHYSICAL_LOCK = packed Record 
      taskNumber : nuint16;  
      lockType : nuint8;  
      recordStart : nuint32;  
      recordEnd : nuint32; 
    End;
  

Fields

taskNumber
Specifies the number of the task using the file.
lockType
Specifies if the file is locked with the following bits being set:
  • none Not locked
  • Bit 0 Locked exclusive
  • Bit 1 Locked shareable
  • Bit 2 Logged
  • Bit 6 Lock held by TTS
recordStart
Specifies the byte offset of where the record begins in the file.
recordEnd
Specifies the byte offset of where the record ends in the file.