82 lines
1.9 KiB
HTML
82 lines
1.9 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
|
|
|
|
<html>
|
|
|
|
<head>
|
|
<meta http-equiv="Content-Type"
|
|
content="text-html; charset=Windows-1252">
|
|
<title>INT 21,3D - Open File Using Handle</title>
|
|
<meta name="FORMATTER" content="Microsoft FrontPage 2.0">
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<h1><a name="kap_interrupt_2030"></a>INT 21,3D - Open File Using
|
|
Handle</h1>
|
|
|
|
<p> AH = 3D</p>
|
|
|
|
<p> AL = open access mode</p>
|
|
|
|
<p> 00 read only</p>
|
|
|
|
<p> 01 write only</p>
|
|
|
|
<p> 02 read/write</p>
|
|
|
|
<p> DS:DX = pointer to an ASCIIZ file name</p>
|
|
|
|
<p> on return:</p>
|
|
|
|
<p> AX = file handle if CF not set</p>
|
|
|
|
<p> = error code if CF set (see ~DOS ERROR CODES~)</p>
|
|
|
|
<p> % Access modes in AL:</p>
|
|
|
|
<p> ¦7¦6¦5¦4¦3¦2¦1¦0¦ AL</p>
|
|
|
|
<p> ¦ ¦ ¦ ¦ ¦ +-------- read/write/update access mode</p>
|
|
|
|
<p> ¦ ¦ ¦ ¦ +--------- reserved, always 0</p>
|
|
|
|
<p> ¦ +-------------- sharing mode (see below) (DOS 3.1+)</p>
|
|
|
|
<p> +--------------- 1 = private, 0 = inheritable (DOS 3.1+)</p>
|
|
|
|
<p> % Sharing mode bits (DOS 3.1+): Access mode bits:</p>
|
|
|
|
<p> % 654 210</p>
|
|
|
|
<p> 000 compatibility mode (exclusive) 000 read access</p>
|
|
|
|
<p> 001 deny others read/write access 001 write access</p>
|
|
|
|
<p> 010 deny others write access 010 read/write access</p>
|
|
|
|
<p> 011 deny others read access</p>
|
|
|
|
<p> 100 full access permitted to all</p>
|
|
|
|
<p> - will open normal, hidden and system files</p>
|
|
|
|
<p> - file pointer is placed at beginning of file</p>
|
|
|
|
<hr>
|
|
|
|
<table border="0" width="100%" cols="3">
|
|
<tr>
|
|
<td width="33%">Zurück zum <a href="inte1at0.htm">Interrupt
|
|
Info</a>. </td>
|
|
<td align="center" width="33%"><a
|
|
href="mailto:Roger.Morgan@htl-steyr.ac.at">Roger Morgan</a>
|
|
/ 1998 </td>
|
|
<td align="right" width="33%"><font size="1">L.Änderung <!--webbot
|
|
bot="Timestamp" s-type="EDITED" s-format="%d.%m.%y"
|
|
startspan -->29.03.99<!--webbot bot="Timestamp" endspan
|
|
i-checksum="13964" --> </font></td>
|
|
</tr>
|
|
</table>
|
|
</body>
|
|
</html>
|