Everhart, Glenn From: Rick Howard [rickh@mijenix.com] Sent: Monday, November 23, 1998 10:43 AM To: Marek Wierzbicki; ntdev@atria.com Subject: RE: [ntdev] Read phisical drive There is a knowledge base article on how to do direct IO on a Win9x drive. The article number is: Q125712 I'll quote the important part here to save you some time: 3. DeviceIoControl() is called using a handle to a VxD rather than a handle to a disk drive or disk partition. Obtain a handle to VWIN32.VXD by using CreatFile( "\\\\.\\VWIN32", ... ). Use this handle in calls to DeviceIoControl() to perform volume locking (Int 21h Function 440Dh, Subfunctions 4Ah and 4Bh), and then to perform BIOS calls (Int 13h), Absolute Disk Reads/Writes (Int 25h and 26h), or MS-DOS IOCTL functions (Int 21h Function 440Dh). Hope this helps, Rick Howard Mijenix Corporation > -----Original Message----- > From: owner-ntdev@atria.com [mailto:owner-ntdev@atria.com]On Behalf Of > Marek Wierzbicki > Sent: Sunday, November 22, 1998 2:47 AM > To: ntdev@atria.com > Subject: [ntdev] Read phisical drive > > > I would like read HDD serial number using DeviceIoControl function. > If the drive is standard IDE I can do it using DFP_RECIVE_DRIVE_DATA > (0x0007c084). But if I can't read this way the number of SCSI HDD. > Mayby anybody know how can I do it? If yes what is the value of command > (I work with Delphi, within there is no definition of IOCTL API) and > structures. > By the way, may be anybody know how can I read HDD serial number under > WIN9x (it is harder, becouse under WIN9x not exist name > "physicalDriverX". > > Marek Wierzbicki > - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - > [ To unsubscribe, send email to ntdev-request@atria.com with body > UNSUBSCRIBE (the subject is ignored). ] > - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [ To unsubscribe, send email to ntdev-request@atria.com with body UNSUBSCRIBE (the subject is ignored). ]