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 07:36:00 PST Path: archiver1.google.com!postnews1.google.com!not-for-mail From: dennison@telepath.com (Ted Dennison) Newsgroups: comp.lang.ada Subject: Re: Accessing I/O Ports in Windows NT/2000 Date: 17 Jan 2002 07:35:59 -0800 Organization: http://groups.google.com/ Message-ID: <4519e058.0201170735.c5ff137@posting.google.com> References: <3C45FC6C.2030208@mail1.monmouth.army.mil> NNTP-Posting-Host: 65.115.221.98 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1011281759 15885 127.0.0.1 (17 Jan 2002 15:35:59 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: 17 Jan 2002 15:35:59 GMT Xref: archiver1.google.com comp.lang.ada:19017 Date: 2002-01-17T15:35:59+00:00 List-Id: 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 ).