Reverting registered extentions, possible?

This is a discussion on Reverting registered extentions, possible? within the Windows Programming forums, part of the Platform Specific Boards category; Assume I have registeded say the *.cpp extention with a program, meaning in the registry under HKEY_CLASSES_ROOT\.cpp I link to ...

  1. #1
    Confused Magos's Avatar
    Join Date
    Sep 2001
    Location
    Sweden
    Posts
    3,145

    Reverting registered extentions, possible?

    Assume I have registeded say the *.cpp extention with a program, meaning in the registry under HKEY_CLASSES_ROOT\.cpp I link to HKEY_CLASSES_ROOT\Magos.CustomCpp which has a Shell\Command\Open key.
    Now if I want to unregister this (remove my Magos.CustomCpp is there some sofisticated way to revert to what it had before? Or is it lost forever unless I manually make a backup?
    MagosX.com

    Give a man a fish and you feed him for a day.
    Teach a man to fish and you feed him for a lifetime.

  2. #2
    Registered User
    Join Date
    Sep 2004
    Location
    California
    Posts
    3,265
    I think all you need to do is delete your reg key, then call SHChangeNotify() passing SHCNE_ASSOCCHANGED as the event ID.

  3. #3
    Confused Magos's Avatar
    Join Date
    Sep 2001
    Location
    Sweden
    Posts
    3,145
    Nope, it only made programs (like explorer) update their icons etc...
    MagosX.com

    Give a man a fish and you feed him for a day.
    Teach a man to fish and you feed him for a lifetime.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. registered vs unregistered ddr ram?
    By doubleanti in forum A Brief History of Cprogramming.com
    Replies: 5
    Last Post: 11-29-2006, 08:13 PM
  2. Obtaining a list of all registered window classes?
    By Sebastiani in forum Windows Programming
    Replies: 4
    Last Post: 01-05-2003, 04:15 AM
  3. Thought I'd registered last couple of months...
    By Grayson_Peddie in forum A Brief History of Cprogramming.com
    Replies: 17
    Last Post: 08-31-2002, 10:34 PM
  4. help this beginner(now registered)
    By butterfly in forum C++ Programming
    Replies: 3
    Last Post: 05-28-2002, 08:29 PM
  5. MSN Vital Information
    By iain in forum A Brief History of Cprogramming.com
    Replies: 9
    Last Post: 09-22-2001, 09:55 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21