Go Back   CodingForums.com > :: Computing & Sciences > Computer Programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 04-06-2010, 07:16 AM   PM User | #1
lexdean
New to the CF scene

 
Join Date: Apr 2010
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
lexdean is an unknown quantity at this point
Unhappy SetupAPI.DLL to HID.DLL

With the SetupAPI.DLL I exicute
Function SetupDiGetClassDevs and get a pointer

Then Begin a loop
Then I run
Return = Function SetupDiEnumDeviceInterfaces with SP_DEVICE_INTERFACE_DATA.cbSize = 0 to get my size of what SP_DEVICE_INTERFACE_DATA needs to be

Then I set size and execute again
SP_DEVICE_INTERFACE_DATA.cbSize = return (the size)
Function SetupDiEnumDeviceInterfaces

From the data structures I get
DevicePath
SP_DEVINFO_DATA
And a heap of information from the registry if I want it I beleave

What I’m realy wanting is to access the HID.DLL and call
HidD_GetAttributes to get VendorID, ProductID, and VersionNumber
To this patiular device one at this time so I can ID the device.
I expect this paticular info would come from the USB device its self.
Can any one show me how to do that.

By the way in my verion of windows XP I’m using the registroy path, I cannot find
HKEY_LOCAL_MACHINE\Enum\HID\...\Class
I do not even get HKEY_LOCAL_MACHINE\Enum\
Why?

P.S. The internet has no help and Lake View Research realty do not know what they are doing in my eyes. The code is all over the place.

Thanks in advance,
J Lex Dean
lexdean is offline   Reply With Quote
Reply

Bookmarks

Tags
hid, programming, usb, windows

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 04:29 AM.


Advertisement
Log in to turn off these ads.