I want to get path to the programs that associated with file extension, preferably through Win32 API.
- List of programs that appears in “Open With” menu
item - List of programs that appears as recommended in
“Open With…” dialog.
UPD:
Assume that i have office11 and office12 installed on my machine, default program for .xls is office 11. If look at HKEY_CLASSES_ROOT\Excel.Sheet.8\shell\Open\command there is a path to office11 excel.exe, but when i right click on file i can choose office12 in Open With menu item. So where is this association stored?
I’m using C#.
Thanks.
I wrote a small routine:
which gets called like so: