CONNS_USING_FILE

Returns a list of connections having a specified file open

Service:File System
Defined In:nwfile.h

Structure

   typedef struct { 
      nuint16           nextRequest ; 
      nuint16           useCount ; 
      nuint16           openCount ; 
      nuint16           openForReadCount ; 
      nuint16           openForWriteCount ; 
      nuint16           denyReadCount ; 
      nuint16           denyWriteCount ; 
      nuint8            locked ; 
      nuint8            forkCount ; 
      nuint16           connCount ; 
      CONN_USING_FILE   connInfo [70]; 
   } CONNS_USING_FILE;
   

Delphi Structure

   uses calwin32 
    
   CONNS_USING_FILE = Record 
       nextRequest : nuint16; 
       useCount : nuint16; 
       openCount : nuint16; 
       openForReadCount : nuint16; 
       openForWriteCount : nuint16; 
       denyReadCount : nuint16; 
       denyWriteCount : nuint16; 
       locked : nuint8; 
       forkCount : nuint8; 
       connCount : nuint16; 
       connInfo : Array[0..69] Of CONN_USING_FILE 
     End;
   

Fields

nextRequest

Specifies the sequence in subsequent calls to the NWScanConnectionsUsingFile function.

useCount

Specifies the number of tasks having the file opened or logged.

openCount

Specifies the number of tasks having opened or logged the file.

openForReadCount

Specifies the number of logical connections having the file open for reading.

openForWriteCount

Specifies the number of logical connections having the file open for writing.

denyReadCount

Specifies the number of logical connections having denied other connections access to the file.

denyWriteCount

Specifies the number of logical connections having denied other connections read access to the file.

locked

Specifies whether the file is locked exclusively (0=not locked exclusively).

forkCount

Specifies the number of forks associated with the file.

connCount

Specifies the number of connections using the file.

connInfo

Specifies an array of CONN_USING_FILE structures specifying how each connection is using the file.