Shell Interfaces


IApplicationAssociationRegistration Interface

Exposes methods that query and set default applications for specific file Association Type, and protocols at a specific Association Level.

IApplicationAssociationRegistration Members

ClearUserAssociations Removes all per-user associations for the current user. This results in a reversion to machine defaults, if they exist.
QueryAppIsDefault Determines whether an application owns the registered default assocation for a given application level and type.
QueryAppIsDefaultAll Determines whether an application owns all of the registered default associations for a given application level.
QueryCurrentDefault Determines the default application for a given association type. This is the default application launched by ShellExecute for that type.
SetAppAsDefault Sets an application as the default for a given type. For more information, see Default Programs
SetAppAsDefaultAll Sets an application as the default for all of the registered associations of any type for that application.

Remarks

Because IApplicationAssociationRegistration is only supported for Windows Vista and later, applications that support earlier operating systems must use their preexisting code in relation to defaults when running under those operating systems. Those applications should include a check for the OS version to account for this.

Interface Information

Inherits fromIUnknown
Header and IDL filesshobjidl.h, shobjidl.idl
Minimum operating systems Windows Vista

See Also

Default Programs
Tags :


Page view tracker