LOGICAL_LOCK

Defines logical lock information

Service:Synchronization
Defined In:nwsync.h

Structure

  typedef struct 
  { 
     NWCONN_NUM   connNumber; 
     nuint16      taskNumber; 
     nuint8       lockStatus; 
  } LOGICAL_LOCK;
  

Delphi Structure

  uses calwin32 
   
    LOGICAL_LOCK = packed Record 
      connNumber : nuint16;  
      taskNumber : nuint16;  
      lockStatus : nuint8; 
    End;
  

Fields

connNumber
Specifies the logical connection that is using the logical record.
taskNumber
Specifies the task number of the workstation that has the file open.
lockStatus
Specifies a bit mask describing how the file is locked:
  • 0x01 Locked
  • 0x02 Open shareable
  • 0x04 Logged
  • 0x08 Open Normal
  • 0x40 TTS holding
  • 0x80 Transaction flag set