This techinique does not work with Windows 2000 as the CreateFile()
function fails with an error code of "Access Denied". I believe this is
because the OS opens the keyboard and mouse devices with exclusive access.
Is there an alternate way to obtain the VIDs of the current HID devices?
--
d
This posting is provided "AS IS" with no warranties, and confers no rights.
"Kurt Fankhauser" <kf...@shell.pacifier.com> wrote in message
news:udggo8g...@corp.supernews.com...
I had previously been trying to use the recommended way of creating a 2nd
top-level collection to do this. However, after a fortnight of banging my
head against a brick wall I found that the HIDClass parser does not allow 2
top-level collections in a single report descriptor, and that there is no
way of getting the HIDClass driver to accept 2 different report descriptors
(if this is even a viable alternative anyway).
My only question is : Is this solution a loop-hole that is likely to be sewn
up in a future service pack or OS update, or is it an entirely valid
approach that will stand forever?
Adrian.
"Doron Holan [MS]" <dor...@online.microsoft.com> wrote in message
news:3cd85c3d$1...@news.microsoft.com...
> if you open the file without asking for read access, the create should
> succeed and you should be able to use HidD_GetAttributes on either the
> keyboard or mouse.
>
> --
> d
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.303 / Virus Database: 164 - Release Date: 24/11/2001
I don't think this is true. In the sample I sent you, look at the commented
report desc in the header file. That has both mouse report and a generic hid
report. Try using that. I'm sure it works because Kumar was doing the
initial testing with that.
-Eliyas
"Adrian Taylor" <adr...@not.here> wrote in message
news:abn39f$8ak$1...@news8.svr.pol.co.uk...
What OS / service pack did you have it running on?
Adrian.
"Eliyas Yakub" <eli...@microsoft.com> wrote in message
news:oRQD8.30407$Po6....@rwcrnsc52.ops.asp.att.net...
> >I found that the HIDClass parser does not allow 2 top-level collections
in
> a single report descriptor
>
> I don't think this is true. In the sample I sent you, look at the
commented
> report desc in the header file. That has both mouse report and a generic
hid
> report. Try using that. I'm sure it works because Kumar was doing the
> initial testing with that.
>
> -Eliyas