[newbie question] Adding A Driver Above HID?

Hello Everybody,

Hi I Am Trying to make a smart-card driver that will work above the
standard usb-HID Driver. The Device is automatically detected as a
HID-Compatible device by windows when plugged in. Where will I start in
making this driver? I tried modifing the Bull smart-card driver in the
windows DDK but I do not know how to load it… I also tried compiling
the WDM\USB\filter driver in the ddk. I tried using the GenInf to
generate an INF file for each of the sys files I made but I still could
not install it… Do you have any sugesstions where I can start?

With Best Regards,
Rikki

Your INF must match against the hardware ID generated by HID. In this
case, it is your USB HWID, say USB\VID_1234&PID_1234, but with the USB\
replaced with HID, ie HID\VID_1234&PID_1234. The class of the INF will
be the smart class, not HIDClass.

Once your driver is loaded, you send HID reads/writes and get/set
feature requests down the stack. For almost I/O request, you will need
a valid PFILE_OBJECT. For an example on how to open up the PDO, see the
firefly example in the latest DDK, specifically the file vfeature.c.
Also, if you don’t have it, get Walter Oney’s book (2nd edition). It
has an entire chapter on HID (not sure about how much there is in there
with regard to writing a kernel HID client though, but it is worthwhile
nonetheless)…

D

This posting is provided “AS IS” with no warranties, and confers no
rights

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Rikki Tamayo
Sent: Thursday, January 22, 2004 12:07 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] [newbie question] Adding A Driver Above HID?

Hello Everybody,

Hi I Am Trying to make a smart-card driver that will work above the
standard usb-HID Driver. The Device is automatically detected as a
HID-Compatible device by windows when plugged in. Where will I start in
making this driver? I tried modifing the Bull smart-card driver in the
windows DDK but I do not know how to load it… I also tried compiling
the WDM\USB\filter driver in the ddk. I tried using the GenInf to
generate an INF file for each of the sys files I made but I still could
not install it… Do you have any sugesstions where I can start?

With Best Regards,
Rikki


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: xxxxx@windows.microsoft.com
To unsubscribe send a blank email to xxxxx@lists.osr.com