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,9b346ee85d1aa69a X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-01-17 13:26:31 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!newsfeed.berkeley.edu!news-hog.berkeley.edu!ucberkeley!nntp-relay.ihug.net!ihug.co.nz!news-xfer.siscom.net!not-for-mail Message-ID: <3C474180.8060306@mail1.monmouth.army.mil> Date: Thu, 17 Jan 2002 16:26:24 -0500 From: Jeffrey Glenn User-Agent: Mozilla/5.0 (Windows; U; Win98; en-US; rv:0.9.4) Gecko/20011128 Netscape6/6.2.1 X-Accept-Language: en-us MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Accessing I/O Ports in Windows NT/2000 References: <3C45FC6C.2030208@mail1.monmouth.army.mil> <4519e058.0201170735.c5ff137@posting.google.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Original-NNTP-Posting-Host: 158.9.12.100 X-Original-Trace: 17 Jan 2002 14:30:37 -0700, 158.9.12.100 X-COMPLAINTS: Report abuse to abuse@mhogaming.com Organization: Newshosting.com - Highest quality at a great price! www.newshosting.com NNTP-Posting-Date: 17 Jan 2002 21:26:27 GMT NNTP-Posting-Host: 8287d768.news.newshosting.com X-Trace: DXC=:b24XV1^^CaFTPS^k1LciF6BbIV4YYb:3QCT_6VF\aiIDPA_h1gRaQ]gL0o33_Akmco1;W<=IofmJJB3Qc=XPg X-Complaints-To: abuse@newshosting.com Xref: archiver1.google.com comp.lang.ada:19028 Date: 2002-01-17T21:26:27+00:00 List-Id: Ted Dennison wrote: > Jeffrey Glenn wrote in message news:<3C45FC6C.2030208@mail1.monmouth.army.mil>... > >>I've found that accessing the I/O ports on Windows 9x is rather easy, >>but with Windows NT/2000 input and output instructions are privileged > > That's right. NT doesn't allow direct access to the hardware from a > user-mode program. If you want to do that, you have to write a Windows > device driver. > >>Does anyone know of an Ada solution to accessing I/O ports on Windows >>NT/2000? > > This isn't a language issue, its an OS issue. What you need to figure > out is how to write a device driver for NT-class OS's. Anything you > learn about that can be translated into Ada quite easily. > > Good places to get started are the Microsoft DDK website > (http://www.microsoft.com/ddk/ ) , and the newsgroups > comp.os.ms-windows.programmer.drivers > (http://groups.google.com/groups?group=comp.os.ms-windows.programmer.drivers) > and comp.os.ms-windows-programmer.nt.kernel-mode > (http://groups.google.com/groups?group=comp.os.ms-windows.programmer.nt.kernel-mode > ). I was (am) hoping that I would not have to learn about writing device drivers for Windows NT. I realize that Ada doesn't provide these facilities, but I hoped to find that someone had already written such an interface/wrapper package. Ada also doesn't support ODBC, TCP/IP, nor Windows for that matter, but a lot has been written to bind with them. Oh well, I guess I have to to be the first one sometimes.