Re: Capturing document extension

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



David Webber wrote:

You are not alone. This must be documented somewhere!
Dave

Thanks, David. You and I seem in much the same boat here, so I hope someone else weighs in.

The only documentation I have found on this is basically the HKCR mechanism as I described it. I have never found documentation on the parallel universe of "Open with" and the HKCU entries you mention.

The existing pre-Vista version of my apps used the MFC CWinApp::RegisterShellFileTypes(). My instructions to the user for changing the association were to delete the .ret file association using Windows Explorer, and then run the program that he/she wants to get the association (RegisterShellFileTypes() will not steal an association, just grab an extension that is not already assigned).

One of the first things I discovered with Vista was that this RegisterShellFileTypes() method does not work on Vista, even after a clean install (it is not even virtualized if you do not have a Vista-aware manifest). So I moved the file association code to my setup program, which runs as admin.

That is where I am right now, wondering how to change the association in my non-admin application.

David Wilkinson

.



Relevant Pages

  • Re: Distribution security
    ... You know I violently disagree with you on the options thing and it has absolutely nothing to do with the html documentation. ... Yes, I require that man pages not be in the base distribution; however, there is a html2man utility in the distribution that can produce a man page ripoff of the html pages, although with loss of content. ... David> page and NTP project site physically reside at U Delaware. ...
    (comp.protocols.time.ntp)
  • Re: BUFR format software?
    ... David J Taylor wrote: ... I've seen other sources of documentation but those ... > could it in stepwise development looking at data subsets in the first ...
    (borland.public.delphi.thirdpartytools.general)
  • Re: Distribution security
    ... David> page and NTP project site physically reside at U Delaware. ... The documentation included in a particular distribution ... David> applies only to that distribution and may be different in minor ways ...
    (comp.protocols.time.ntp)
  • Re: After Installation of my CS II Upgrade May I...
    ... David N ... you can uninstall the previous versions. ... CS II is up and running and I am no longer in the dark ages ... some of the documentation makes some ...
    (alt.graphics.photoshop)
  • Re: Capturing document extension
    ... However, one of the MSDN articles I stumbled on said that if you change the file association in the registry, you need to call SHChangeNotifyso that the shell updates its cache. ... It uses GetStockObjectwhich does not return the proper GUI font that is used in the status bar! ... Something about Microsoft Sans Serif being mapped and needing to specify Microsoft Sans Serif 2 or something like that if we wanted the real font (Tahoma in XP, Segoe UI in Vista). ... See my most recent reply to David Webber. ...
    (microsoft.public.vc.mfc)