Integrate .Net Framework Application into Windows Autoplay Features

Posted on 2007-10-06
Last Modified: 2013-12-17
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.
Question by:talker2004
    LVL 11

    Expert Comment

    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:
    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
    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.
    LVL 7

    Author Comment

    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.

    LVL 11

    Accepted Solution

    Thanks for clarification. See the following step-by-step article,

    You will tweak the ssytem registry at HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers.
    You will need to register your handler in HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\Handlers and put references to it in appropriate sub-keys of HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\EventHandlers

    Vista-specific details may be found in MSDN,
    LVL 11

    Expert Comment


    Featured Post

    Highfive Gives IT Their Time Back

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Join & Write a Comment

    Recently while returning home from work my wife (another .NET developer) was murmuring something. On further poking she said that she has been assigned a task where she has to serialize and deserialize objects and she is afraid of serialization. Wha…
    Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
    The purpose of this video is to demonstrate how to set up the WordPress backend so that each page automatically generates a Mailchimp signup form in the sidebar. This will be demonstrated using a Windows 8 PC. Tools Used are Photoshop, Awesome…
    This video is in connection to the article "The case of a missing mobile phone (". It will help one to understand clearly the steps to track a lost android phone.

    754 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    24 Experts available now in Live!

    Get 1:1 Help Now