Yes, excuse me, you are right
As i said i'm newbie. I use Dlephi 7 since less than 2 months.
I must write a program that need to alert when somebody inserts a device in one of the pc's USB port.
I have no idea how to control USB port in Delphi, so i looked for some component in Torry's. There, i found a unit that i suppose does what i need.
I have no experience with component's code.
In this case i don't know how to use the code i downloaded from torry's.
I tried the way 'Install Component' into new package.
All was ok. So now I can see the package inside all other packages; also library paths is upgraded.
Now?
In my program how can i call (and what is ) the function that returns the result that says if a device is connected to any of USB port.
In have read the code but it's very difficult for me.
I think i have to use WMDeviceChange procedure but i don't know how i can do.
Perhaps i'm on the wrong way.
Perhaps i have to add the unit to my project? (I think not)
Ok i have still to study a lot, but at the meantime i must work, and now i have this problem to solve.
Thanks for your interest i appreciate you.
Excuse for my poor english. I hope you all can understand.