I want to get the path to programs related to the file extension, preferably through the Win32 API.
- List of programs displayed in the "Open With" menu item
- List of programs that are displayed according to the recommendations of the "Open with ..." dialog box.
UPD:
Suppose Office11 and Office12 are installed on my machine, the default program for .xls is Office 11. If you look at HKEY_CLASSES_ROOT \ Excel.Sheet.8 \ shell \ Open \ command, that is, the path to office11 is excel.exe, but when I right-click on a file, I can select office12 from the "Open with" menu. So where is this association stored?
I am using C #.
Thanks.
c # windows file-association
Alexander
source share