Function 440Ah Is File or Device Remote DOS 3.1+
Determines whether the specified handle refers to a file or a
device that is local (on the computer running the program) or
remote (on a network server).
Entry AX = 440Ah
BX = Handle of file or device
Return DX bit 15 0 = local, 1 = remote
or
AX = Error code, if CF is set
| 01h Invalid function
| 06h Invalid handle
──────────────────────────────────────────────────────────────────
Other bits in DX contain additional information about the file or
device. In particular, bit 7 of DX specifies whether the handle
identifies a file or a device.
DX for disk file (bit 7 = 0)
Bit Description
0-5 Drive number (0 = A, 1 = B, etc.)
6 1 = File has not been written to
7 0 = Disk file
12 1 = No inherit
14 1 = Date/time not set at close
15 1 = Remote file, 0 = local file
DX for device (Bit 7 = 1)
Bit Description
0 1 = Console input device
1 1 = Console output device
2 1 = Null device
3 1 = Clock device
4 1 = Special device
5 1 = Binary mode, 0 = ASCII mode
6 0 = EOF returned if device is read
7 0 = Device
11 1 = Network spooler
12 1 = No inherit
13 1 = Named pipe
15 1 = Remote device, 0 = local device
All other bits are zero.