Link to home
Start Free TrialLog in
Avatar of talker2004
talker2004Flag for United States of America

asked on

Integrate .Net Framework Application into Windows Autoplay Features

I want to integrate an application into the autoplay feature of windows so that i can detect when a user plugs in a memory card into their computer. How do you get your applications icon Listed in the Auto Play feature of windows.
Avatar of alexcohn
alexcohn
Flag of Israel image

It is not clear what "Autoplay" you Imply. If you want your application to start automatically when the Windows is loaded, it is enough set the Windows registry entry:
  HKLM\Software\Microsoft\Windows\CurrentVersion\Run
name: any (it is ignored)
type: REG_SZ
data: path to your program, maybe - with parameters, e.g.
  "C:\Program Files\Dell Support\DSAgnt.exe" /startup

You can use
  HKCU\Software\Microsoft\Windows\CurrentVersion\Run
if you want to start it only if the particular user logs in.

The application will start when a user logs in, and inherit this user's account permissions.

You can convert your application to become a system service. It will inherit system permissions, but such processes cannot have user interface.
Avatar of talker2004

ASKER

The feature of windows i am referring to is called AutoPlay. When you insert a disk / memory card into your computer windows responds with the autoplay window prompting you with a list of options. An example is that when i insert a blank cd the autoplay window appears and one of the options are to burn with Nero. Since Nero is a 3rd party application i would like to know how they got their icon registered in there. The feature you are referring to above is considered the AutoRun feature of windows.

ASKER CERTIFIED SOLUTION
Avatar of alexcohn
alexcohn
Flag of Israel image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial