Class AutoPlay
- Namespace
- ZeroInstall.DesktopIntegration.Windows
- Assembly
- ZeroInstall.DesktopIntegration.dll
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
RegKeyChosenAssocs
The HKCU registry key for storing user-selected AutoPlay handlers.
public const string RegKeyChosenAssocs = "SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\AutoplayHandlers\\UserChosenExecuteHandlers"
Field Value
RegKeyHandlers
The HKCU/HKLM registry key for storing AutoPlay handlers.
public const string RegKeyHandlers = "SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\AutoplayHandlers\\Handlers"
Field Value
RegValueDescription
The registry value name for storing the description of the AutoPlay action.
public const string RegValueDescription = "Action"
Field Value
RegValueIcon
The registry value name for storing the icon for the AutoPlay action.
public const string RegValueIcon = "DefaultIcon"
Field Value
RegValueProgID
The registry value name for storing the programmatic identifier to invoke.
public const string RegValueProgID = "InvokeProgID"
Field Value
RegValueProvider
The registry value name for storing the name of the application providing the AutoPlay action.
public const string RegValueProvider = "Provider"
Field Value
RegValueVerb
The registry value name for storing the name of the verb to invoke.
public const string RegValueVerb = "InvokeVerb"
Field Value
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
FeedTargetThe application being integrated.
autoPlay
AutoPlayThe AutoPlay handler information to be applied.
iconStore
IIconStoreStores icon files downloaded from the web as local files.
machineWide
boolRegister the handler machine-wide instead of just for the current user.
accessPoint
boolIndicates 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
AutoPlayThe AutoPlay handler information to be removed.
machineWide
boolRemove the handler machine-wide instead of just for the current user.
accessPoint
boolIndicates 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.