Table of Contents

Class AutoPlay

Namespace
ZeroInstall.DesktopIntegration.Windows
Assembly
ZeroInstall.DesktopIntegration.dll

Contains control logic for applying AutoPlay and AutoPlay on Windows systems.

public static class AutoPlay
Inheritance
AutoPlay
Inherited Members

Fields

RegKeyAssocs

The HKCU/HKLM registry key for storing AutoPlay handler associations.

public const string RegKeyAssocs = "SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\AutoplayHandlers\\EventHandlers"

Field Value

string

RegKeyChosenAssocs

The HKCU registry key for storing user-selected AutoPlay handlers.

public const string RegKeyChosenAssocs = "SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\AutoplayHandlers\\UserChosenExecuteHandlers"

Field Value

string

RegKeyHandlers

The HKCU/HKLM registry key for storing AutoPlay handlers.

public const string RegKeyHandlers = "SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\AutoplayHandlers\\Handlers"

Field Value

string

RegValueDescription

The registry value name for storing the description of the AutoPlay action.

public const string RegValueDescription = "Action"

Field Value

string

RegValueIcon

The registry value name for storing the icon for the AutoPlay action.

public const string RegValueIcon = "DefaultIcon"

Field Value

string

RegValueProgID

The registry value name for storing the programmatic identifier to invoke.

public const string RegValueProgID = "InvokeProgID"

Field Value

string

RegValueProvider

The registry value name for storing the name of the application providing the AutoPlay action.

public const string RegValueProvider = "Provider"

Field Value

string

RegValueVerb

The registry value name for storing the name of the verb to invoke.

public const string RegValueVerb = "InvokeVerb"

Field Value

string

Methods

Register(FeedTarget, AutoPlay, IIconStore, bool, bool)

Adds an AutoPlay handler registration to the current system.

public static void Register(FeedTarget target, AutoPlay autoPlay, IIconStore iconStore, bool machineWide, bool accessPoint = false)

Parameters

target FeedTarget

The application being integrated.

autoPlay AutoPlay

The AutoPlay handler information to be applied.

iconStore IIconStore

Stores icon files downloaded from the web as local files.

machineWide bool

Register the handler machine-wide instead of just for the current user.

accessPoint bool

Indicates that the handler should become the default handler for all Events.

Exceptions

OperationCanceledException

The user canceled the task.

IOException

A problem occurred while writing to the filesystem or registry.

WebException

A problem occurred while downloading additional data (such as icons).

UnauthorizedAccessException

Write access to the filesystem or registry is not permitted.

Unregister(AutoPlay, bool, bool)

Removes an AutoPlay handler registration from the current system.

public static void Unregister(AutoPlay autoPlay, bool machineWide, bool accessPoint = false)

Parameters

autoPlay AutoPlay

The AutoPlay handler information to be removed.

machineWide bool

Remove the handler machine-wide instead of just for the current user.

accessPoint bool

Indicates that the handler should was the default handler for all Events.

Exceptions

IOException

A problem occurred while writing to the filesystem or registry.

UnauthorizedAccessException

Write access to the filesystem or registry is not permitted.