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-18 00:29:42 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!fu-berlin.de!uni-berlin.de!tar-alcarin.cbb-automation.DE!not-for-mail From: dmitry@elros.cbb-automation.de (Dmitry A. Kazakov) Newsgroups: comp.lang.ada Subject: Re: Accessing I/O Ports in Windows NT/2000 Date: Fri, 18 Jan 2002 08:29:40 GMT Message-ID: <3c47dae5.155431437@News.CIS.DFN.DE> References: <3C45FC6C.2030208@mail1.monmouth.army.mil> <4519e058.0201170735.c5ff137@posting.google.com> <3C474180.8060306@mail1.monmouth.army.mil> NNTP-Posting-Host: tar-alcarin.cbb-automation.de (212.79.194.111) X-Trace: fu-berlin.de 1011342580 32476317 212.79.194.111 (16 [77047]) X-Newsreader: Forte Free Agent 1.21/32.243 Xref: archiver1.google.com comp.lang.ada:19035 Date: 2002-01-18T08:29:40+00:00 List-Id: On Thu, 17 Jan 2002 16:26:24 -0500, Jeffrey Glenn wrote: > >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. There was a product by Blue Wave, I believe, called WinRT. It contained a primitive Windows driver, which allowed you to read/write arbitrary physical memory locations [= your I/O ports]. I think all that you will need then is standard Win32 bindings and here you are. Regards, Dmitry Kazakov