Files
oldlinux-files/docs/interrupts/int-html0/inte7wmo.htm
2024-02-19 00:23:35 -05:00

117 lines
2.8 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,44,0 / IOCTL,0 - Get Device Information</title>
<meta name="FORMATTER" content="Microsoft FrontPage 2.0">
</head>
<body>
<h1><a name="kap_interrupt_2110"></a>INT 21,44,0 / IOCTL,0 - Get
Device Information</h1>
<p> AH = 44h</p>
<p> AL = 00</p>
<p> BX = handle (must be an opened device)</p>
<p> on return</p>
<p> AX = error code if CF set (see ~DOS ERROR CODES~)</p>
<p> DX = device information (see tables below)</p>
<p> ¦F¦E¦D¦C¦B¦A-8¦7¦6¦5-0¦ DX Block Device Information</p>
<p> ¦ ¦ ¦ ¦ ¦ ¦ ¦ ¦ +----- drive number (0=A:,1=B:)</p>
<p> ¦ ¦ ¦ ¦ ¦ ¦ ¦ +------- 0 = file has been written</p>
<p> ¦ ¦ ¦ ¦ ¦ ¦ +-------- 0 = disk file; 1 = character
device</p>
<p> ¦ ¦ ¦ ¦ ¦ +---------- reserved, must be zero</p>
<p> ¦ ¦ ¦ ¦ +------------ 1 = media not removable</p>
<p> ¦ ¦ ¦ +------------- 1 = network device (DOS 3.x+)</p>
<p> ¦ ¦ +-------------- 1 = reserved</p>
<p> ¦ +--------------- 1 = don't update file time or date (DOS
4.x+)</p>
<p> +---------------- 1 = file is remote (DOS 3.x+)</p>
<p> ¦F¦E¦D¦C¦B¦A-8¦7¦6¦5¦4¦3¦2¦1¦0¦ DX Character
Device Information</p>
<p> ¦ ¦ ¦ ¦ ¦ ¦ ¦ ¦ ¦ ¦ ¦ ¦ ¦ +---- 1 = standard
input device</p>
<p> ¦ ¦ ¦ ¦ ¦ ¦ ¦ ¦ ¦ ¦ ¦ ¦ +---- 1 = standard output
device</p>
<p> ¦ ¦ ¦ ¦ ¦ ¦ ¦ ¦ ¦ ¦ ¦ +---- 1 = NUL device</p>
<p> ¦ ¦ ¦ ¦ ¦ ¦ ¦ ¦ ¦ ¦ +---- 1 = clock device</p>
<p> ¦ ¦ ¦ ¦ ¦ ¦ ¦ ¦ ¦ +---- uses DOS ~INT 29~ for fast
character output</p>
<p> ¦ ¦ ¦ ¦ ¦ ¦ ¦ ¦ +---- 1 = binary mode, 0 = translated</p>
<p> ¦ ¦ ¦ ¦ ¦ ¦ ¦ +---- 0 = end of file on input</p>
<p> ¦ ¦ ¦ ¦ ¦ ¦ +---- 1 = character device, 0 if disk file</p>
<p> ¦ ¦ ¦ ¦ ¦ +----- reserved</p>
<p> ¦ ¦ ¦ ¦ +------ 1 = media not removable</p>
<p> ¦ ¦ ¦ +------ 1 = network device (DOS 3.x+)</p>
<p> ¦ ¦ +------ reserved</p>
<p> ¦ +------ 1 = supports IOCTL, via functions 2 &amp; 3</p>
<p> +------ reserved</p>
<p> - BIT 7 of register DX can be used to detect if STDIN/STDOUT
is</p>
<p> redirected to/from disk; if a call to this function has DX
BIT 7</p>
<p> set it's not redirected from/to disk; if it's clear then it
is</p>
<p> redirected to/from disk</p>
<p> - BIT B of register DX can be used to determine if a drive is</p>
<p> removable.</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>