none
USB Autoplay Issues RRS feed

  • Question

  • I need to add an autoplay handler for a aprticular device.
    The approach I am taking is:

    1) HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\USB\Vid_xxxx&Pid_xxxx\xxxxxxxx\Device Parameters
            DeviceHandlers[REF_SZ]=MyDevHandler
    2) HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\DeviceHandlers
            MyDevHandler (new key)
    3) HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\DeviceHandlers\ MyDevHandler
            EventHandler (new key)
    4) HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\DeviceHandlers\ MyDevHandler\EventHandler
            DeviceArrival (new key)
    5) HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\DeviceHandlers\ MyDevHandler\EventHandler\DeviceArrival
            MyDevArrival[REG_SZ]=""
    6) HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\EventHandlers
            MyDevArrival (new key)
    7) HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\EventHandlers\ MyDevArrival
            MyHandler[REG_SZ]=""
    8)Used TweakUI to create a handler which registered under 
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\Handlers\MyHandler

    But after doing all these modifications, all I get is a blank autoplay pop up.

    Looks like there is a problem in step1-2.
    Coz when I use MyHandler in any other content based event handler, it works fine.
    Any help?
                 
    Friday, January 16, 2009 1:06 PM

Answers