comp.lang.ada
 help / color / mirror / Atom feed
From: "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de>
Subject: Re: Ada binding for USB ports on Windows 95?
Date: Mon, 29 Sep 2008 18:29:52 +0200
Date: 2008-09-29T18:29:56+02:00	[thread overview]
Message-ID: <16tyk72e7pb9i$.118who7ttssyp$.dlg@40tude.net> (raw)
In-Reply-To: gbqstj$uj4$1@f04n12.cac.psu.edu

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



  reply	other threads:[~2008-09-29 16:29 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-09-29 15:40 Ada binding for USB ports on Windows 95? Bob Spooner
2008-09-29 16:29 ` Dmitry A. Kazakov [this message]
2008-09-30 15:00   ` Ada binding for USB ports on Windows 95? I meant Windows XP Bob Spooner
2008-10-01 11:44     ` RasikaSrinivasan
2008-10-08 16:34       ` Bob Spooner
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox