Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C# 1.0 > C#
|
C# Programming questions specific to the Microsoft C# language. See also the forum Beginning Visual C# to discuss that specific Wrox book and code.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C# section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 24th, 2006, 01:59 AM
Authorized User
 
Join Date: May 2004
Posts: 83
Thanks: 0
Thanked 1 Time in 1 Post
Default Getting info about file type handler app

I want to get information about the application that is registered with Windows for handling a particular file extension. In the application I'm developing, users can attach different files which they want to view later on demand. I don't know in advance which type of files they might attach. So, I want to get infromation from Windows about the application registered for handling a particular type of file. Once I get this information, I'll be starting that application with instructions to open the file the user is interested in.

I guess this can be done thru Windows API.

Any ideas?



ejan
__________________
ejan
 
Old May 24th, 2006, 06:59 PM
Authorized User
 
Join Date: May 2006
Posts: 25
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I am thinking that the registry will be helpful here. This link shows how to create those associations. This will offer good clues as to how you might discover them in a program.
http://msdn.microsoft.com/library/de...file_types.asp

Also, that entire document tree is about extending the Windows shell, which is pretty much what you seem to be doing.

Brandon
 
Old May 28th, 2006, 08:15 AM
Authorized User
 
Join Date: May 2004
Posts: 83
Thanks: 0
Thanked 1 Time in 1 Post
Default

For a solution of this issue, please visit MSDN Forum "Visual C# General" at:

http://forums.microsoft.com/MSDN/Sho...21552&SiteID=1



ejan





Similar Threads
Thread Thread Starter Forum Replies Last Post
02 IN 01 Desktop App (App+Wind Handler) pk_ocp .NET Framework 2.0 0 February 26th, 2008 02:58 PM
Handler to read and load a PDF file Mehdi6002 ASP.NET 2.0 Professional 0 May 8th, 2007 04:39 PM
Handler to load an Image file -PDF Mehdi6002 BOOK: Professional ASP.NET 2.0 and Special Edition; ISBN: 978-0-7645-7610-2; ISBN: 978-0-470-04178-9 0 May 8th, 2007 09:00 AM
Passing CR Login info in a ASP.NET app. [email protected] BOOK: Professional Crystal Reports for VS.NET 0 March 31st, 2005 10:23 PM
<input type="File"> - Specify File Type and Path gp_mk Classic ASP Basics 2 August 2nd, 2004 03:07 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.