i_am_a_Developer
i_am_a_Developer

Reputation: 11

How to access hardware properties of a connected USB device in Delphi 7?

I want to access the hardware properties (e.g. the driver key) of the connected USB device. How to do that?

I am able to detect whether the USB device is connected to the port or not using the TComponentUSB class properties.

Upvotes: 1

Views: 527

Answers (1)

David Caouette
David Caouette

Reputation: 11

You have to use SetupAPI functions. Recently, I had to detect Topaz USB Signature pads for a specific project using Reported Bus Description key and I achieved that using SetupAPI.

Check MSDN for documentation and JediVCL has some setupapi.pas unit that should help you. Some functions are not included in this unit though.

Upvotes: 1

Related Questions