Chapter
1
I
System
Calls
Code
Error
1
2
3
4
5
6
7
8
9
10
11
12
13
15
16
17
18
Invalid function number
File not found
Path not found
Too
many open files (no handles left)
Access denied
Invalid handle
Memory control blocks destroyed
Insufficient memory
Invalid memory block address
Invalid environment
Invalid format
Invalid access code
Invalid data
Invalid drive was specified
Attempted
to
remove the current directory
Not same device
No
more files
File Handles
Some
of
the new calls use a “file handle” to identify
a
file
or
device. A handle is
a
16-bit binary value that is
returned in register
AX
when you create
or
open
a
file
or
device using the new calls. This handle should be used
in subsequent references
to
the file.
ASCIIZ
Strings
Some calls require an ASCIIZ string in one
of
the regis-
ters as an entry condition. An ASCIIZ string
is
an ASCII
string followed by
a
byte
of
binary zeroes. The string con-
sists
of
an optional drive specifier followed by a directory
path and (in some cases) a filename. The following string,
if followed by
a
byte
of
zeroes, is an example:
8:
\LEVEL1 \LEVEL2\FILE
26