mbbrutman Washington, USA, 02.10.2023, 23:47 |
Device drivers: Changing the attribute word at install time? (Developers) |
I'm writing my first device driver and I'd like it to run on DOS 2.1 and up without providing different versions. (I'm going to ignore DOS 4.x here.) |
glennmcc North Jackson, Ohio (USA), 03.10.2023, 03:43 @ mbbrutman |
Device drivers: Changing the attribute word at install time? |
> I'm writing my first device driver and I'd like it to run on DOS 2.1 and up --- |
mbbrutman Washington, USA, 03.10.2023, 20:21 @ mbbrutman |
Device drivers: Changing the attribute word at install time? |
I'm still looking for examples of device drivers that do this, but I found one sentence in the second edition of "Undocumented DOS" (Schulman) that confirms this is possible. --- |
ecm Düsseldorf, Germany, 03.10.2023, 20:56 @ mbbrutman |
Device drivers: Changing the attribute word at install time? |
> The sentence says the driver install routine is called first, and then the --- |
mbbrutman Washington, USA, 03.10.2023, 21:26 @ ecm |
Device drivers: Changing the attribute word at install time? |
Interesting because I just looked at the MS DOS 2.0 source code on Github and it looks like it does not look at the attributes until after the driver init routine returns: |
tkchia 03.10.2023, 21:32 @ mbbrutman |
Device drivers: Changing the attribute word at install time? |
Hello mbbrutman, --- |
mbbrutman Washington, USA, 03.10.2023, 22:48 @ tkchia |
Device drivers: Changing the attribute word at install time? |
tkchia, |
tom Germany (West), 04.10.2023, 23:43 @ tkchia |
Device drivers: Changing the attribute word at install time? |
> Hello mbbrutman, |
tkchia 03.10.2023, 21:28 @ mbbrutman |
Device drivers: Changing the attribute word at install time? |
Hello mbbrutman, hello ecm, --- |
mbbrutman Washington, USA, 03.10.2023, 22:51 @ tkchia |
Device drivers: Changing the attribute word at install time? |
> Hello mbbrutman, hello ecm, |
bretjohn Rio Rancho, NM, 06.10.2023, 21:35 @ mbbrutman |
Device drivers: Changing the attribute word at install time? |
Unless you actually need the device driver to be installed by DOS at bootup for some reason, you can also manually insert the driver into the device driver chain. Essentially, this makes it a TSR instead of a device driver so you can do things like uninstalling it if you want to or detecting the DOS version while you install so you can configure the attributes however you want. |
mbbrutman Washington, USA, 07.10.2023, 20:42 @ bretjohn |
Device drivers: Changing the attribute word at install time? |
> Unless you actually need the device driver to be installed by DOS at bootup |
bretjohn Rio Rancho, NM, 09.10.2023, 19:17 @ mbbrutman |
Device drivers: Changing the attribute word at install time? |
> Interesting! Is it really as simple as inserting the device driver in the |
mbbrutman Washington, USA, 02.11.2023, 19:39 @ bretjohn |
Device drivers: Changing the attribute word at install time? |
Following up to the original question ... --- |
Rugxulo Usono, 23.11.2023, 22:15 @ mbbrutman |
Device drivers: Changing the attribute word at install time? |
Back when you originally mentioned this, I wanted to point you to a particular article, in the vain attempt to help, but I couldn't find the link. |