Delphi Pages Forums

Delphi Pages Forums (http://www.delphipages.com/forum/index.php)
-   Tools (http://www.delphipages.com/forum/forumdisplay.php?f=6)
-   -   USB Detector compoenent (http://www.delphipages.com/forum/showthread.php?t=208779)

SilverBoy 10-02-2010 08:38 AM

USB Detector compoenent
 
1 Attachment(s)
Hi ,

Last day i need to detect wich USB device connected to or disconnected from computer in my project , so i wrote this component .

The component has two events :
1. OnArrival
2. OnRemoved

Note : Both events has same parameters , you can get drive name of connected USB device in OnArrival or disconnected USB device OnRemoved event from Drive parameter , Drive parameter return drive name as string type .

Regards , Mojtaba Tajik

VM_Hacker 10-08-2010 01:08 PM

Thanks for the great post =)

Best Regards,
VM_Hacker

Betacart 09-08-2011 12:46 PM

Hi,

how to use your component? If unpack, I see only one file without extension.. I am using D2010.

Donovan 09-09-2011 01:35 PM

Nice Post!

you are an asset to the Delphi Community!

You couldnt right a set of components for Open Office could you? lol :-)

Regards

Donovan

Rad Koder 12-22-2011 02:07 PM

Thanks for the new component, happy coding

morteza 10-23-2012 03:39 PM

Thanks for the new component,
Good Component but how can use it?

lexd 04-12-2015 10:48 AM

This means nothing with out getting the PID & VID from the registry
I have made such a component that does all this but have not posted it anywhere because every one will copy or claim it.

Rantor777 11-08-2016 01:28 AM

Handy Tool. Thanks.
 
Handy Tool. Thanks.

adeministrator 03-27-2017 08:05 PM

Thanks for great codes

adeministrator 04-08-2017 01:39 PM

Quote:

Originally Posted by SilverBoy (Post 212915)
Hi ,

Last day i need to detect wich USB device connected to or disconnected from computer in my project , so i wrote this component .

The component has two events :
1. OnArrival
2. OnRemoved

Note : Both events has same parameters , you can get drive name of connected USB device in OnArrival or disconnected USB device OnRemoved event from Drive parameter , Drive parameter return drive name as string type .

Regards , Mojtaba Tajik

Can't make procedure call in these events. It errors: "An outgoing call can not be made because the application sends a synchronous call
"


All times are GMT. The time now is 06:42 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2019, vBulletin Solutions, Inc.