From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,c72b93d85d765332 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-05-14 03:29:46 PST Path: archiver1.sj.google.com!newsfeed.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!cpk-news-hub1.bbnplanet.com!news.gtei.net!news-FFM2.ecrc.net!news.siemens.de!news.mch.sbs.de!not-for-mail From: Alfred Hilscher Newsgroups: comp.lang.ada Subject: Re: Ada and Hardware Date: Mon, 14 May 2001 12:27:44 +0200 Organization: Siemens AG Message-ID: <3AFFB320.EC2051AC@icn.siemens.de> References: <3AFACEC7.C2E67357@icn.siemens.de> <1BFK6.19477$9j1.4714444@typhoon.ne.mediaone.net> <2RWK6.1971$A07.417960@homer.alpha.net> NNTP-Posting-Host: 139.21.122.158 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 4.5 [en] (WinNT; I) X-Accept-Language: en Xref: archiver1.sj.google.com comp.lang.ada:7482 Date: 2001-05-14T12:27:44+02:00 List-Id: Randy Brukardt wrote: > >> >\\.\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.) Correct: "Windows 95: This technique does not work for opening a logical drive. In Windows 95, specifying a string in this form causes CreateFile to return an error." On Win NT you must have admin rights (I think).