This is the mail archive of the mailing list for the Cygwin project. See the Cygwin home page for more information.
[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index] [Subject Index] [Author Index] [Thread Index]

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.

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 :
WWW    :

Want to unsubscribe from this list?
Send a message to