How to create an "Open With" list?
-
Hi! I need to be able to launch a viewer for a given file from my application (Win32/MFC/C++). Ideally I'd like to present the user with choices similar to the "Open With..." feature of the explorer shell. I tried SHGetFileInfo but it keeps returning 0 for the flag SHGFI_TYPENAME (failure). So I assume there's two part in my quest: 1- Find the type (mime type?) a given extension (I don't necessarily have the file created yet -- i.e. I'd like the user to be able to choose before creating the file) 2- Find a list of suitable applications (path, "user friendly" name) that can open that mime type. I seems like I could just go and fish the info from the registry, but would that work on any windows version? Regards R/
-
Hi! I need to be able to launch a viewer for a given file from my application (Win32/MFC/C++). Ideally I'd like to present the user with choices similar to the "Open With..." feature of the explorer shell. I tried SHGetFileInfo but it keeps returning 0 for the flag SHGFI_TYPENAME (failure). So I assume there's two part in my quest: 1- Find the type (mime type?) a given extension (I don't necessarily have the file created yet -- i.e. I'd like the user to be able to choose before creating the file) 2- Find a list of suitable applications (path, "user friendly" name) that can open that mime type. I seems like I could just go and fish the info from the registry, but would that work on any windows version? Regards R/
ralfoide wrote: I could just go and fish the info from the registry seems like the only way.:-O
Hush,hush... thought I heard you call my name now. Kula Shaker. Amit Dey Latest articles at CP -
Writing Word addins Office addin