JumpyNET
Centurion
- Joined
- Apr 4, 2005
- Messages
- 196
Windows Vista comes with a new feature called Default Programs (which replaces the Set Program Access and Default and File Types feature from Windows XP). This feature provides a way of changing program defaults, such as file and protocol associations and AutoPlay settings.
To save us most of the trouble, David Kean has gone ahead and written a small wrapper around the IApplicationAssociationRegistrationUI::LaunchAdvancedAssociationUI method, which displays the file association window for a particular application.
The usage of this method is simple:
Here is a link for the source code and a pre compiled dll:
http://davesbox.com/archive/2008/12/03/programmatically-opening-the-default-programs-window.aspx
To save us most of the trouble, David Kean has gone ahead and written a small wrapper around the IApplicationAssociationRegistrationUI::LaunchAdvancedAssociationUI method, which displays the file association window for a particular application.
The usage of this method is simple:
Code:
System.Windows.DefaultApplications.ShowAssociationsWindow("Internet Explorer")
Here is a link for the source code and a pre compiled dll:
http://davesbox.com/archive/2008/12/03/programmatically-opening-the-default-programs-window.aspx