Share via


DesktopAutoplayHandler element

Important

Device metadata is deprecated and will be removed in a future release of Windows. For information about the replacement for this functionality, see Driver Package Container Metadata.

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

Property Value
Minimum supported system Windows 8
Can be empty No

See also