Re: Register Extension blur me



The Mike code is very good.. but is not enough for me, not all icons are
refreshed,
after notify with SHChangeNotify(SHCNE_ASSOCCHANGED, SHCNF_IDLIST, 0, 0);
not even reboot helps.

So I send another notify:
the: SHChangeNotify(SHCNE_ASSOCCHANGED, SHCNF_FLUSH, 0, 0);
and the refresh works fine without reboot also.

Then the problem was the popupmenu Open and double-click start - still
previous program starts!

I solve the problem by setup keys also in to the below reg. key
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExt
s\
and now works fine!

My question is, what that key do? and is it back compatible?
Because, I can find anything about on Internet...











"J French" <erewhon@xxxxxxxxxx> wrote in message
news:444342dd.172438280@xxxxxxxxxxxxxxxxxxxxxxx
On Sun, 16 Apr 2006 23:09:38 +0100, "Samoa" <samoa@xxxxxxxxxxx> wrote:

Thanx... I tray that code, is fine for new extension...
But I have problems with re:registering an already associated ext.

After associating and Shell Notify, I look at keys and they are ok, right
pointed to my prog.

But when I double click or open the file associated then it still opens
in a old progarm, also after reboot...

And the strage thing is that some extensions work right and the other
not.
I also add shell notify flush and wait until notifying is complete.
I acheive some better results but it not helps.

You probably misunderstood Mike's code

Inspect how WinZip does it - in the Registry
Also: My Computer, View, Options, File Types

Also the parameter %1 is best wrapped as "%1" to handle spaces in
file names


.



Relevant Pages

  • Re: Register Extension blur me
    ... So I send another notify: ... and the refresh works fine without reboot also. ... I can't find that key on Win95 ...
    (alt.comp.lang.borland-delphi)
  • Re: Register Extension blur me
    ... So I send another notify: ... and the refresh works fine without reboot also. ... I can't find that key on Win95 ...
    (alt.comp.lang.borland-delphi)
  • Re: Add another domain user group to local administrators of all computers in an OU with removing ot
    ... By default, Group Policy refreshes in the background every 90 minutes, with ... I have now waited beyond the refresh time + offset time (it had been ... the group to local administrators at every reboot. ...
    (microsoft.public.windows.server.active_directory)
  • Re: Configure ftp base dir doesnt work...
    ... Yes, i can change the default directory and don't need a refresh, new settings will be used. ... No, i never reboot the system, because the image is always load from flash with it's default settings set by platform builder. ... I get the platform builder from my colleague at monday to debug the ftp service. ...
    (microsoft.public.windowsce.app.development)
  • Re: Internet explorer favourites ques.......
    ... Basically i get the saved oriinal screen if i refresh or reboot. ... Peter ... >> I seem to have a problem with my saved favourites in microsoft explorer in ...
    (microsoft.public.windows.mediacenter)