delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/01/09/02:33:11

Date: Thu, 9 Jan 1997 09:15:02 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: "x DOT pons AT cc DOT uab DOT es" <ILGES AT cc DOT uab DOT es>
cc: djgpp AT delorie DOT com
Subject: Re: Getting volume serial number
In-Reply-To: <01IDYTM9RY420016QK@cc.uab.es>
Message-ID: <Pine.SUN.3.91.970109091222.2056P-100000@is>
MIME-Version: 1.0

On Wed, 8 Jan 1997, x DOT pons AT cc DOT uab DOT es wrote:

> Could someone tell me, please, how can I know the voume serial number of a
> disk drive?
> 
> I am specially interested in those ways not using "low level" calls,
> so they can also be executed on NT machines.

Use Int 21h function 440Dh with CL=66h.  This will work on MSDOS versions
4.0 and higher.  I don't know if it works on NT, but I don't know about
any other way to do that even on MSDOS, short of reading sectors directly. 

The details of that function are explained in Ralf Brown's Interrupt List 
(too long to reproduce here).

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019