Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm Sender: cygwin-owner AT sourceware DOT cygnus DOT com Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com Message-Id: <1.5.4.32.19990324132305.00698604@lola.univ-lemans.fr> X-Sender: sdachian AT lola DOT univ-lemans DOT fr X-Mailer: Windows Eudora Light Version 1.5.4 (32) Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Date: Wed, 24 Mar 1999 14:23:05 +0100 To: cygwin AT sourceware DOT cygnus DOT com From: Serguei DACHIAN Subject: RE: Again about physical disks. At 20:43 23/03/99 -0700, Rick Rankin wrote: > Here's a short code sample for accessing the physical media id on Win9x from > cygwin. The same mechanisms can be used to perform physical I/O. Much of > this was taken from the documentation that comes with VC++ 6. It compiles > and works fine with gcc. > Thanks for the code, but unfortunately this is NOT what I need. The discussion is about accessing PHYSICAL drives, e.g. a first hard drive in your PC, i.e le /dev/hda. While your code can access only a:, c:, d:, etc., that is, a partition or a floppy, but not a physical harddisk. MS says that his methods (CreateFile and DeviceIOControl) fails in the case of physical harddisks on Win9x, and my experience confirm this. Regards, Serguei. ___________________________________________________________________________ Serguei DACHIAN Laboratoire de Statistique et Processus, Universite du Maine, Av. Olivier Messiaen 72085 Le Mans CEDEX 9, FRANCE Tel. : +33 (0)2 43 83 37 18 Fax. : +33 (0)2 43 83 35 79 E-mail : Serguei DOT Dachian AT univ-lemans DOT fr WWW : http://www.univ-lemans.fr/sciences/statist/cvs/thesard.html#dachian -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com