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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,bf4a172bb2a8198f X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news4.google.com!proxad.net!feeder1-2.proxad.net!feeder.erje.net!newsfeed-fusi2.netcologne.de!news.netcologne.de!newsfeed-hp2.netcologne.de!newsfeed.arcor.de!newsspool4.arcor-online.net!news.arcor.de.POSTED!not-for-mail From: "Dmitry A. Kazakov" Subject: Re: Ada binding for USB ports on Windows 95? Newsgroups: comp.lang.ada User-Agent: 40tude_Dialog/2.0.15.1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Reply-To: mailbox@dmitry-kazakov.de Organization: cbb software GmbH References: Date: Mon, 29 Sep 2008 18:29:52 +0200 Message-ID: <16tyk72e7pb9i$.118who7ttssyp$.dlg@40tude.net> NNTP-Posting-Date: 29 Sep 2008 18:29:56 CEST NNTP-Posting-Host: 1e0f9e38.newsspool4.arcor-online.net X-Trace: DXC=4GkiK99d6e9gP]QSEBQ^d44IUK[ On Mon, 29 Sep 2008 11:40:35 -0400, Bob Spooner wrote: > Does anyone know of such a binding or, lacking that, a source for the > specifications for the C interface so I can write my own? C specifications can be found in the MSDN. For example HID USB devices: http://msdn.microsoft.com/en-us/library/ms790932.aspx I doubt that there exist Ada sources, for all the API is catastrophic. For example, to catch device connect/disconnect notifications you need a window! They are sent as window message! As for C. You can find some C++ code here: http://lvr.com/hidpage.htm#MyExampleCode Beware, if I correctly remember, the code is not very good (contains superfluous calls, maybe, even leaks resources, I don't remember the details, sorry. So carefully read Microsoft description of the API functions the code uses. You will easily figure out its weak points. P.S. I cannot tell anything useful about Windows 95. AFAIK, it did not fully support USB. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de