IT Community - Software Programming, Web Development and Technical Support

Autoplay When USB is inserted using C#

This is a discussion on Autoplay When USB is inserted using C# within the C# Programming forums, part of the Software Development category; hi, I need to open application in Autoplay..like images are need to load when user inserting USB PEN/CD ...


Go Back   IT Community - Software Programming, Web Development and Technical Support > Software Development > C# Programming

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 10-03-2007, 03:41 AM
Anandavinayagam Anandavinayagam is offline
D-Web Sr.Programmer
 
Join Date: Mar 2007
Posts: 131
Anandavinayagam is on a distinguished road
Default Autoplay When USB is inserted using C#

hi,

I need to open application in Autoplay..like images are need to load when user inserting USB PEN/CD drive..

Can someone help
__________________
The MOSS
Master of Solution Service
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 10-03-2007, 03:46 AM
kingmaker kingmaker is offline
D-Web Genius
 
Join Date: Jun 2007
Posts: 882
kingmaker is on a distinguished road
Send a message via Yahoo to kingmaker
Default Re: Autoplay When USB is inserted using C#

hey,

Do u want to detect USB and load images is normal process like detecting drive on Arrival Event...or u want to load images in ur application in autoplay menu..
__________________
The KINGMAKER
Makes Every Thing Possible

Stuffs (My Blog)
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 10-03-2007, 03:47 AM
Anandavinayagam Anandavinayagam is offline
D-Web Sr.Programmer
 
Join Date: Mar 2007
Posts: 131
Anandavinayagam is on a distinguished road
Default Re: Autoplay When USB is inserted using C#

yes i want to load my application in autoplay menu...
__________________
The MOSS
Master of Solution Service
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 10-03-2007, 03:53 AM
kingmaker kingmaker is offline
D-Web Genius
 
Join Date: Jun 2007
Posts: 882
kingmaker is on a distinguished road
Send a message via Yahoo to kingmaker
Wink Re: Autoplay When USB is inserted using C#

You need to create reg key for

Handler:
HKEY_LOCAL_MACHINE
SOFTWARE
Microsoft
Windows
CurrentVersion
Explorer
AutoplayHandlers
Handlers
AutoPlayOnArrival
Action [REG_SZ]= Load Files
DefaultIcon [REG_EXPAND_SZ]= \AutoPlayListener.dll,
InvokeProgID [REG_SZ]= AutoPlayOnArrivalHandler
InvokeVerb [REG_SZ]= import
Provider [REG_SZ]= Autoplay Demo

* Action: Text string that represents what action the application will take with regard to the content type that triggered an Autoplay response.
* DefaultIcon: Icon that represents the application in the Autoplay UI.
* InvokeProgID: This is the ProgID of an application or COM component providing a Shell sub key that will be invoked.
* InvokeVerb: This is the verb under the ProgID specified in the InvokeProgID value.
* ProviderText: The string that represents the application.

HKEY_CLASSES_ROOT
Almdal.AutoPlayListener.AutoPlayOnArrivalHandler
shell
import
DropTarget
ClSID=


We want to be notified when image arrive,


HKEY_LOCAL_MACHINE
SOFTWARE
Microsoft
Windows
CurrentVersion
Explorer
AutoplayHandlers
EventHandlers
ShowPicturesOnArrival
Demo


This things are registered in registry...and important thing is u have to write code for getting files from the USB to ur application while the application is selected in the autoplay menu..
__________________
The KINGMAKER
Makes Every Thing Possible

Stuffs (My Blog)
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Get a inserted record field value in PHP-mySQL venkat_charya PHP Programming 0 08-24-2007 09:52 AM
which method to use so that last inserted value can be retrieve. KiruthikaSambandam Database Support 1 08-07-2007 12:13 AM


All times are GMT -7. The time now is 11:39 PM.


Copyright ©2004 - 2007, DiscussWeb. All Rights Reserved.

SEO by vBSEO 3.0.0