Re: How to get list of associated programs?
- From: Tom Esh <tjeshGibberish@xxxxxxxxxx>
- Date: Thu, 15 Sep 2005 23:34:25 -0400
On Thu, 15 Sep 2005 20:11:58 -0400, "Joseph Geretz"
<jgeretz@xxxxxxxxxx> wrote:
>When I right click on a jpg file and select Open With I get a list of all
>associated programs.
>
>Corel Photo Paint
>Windows Picture and Fax Viewer
>Paint
>Microsoft Office Picture Manager
>
>How do I get this list of associated applications for any given file?
Several choices here:
1) Dig it out of the registry. Tedious IMO, given the various possible
formats.
2) Have a look at these Api functions:
AssocQueryKey
AssocQueryString
AssocQueryStringByKey
Found some VB declares for them here:
http://www.vbbox.com/vb/codebox/Misc/?op=view&duid=ED4BC69B189146D69FD75909A828DB4C
3) The QueryAssociations interface. Unfortunately unlike "flat" Api
functions these C-style interfaces are not usable from VB without the
aid of a type library. There are plenty of shell Tlbs around, but I've
not seen one for QueryAssociations specifically. Perhaps you'll have
better Google luck than me :-)
-Tom
MVP - Visual Basic
(please post replies to the newsgroup)
.
- References:
- How to get list of associated programs?
- From: Joseph Geretz
- How to get list of associated programs?
- Prev by Date: Re: How to get list of associated programs?
- Next by Date: Re: Compiler String Efficiency
- Previous by thread: Re: How to get list of associated programs?
- Next by thread: Automating Fax In Windows
- Index(es):
Relevant Pages
|