Re: Detecting installed applications for specific file type



I haven't looked at this in several years, but my memory is that no more than one
application is regsitered per file extension. So even if you have twenty programs, only
one is the program that is launched by double-clicking the file of the appropriate
extension.
joe

On 26 Jan 2006 10:32:56 -0800, "Erik Jälevik" <erikjalevik@xxxxxxxxx> wrote:

>I'm aware this might not be an MFC question as such, but I can't find
>any other group that seems suitable either so here goes:
>
>I'd like to discover what music player applications are installed on
>the machine on which my program is running. I was thinking it should be
>possible to backtrack from say the .mp3 file extension and retrieve all
>programs that have registered an ability to open this file type.
>
>The documentation on file associations reveals that they live in
>HKEY_CLASSES_ROOT where each extension has a default app plus a list of
>other apps that can open it listed under the OpenWithList key.
>
>However, on my system, this only lists Winamp as the default player and
>Windows Media Player in the OpenWithList. I also have the VLC media
>player installed but it doesn't show up anywhere under the .mp3 key.
>
>So my question is, is there a good way to find all applications capable
>of handling a certain file type on a system without resorting to a
>brute force search for filenames of known applications?
>
>Thanks,
>Erik
Joseph M. Newcomer [MVP]
email: newcomer@xxxxxxxxxxxx
Web: http://www.flounder.com
MVP Tips: http://www.flounder.com/mvp_tips.htm
.



Relevant Pages

  • Re: error downloading codec
    ... my security settings are preventing the codec download? ... When I open WM Player ... Then, look at the file, and post what the file extension is. ...
    (microsoft.public.windowsmedia.player)
  • Re: Some video do not show up in Media Library
    ... I'd suspect X just has the same file extension as Y, ... > Lets say I put videos X and Y in a folder, ... > Player to add files to media library. ... > I am using the latest version of Media Player. ...
    (microsoft.public.windowsmedia.player)
  • Re: [MSH] The new name is: Windows Power Shell
    ... Incorporating the version number in the file extension makes sense to ... me given the roadmap for Monad over the next 3-5 years. ... .ps1 extension will always "declare" what it is. ... Steve Foster [SBS MVP] ...
    (microsoft.public.windows.server.scripting)
  • Re: Cannot assign "open with"
    ... Alan Edwards, MS MVP W95/98 Systems ... >Types" and the file extension, Since this new program is not installed in ... I browsed to the corect folder and highlighted ...
    (microsoft.public.windowsxp.basics)
  • Re: Windows Media Player executes WMF content in .MP3 files.
    ... >make, however, is obviously a very important example, as it does launch ... >applications based on the file extension, rather than by magic number (as I ... postings directly on their respective News servers, ...
    (comp.security.misc)