CONN_LOGICAL_LOCK

Returns a connection’s logical locks

Service:Synchronization
Defined In:nwsync.h

Structure

  typedef struct 
  { 
     nuint16   taskNumber; 
     nuint8    lockStatus; 
     nstr8     logicalName[128]; 
  } CONN_LOGICAL_LOCK;
  

Delphi Structure

  uses calwin32 
   
  CONN_LOGICAL_LOCK = packed Record 
      taskNumber : nuint16;  
      lockStatus : nuint8;  
      logicalName : Array[0..127] Of nstr8;
    End;
  

Fields

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
logicalName
Specifies the name of the logical lock.