comp.lang.ada
 help / color / mirror / Atom feed
* Reading raw disks (Windows)
@ 2002-04-27 15:16 Larry Hazel
  2002-04-29  1:11 ` Steve Doiel
  0 siblings, 1 reply; 7+ messages in thread
From: Larry Hazel @ 2002-04-27 15:16 UTC (permalink / raw)


Is there any way to open a raw disk for reading under Windows?  I tried opening
"Z:" with sequential_io, but got 

raised ADA.IO_EXCEPTIONS.USE_ERROR : s-fileio.adb:833

Using GNAT 3.14p.  By the way, shouldn't that be Ada.IO_EXCEPTIONS.USE_ERROR? 
We chide everyone else about proper capitalization of Ada.

Larry



^ permalink raw reply	[flat|nested] 7+ messages in thread
* Re: Reading raw disks (Windows)
@ 2002-04-29 12:13 Mike Brenner
  0 siblings, 0 replies; 7+ messages in thread
From: Mike Brenner @ 2002-04-29 12:13 UTC (permalink / raw)


>> Is there any way to open a raw disk for reading under Windows? 

For FAT formatted disks, you might be able to use the old Alsys DOS Ada Compiler whose runtime library allows you to read and write the sectors of a disk as if the entire disk were a single random access file (which it is).

To do it on the more modern window formats probably requires a Ring 0 Device Driver to do it for you using the Game SDK or its replacement, and then have Ada use the C Interface to call that device driver.




^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2002-04-29 15:28 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-04-27 15:16 Reading raw disks (Windows) Larry Hazel
2002-04-29  1:11 ` Steve Doiel
2002-04-29  2:06   ` Larry Hazel
2002-04-29 13:18     ` chris.danx
2002-04-29 15:12     ` Frank J. Lhota
2002-04-29 15:28       ` Darren New
  -- strict thread matches above, loose matches on Subject: below --
2002-04-29 12:13 Mike Brenner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox