Slide 9.5: This book's link library (cont.) Slide 9.7: This book's link library (cont.) Home |
CloseFile
EAX
.
CreateOutputFile
EDX
.
When the procedure returns,
EAX
contains a valid file handle;
EAX
equals INVALID_HANDLE_VALUE
(a predefined constant).
OpenInputFile
EDX
.
When it returns,
EAX
contains a valid file handle;
EAX
equals INVALID_HANDLE_VALUE
.
ReadFromFile
EAX
, the offset of a buffer in EDX
, and the maximum number of bytes to read in ECX
.
When the procedure returns,
CF = 0
, EAX
contains a count of the number of bytes read from the file;
CF = 1
, EAX
contains the system error code explaining what went wrong.
WriteToFile
EAX
, the offset of the buffer in EDX
, and the number of bytes to write in ECX
.
When the procedure returns, EAX
contains a count of the number of bytes written.