comp.lang.ada
 help / color / mirror / Atom feed
From: "Randy Brukardt" <randy@rrsoftware.com>
Subject: Re: Ada and Hardware
Date: Fri, 11 May 2001 14:13:30 -0500
Date: 2001-05-11T14:13:30-05:00	[thread overview]
Message-ID: <2RWK6.1971$A07.417960@homer.alpha.net> (raw)
In-Reply-To: 1BFK6.19477$9j1.4714444@typhoon.ne.mediaone.net

Jeff Creem wrote in message
<1BFK6.19477$9j1.4714444@typhoon.ne.mediaone.net>...
>
>"Ted Dennison" <dennison@telepath.com> wrote in message
>news:JLCK6.91$j65.11856@www.newsranger.com...
>> In article <3AFACEC7.C2E67357@icn.siemens.de>, Alfred Hilscher
says...
>> >
>> >Maybe the Windows API calls "CreateFile" and "DeviceIOControl" will
be
>> >what you are looking for ? Look for this excerpt from   MS-API
>> ..
>> >"You can use the CreateFile function to open a disk drive or a
partition
>> ..
>> >\\.\A: Obtains a handle to drive A on the user's computer.
>> >\\.\C: Obtains a handle to drive C on the user's computer."
>>
>> Interesting. One has to wonder if this would work with the standard
Ada IO
>> operations (eg: Ada.Streams.Stream_IO)...
>>
>
>I just had to know to. It looks like it does not work.


That format for the disk name only works with Windows NT and Windows
2000. Did you try it on one of those, or on Windows 95/98/ME? (So says
the platform documentation in the MSDN library, January 2001).

(Note that the original poster's problem cannot be solved with this
syntax, because it doesn't work on Windows 98, which he indicated was
his target.)

            Randy.






  parent reply	other threads:[~2001-05-11 19:13 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-05-10 13:02 Ada and Hardware chris.danx
2001-05-10 13:36 ` Ted Dennison
2001-05-10 14:00   ` chris.danx
2001-05-10 14:52     ` Ted Dennison
2001-05-10 18:20       ` chris.danx
2001-05-10 20:01         ` Jerry van Dijk
2001-05-10 20:54           ` chris.danx
2001-05-10 13:54 ` Tarjei T. Jensen
2001-05-10 14:10   ` chris.danx
2001-05-10 14:34     ` Tarjei T. Jensen
2001-05-10 18:28       ` chris.danx
2001-05-14  7:40         ` Kretschmer, Matthias
2001-05-10 17:24 ` Alfred Hilscher
2001-05-10 20:22   ` Ted Dennison
2001-05-10 23:35     ` Jeff Creem
2001-05-10 23:58       ` Fraser Wilson
2001-05-11  1:54         ` Jeff Creem
2001-05-11 19:13       ` Randy Brukardt [this message]
2001-05-14 10:27         ` Alfred Hilscher
2001-05-10 20:53   ` chris.danx
2001-05-11 21:45 ` GNAT for DOS chris.danx
2001-05-13 19:52 ` Ada and Hardware chris.danx
2001-05-14  0:18   ` Jeff Creem
replies disabled

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