| |
INT 21 - DOS 3.x - IOCTL - HANDLE LOCAL
Input |
DOS1 |
N |
DOS2 |
N |
DOS3 |
Y |
DOS5 |
Y |
Output |
AX |
44h |
0Ah |
Error
Code |
AX |
BX |
|
|
|
|
BX |
CX |
|
|
|
|
CX |
DX |
|
|
Attribute
Word |
DX |
ES:DI |
|
Set
if Error |
CF |
Bit 15 of the Attribute Word indicates whether file is remote.
Note: If file is remote, Novell Advanced NetWare 2.0 returns the
number of the file server on which the handle is located in CX
If bit 7 is ZERO, the handle identifies a file, then:
File: |
Bit |
Dec |
Hex |
Description |
0 |
1 |
0001h |
Drive
Number (0=A, 1=B, etc). |
1 |
2 |
0002h |
2 |
4 |
0004h |
3 |
8 |
0008h |
4 |
16 |
0010h |
5 |
32 |
0020h |
6 |
64 |
0040h |
File has been written
to |
7 |
128 |
0080h |
0 |
8 |
256 |
0100h |
Reserved |
9 |
512 |
0200h |
10 |
1024 |
0400h |
11 |
2048 |
0800h |
12 |
4096 |
1000h |
No inherit |
13 |
8192 |
2000h |
Reserved |
14 |
16384 |
4000h |
Date/Time not set at
close |
15 |
32768 |
8000h |
Remote |
If bit 7 is ONE, the handle identifies a device, then:
Device: |
Bit |
Dec |
Hex |
Description |
0 |
1 |
0001h |
Standard Input Device |
1 |
2 |
0002h |
Standard Output Device |
2 |
4 |
0004h |
NULL Device |
3 |
8 |
0008h |
CLOCK$ Device |
4 |
16 |
0010h |
Special Device |
5 |
32 |
0020h |
Binary Mode |
6 |
64 |
0040h |
No EOF |
7 |
128 |
0080h |
1 |
8 |
256 |
0100h |
Reserved |
9 |
512 |
0200h |
10 |
1024 |
0400h |
11 |
2048 |
0800h |
Network Spooler |
12 |
4096 |
1000h |
No Inherit |
13 |
8192 |
2000h |
Named Pipe |
14 |
16384 |
4000h |
Reserved |
15 |
32768 |
8000h |
Remote |
|