app related to given file extension

Hey!
I need to know the application name associated with a particular file extension. I have the name of the file and need to know the application that created it. Does anybody know of any API calls that might be of use.
Thanks,
Karan
[246 byte] By [kdnewbie] at [2007-11-18 2:14:56]
# 1 Re: app related to given file extension
I think you have to read this information from some registry entry.

Maybe this MSDN sample called "Registry Sample: Using the Win32 API to Access the Registry" (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vcsample98/html/vcsmpregistrysampleusingwin32apitoaccessregistry.asp) could be useful to you.

But sorry I don't know what entry you should read.
Doctor Luz at 2007-11-10 8:56:31 >