Search Options
close
Search the following clips:
All Clips
Everyone's Clips
My Guides
Sign Up
Install
Learn More
Login
Free Tool: Refresh the Desktop Programmatically
fuzzylogic181
follow
0
11-28-2007 8:07 PM
125 views
tags:
utility
,
desktop refresh
fuzzylogic181
says:
Free Tool: Refresh the Desktop Programmatically
Add a Comment
Login
to Comment. Not a member yet?
Sign up
Related Clips
Counterintuitive physics may help everyone...
The hottest tech job in America: Wildlife ...
Ecovillages everywhere
Free anti-rootkit software
SUB (Sport Utility Bike)
Small enough for me
Political cartoons that make you think
More clips from
fuzzylogic181
Accessing Exchange 2007 Unified Messaging ...
Running ESX 3.5 and 3i Under VMWare Workst...
Where did the HP Way go?
Today's Top Clips
The rival to the Bible
Female Fighters: We Won't Stand for Male Dominance
Scientists create solar cells with a twist.
Different nesting options :)
The Surge has Worked
Clive Thompson: Why Veteran Visionaries Will Save the World
Obama Hatred at McCain-Palin Rallies: "Terrorist!" "Kill Him!"
Our "Digital Shadow" -a Mind-Bending Prediction
Layers of Red Cliffs on Mars (Photo)
Bush snubs Iran breakthrough opportunity
visit the
Top Clips page
View the Top Clips from
November 28, 2007
Embed This Clip In Your Site...
<div style="margin: 12px 0px; font-family: arial; color: #333333; background: #ffffff; border: solid 4px #e5e5e5; width: 100%; clear: left;"><div class="CM_CTB_Content_Wrap" style="margin: 0px; padding: 0px;background-color: #ffffff;"><div style="border-bottom: solid 1px #dcdcdc; white-space: nowrap; margin-bottom: 8px; background-color: #eeeeee ;background-image: url(http://www.clipmarks.com/images/source-bg.gif); background-repeat: repeat-x; height: 24px; line-height: 24px; vertical-align: middle; padding-bottom: 4px; color: #666666; font-size: 10px;" ><a href="http://clipmarks.com/clip-to-blog/" title="see clips that are hot right now"><img src="http://content.clipmarks.com/blog_embed/172a8010-d383-49ea-83d1-963a5b3b8b2b/6893BE53-9E0C-44A6-92C2-79B70B061134/" alt="" width="19" height="19" border="0" style="vertical-align: middle; margin: 0px 4px; display: inline; border: none; float:none;" /></a>clipped from <a title="http://blogs.sepago.de/helge/2007/11/22/free-tool-refresh-the-desktop-programmatically/" href="http://blogs.sepago.de/helge/2007/11/22/free-tool-refresh-the-desktop-programmatically/" style="font-size: 11px;">blogs.sepago.de</a></div><blockquote style="text-align: left; padding: 0px 8px; margin: 4px 0px 8px 0px; background: transparent; border: none;" cite="http://blogs.sepago.de/helge/2007/11/22/free-tool-refresh-the-desktop-programmatically/"><DIV class="itemhead"> <H3><A rel="bookmark" href="http://blogs.sepago.de/helge/2007/11/22/free-tool-refresh-the-desktop-programmatically/">Free Tool: Refresh the Desktop Programmatically</A></H3> <H5><DIV class="chronodata"><A rel="nofollow" title="Print This Post" href="http://blogs.sepago.de/helge/2007/11/22/free-tool-refresh-the-desktop-programmatically/print/"><IMG title="Print This Post" alt="Print This Post" src="http://blogs.sepago.de/helge/wp-content/plugins/print/images/print.gif" class="WP-PrintIcon" /></A> November 22nd, 2007 by Helge </DIV></H5> </DIV></blockquote><div style="height: 2px; font-size: 2px; background: #dcdcdc; border-bottom: solid 1px #f5f5f5; margin: 2px 4px;"></div><blockquote style="text-align: left; padding: 0px 8px; margin: 4px 0px 8px 0px; background: transparent; border: none;" cite="http://blogs.sepago.de/helge/2007/11/22/free-tool-refresh-the-desktop-programmatically/"><P> I recently had the requirement to refresh the Windows desktop after certain changes had been made to Explorer’s registry entries. This seems simple at first: klick on any item on the desktop and then press F5. It wasn’t, though. The registry changes would be made upon logon by a software installation agent. It was expected by the customer that the end user see the the effects of the change immediately without any user intervention. That sent me hunting for a solution on the internet. I came across many forum posts that showed that many others already had exactly the same requirement. Interestingly, none of the proposed solutions actually worked. Except for one, which I found at last.</P></blockquote><div style="height: 2px; font-size: 2px; background: #dcdcdc; border-bottom: solid 1px #f5f5f5; margin: 2px 4px;"></div><blockquote style="text-align: left; padding: 0px 8px; margin: 4px 0px 8px 0px; background: transparent; border: none;" cite="http://blogs.sepago.de/helge/2007/11/22/free-tool-refresh-the-desktop-programmatically/"><P><STRONG>How to Do it</STRONG></P></blockquote><div style="height: 2px; font-size: 2px; background: #dcdcdc; border-bottom: solid 1px #f5f5f5; margin: 2px 4px;"></div><blockquote style="text-align: left; padding: 0px 8px; margin: 4px 0px 8px 0px; background: transparent; border: none;" cite="http://blogs.sepago.de/helge/2007/11/22/free-tool-refresh-the-desktop-programmatically/"><P>The solution, once found, is simple, as always. There is an API function that tells the shell that file associations have changed:</P></blockquote><div style="height: 2px; font-size: 2px; background: #dcdcdc; border-bottom: solid 1px #f5f5f5; margin: 2px 4px;"></div><blockquote style="text-align: left; padding: 0px 8px; margin: 4px 0px 8px 0px; background: transparent; border: none;" cite="http://blogs.sepago.de/helge/2007/11/22/free-tool-refresh-the-desktop-programmatically/"><DIV class="codesnip-container"><A href="http://msdn2.microsoft.com/en-us/library/bb762118.aspx">SHChangeNotify</A> (SHCNE_ASSOCCHANGED, 0, 0, 0);</DIV></blockquote><div style="height: 2px; font-size: 2px; background: #dcdcdc; border-bottom: solid 1px #f5f5f5; margin: 2px 4px;"></div><blockquote style="text-align: left; padding: 0px 8px; margin: 4px 0px 8px 0px; background: transparent; border: none;" cite="http://blogs.sepago.de/helge/2007/11/22/free-tool-refresh-the-desktop-programmatically/"><P><STRONG>Coding it</STRONG></P></blockquote><div style="height: 2px; font-size: 2px; background: #dcdcdc; border-bottom: solid 1px #f5f5f5; margin: 2px 4px;"></div><blockquote style="text-align: left; padding: 0px 8px; margin: 4px 0px 8px 0px; background: transparent; border: none;" cite="http://blogs.sepago.de/helge/2007/11/22/free-tool-refresh-the-desktop-programmatically/">You can find it <A title="DesktopRefresh.exe" href="http://blogs.sepago.de/helge/wp-content/uploads/2007/11/desktoprefresh.exe">here</A>.</blockquote></div><div style="margin: 0px 6px 6px 4px;"><table style="font-size: 11px;border-spacing: 0px;padding: 0px;" cellpadding="0" cellspacing="0" width="100%"><tr><td style="background:transparent;border-width:0px;padding:0px;"> </td><td align="right" style="background:transparent;border-width:0px;padding:0px;width:107px" width="107"><a href="http://clipmarks.com/share/6893BE53-9E0C-44A6-92C2-79B70B061134/blog/" title="blog or email this clip"><img src="http://content9.clipmarks.com/images/c2b-foot.png" border="0" alt="blog it" width="107" height="17" style="border-width:0px;padding:0px;margin:0px;" /></a></td></tr></table></div></div>
Clipmarks
Home
New Clips
Top Clips
Dashboard
Popular Topics
News
Life
Science
Technology
Entertainment
Get Started
Sign Up
Install Clipping Tool
How Clipping Works
Clip-to-Blog™
ClipSearch
Tools and Resources
FAQ
ClipWeek
Top Clippers
Top Tags
Site Map
About Clipmarks
About Us
Contact
Blog
Copyright
Privacy
EULA
OK