Partager via


DesktopAutoplayHandler element

Specifies a desktop application that should appear as the recommended AutoPlay action when the device is connected and no default action is set. The AutoPlay event is raised whenever the device transitions from a disconnected state to a connected state, such as when the user plugs in the device.

Usage

<DesktopAutoplayHandler>
  text
</DesktopAutoplayHandler>

Attributes

There are no attributes.

Text value

String indicating the desktop application that handles the autoplay event.

Child elements

There are no child elements.

Parent elements

Element

WindowsInfo

Remarks

You specify the desktop Autoplay Handler string in the DesktopAutoplayHandler element when you set the desktop application. You can retrieve the string from the handler subkey name that is registered under the following registry key.

HKLM\Software\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\Handlers

Element information

Minimum supported system

Windows 8
Can be empty Yes

See also

How to Register a Handler for a Device Event

Supporting Autoplay

WindowsInfo

 

 

Send comments about this topic to Microsoft