INT 21 - Novell NetWare - FILE SERVER - GET CONNECTIONS USING A FILE
AH = E3h subfn DCh
DS:SI -> request buffer (see below)
ES:DI -> reply buffer (see below)
Return: AL = status
00h successful
C6h no console rights
Notes:  this function is supported by Advanced NetWare 2.1+
the calling workstation must have console operator privileges
SeeAlso: AH=E3h/SF=DAh,AH=E3h/SF=DBh,AH=E3h/SF=DFh,AH=E3h/SF=E1h

Format of request buffer:
Offset  Size    Description
00h    WORD    length of following data (max 104h)
02h    BYTE    DCh (subfunction "Get Connections Using a File")
03h    WORD    last record (big-endian)
0000h on first call
05h    BYTE    directory handle
06h    BYTE    length of file path
07h  N BYTEs   ASCIZ file path

Format of reply buffer:
Offset  Size    Description
00h    WORD    (call) size of following results record (max 1FEh)
02h    WORD    count of tasks which have opened or logged file (big-endian)
04h    WORD    count of tasks which have opened file (big-endian)
06h    WORD    count of opens for reading (big-endian)
08h    WORD    count of opens for writing (big-endian)
0Ah    WORD    deny read count (big-endian)
0Ch    WORD    deny write count (big-endian)
0Eh    WORD    next request record (place in "last record" field on next call)
0000h if no more records
10h    BYTE    locked flag
00h not locked exclusively
else locked exclusively
11h    BYTE    number of records following
12h    File Usage Information Records [array]
Offset  Size    Description
00h    WORD    logical connection number (big-endian)
02h    BYTE    task number
03h    BYTE    lock flags (see AH=E3h/SF=DBh)
04h    BYTE    access flags (see AH=E3h/SF=DBh)
05h    BYTE    lock type
00h no lock
FEh file lock
FFh locked by Begin Share File Set

See also: 21E3

21E3 - Novell NetWare - FILE SERVER - GET CONNECTIONS USING A FILE