<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://shellrevealed.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Code Samples</title><link>http://shellrevealed.com/files/folders/code_samples/default.aspx</link><description /><dc:language>en</dc:language><generator>CommunityServer 2.1 (Build: 60809.935)</generator><item><title>FolderViewImpl Namespace example with search enabled</title><link>http://shellrevealed.com/files/folders/code_samples/entry7799.aspx</link><pubDate>Mon, 10 Mar 2008 16:32:09 GMT</pubDate><guid isPermaLink="false">26192bb1-e869-4f6e-bcf0-a09a396bc958:7799</guid><dc:creator>chrdavis</dc:creator><slash:comments>0</slash:comments><description>This version of the FolderViewImpl Namespace example enables deep searching </description><enclosure url="http://shellrevealed.com/files/folders/7799/download.aspx" length="42311" type="application/x-zip-compressed" /></item><item><title>Sample Namespace Extension with Custom Command Items</title><link>http://shellrevealed.com/files/folders/code_samples/entry7443.aspx</link><pubDate>Wed, 05 Sep 2007 07:48:10 GMT</pubDate><guid isPermaLink="false">26192bb1-e869-4f6e-bcf0-a09a396bc958:7443</guid><dc:creator>chrdavis</dc:creator><slash:comments>1</slash:comments><description>This sample extends the FolderViewImpl SDK Sample by adding custom command items to the Commands Module in Explorer.</description><enclosure url="http://shellrevealed.com/files/folders/7443/download.aspx" length="39744" type="application/x-zip-compressed" /></item><item><title>ImageResize context menu extension sample</title><link>http://shellrevealed.com/files/folders/code_samples/entry7177.aspx</link><pubDate>Mon, 21 May 2007 00:39:57 GMT</pubDate><guid isPermaLink="false">26192bb1-e869-4f6e-bcf0-a09a396bc958:7177</guid><dc:creator>chrisg</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;similar to the Windows XP Powertoy tool for re-sizing images this tool demonstrates how to write a context menu handler and use other shell services for re-sizing and re-encoding image file types. this is accessed via the context menu for items in a &amp;quot;Resize Pictures&amp;quot; cascade...&lt;/p&gt;&lt;p&gt;this sample demonstrates&lt;/p&gt;&lt;p&gt;1) how to register a per user context menu handler&lt;/p&gt;&lt;p&gt;2) how to implement IContextMenu and invoking the verbs on a background thread (to avoid hanging the UI of the caller)&lt;/p&gt;&lt;p&gt;3) the use of IShellItemArray and IShellItem that can be produced from the data object passed to the extension&lt;/p&gt;&lt;p&gt;4) use of the shell image manipulation helper object &lt;font size="2"&gt;CLSID_ShellImageDataFactory/&lt;/font&gt;&lt;font size="2"&gt;IShellImageDataFactory&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font size="2"&gt;5) the use of the shell progress dialog &lt;font size="2"&gt;CLSID_ProgressDialog/IProgressDialog for displaying progress&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font size="2"&gt;&lt;font size="2"&gt;Chris&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;</description><enclosure url="http://shellrevealed.com/files/folders/7177/download.aspx" length="28530" type="application/x-zip-compressed" /></item><item><title>Vista Owner Draw Menu Sample using Visual APIs</title><link>http://shellrevealed.com/files/folders/code_samples/entry7138.aspx</link><pubDate>Wed, 09 May 2007 23:02:21 GMT</pubDate><guid isPermaLink="false">26192bb1-e869-4f6e-bcf0-a09a396bc958:7138</guid><dc:creator>ksykes</dc:creator><slash:comments>1</slash:comments><description>This code sample is associated with the &amp;quot;Vista Style Menus Part 2&amp;quot; blog entry.&amp;nbsp; It shows how to render owner draw menus using the Visual API set and Vista&amp;#39;s menu parts.</description><enclosure url="http://shellrevealed.com/files/folders/7138/download.aspx" length="11458" type="application/x-zip-compressed" /></item><item><title>IFileOperationProgressSink Sample</title><link>http://shellrevealed.com/files/folders/code_samples/entry7088.aspx</link><pubDate>Mon, 23 Apr 2007 17:17:30 GMT</pubDate><guid isPermaLink="false">26192bb1-e869-4f6e-bcf0-a09a396bc958:7088</guid><dc:creator>chrdavis</dc:creator><slash:comments>1</slash:comments><description>Sample code for using the IFileOperationProgressSink interface with IFileOperation.</description><enclosure url="http://shellrevealed.com/files/folders/7088/download.aspx" length="7795" type="application/x-zip-compressed" /></item><item><title>IFileIsInUse Sample App</title><link>http://shellrevealed.com/files/folders/code_samples/entry7002.aspx</link><pubDate>Fri, 30 Mar 2007 21:24:58 GMT</pubDate><guid isPermaLink="false">26192bb1-e869-4f6e-bcf0-a09a396bc958:7002</guid><dc:creator>chrdavis</dc:creator><slash:comments>1</slash:comments><description>This sample application shows how to implement the IFileIsInUse interface.</description><enclosure url="http://shellrevealed.com/files/folders/7002/download.aspx" length="9267" type="application/x-zip-compressed" /></item><item><title>Shell Namespace Extension Sample: FolderViewImpl</title><link>http://shellrevealed.com/files/folders/code_samples/entry6901.aspx</link><pubDate>Fri, 16 Mar 2007 21:29:09 GMT</pubDate><guid isPermaLink="false">26192bb1-e869-4f6e-bcf0-a09a396bc958:6901</guid><dc:creator>chrdavis</dc:creator><slash:comments>2</slash:comments><description>This zip file contains the code for the FolderViewImpl Shell Namespace Extension Sample</description><enclosure url="http://shellrevealed.com/files/folders/6901/download.aspx" length="31758" type="application/x-zip-compressed" /></item><item><title>Add icons to standard menus and preserve the visual styling</title><link>http://shellrevealed.com/files/folders/code_samples/entry6536.aspx</link><pubDate>Tue, 06 Feb 2007 15:22:01 GMT</pubDate><guid isPermaLink="false">26192bb1-e869-4f6e-bcf0-a09a396bc958:6536</guid><dc:creator>ksykes</dc:creator><slash:comments>1</slash:comments><description>&lt;p&gt;A common reason to use owner-draw menus is to render icons.&amp;nbsp; In Windows Vista we now apply Visual Styling to menus but disable that styling for owner-draw menus.&amp;nbsp; This code shows how to convert an icon to an alpha blended bitmap and add it to your menu without using owner-draw.&lt;/p&gt;&lt;p&gt;See the associated blog post for more details.&lt;/p&gt;</description><enclosure url="http://shellrevealed.com/files/folders/6536/download.aspx" length="10650" type="application/x-zip-compressed" /></item><item><title>explorer browser host app (win32 C++)</title><link>http://shellrevealed.com/files/folders/code_samples/entry5347.aspx</link><pubDate>Mon, 30 Oct 2006 00:44:18 GMT</pubDate><guid isPermaLink="false">26192bb1-e869-4f6e-bcf0-a09a396bc958:5347</guid><dc:creator>chrisg</dc:creator><slash:comments>2</slash:comments><description>&lt;p&gt;&lt;span style="font-family:'Trebuchet MS';"&gt;&lt;font size="3"&gt;Update to the previous version of this sample. This version includes the following changes:&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-left:0.5in;text-indent:-0.25in;tab-stops:list .5in;"&gt;&lt;span style="font-family:Symbol;"&gt;&lt;span&gt;&lt;font size="3"&gt;&amp;middot;&lt;/font&gt;&lt;span style="font:7pt 'Times New Roman';"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:'Trebuchet MS';"&gt;&lt;font size="3"&gt;uses my common shell helpers library to make the core of the app simpler&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-left:0.5in;text-indent:-0.25in;tab-stops:list .5in;"&gt;&lt;span style="font-family:Symbol;"&gt;&lt;span&gt;&lt;font size="3"&gt;&amp;middot;&lt;/font&gt;&lt;span style="font:7pt 'Times New Roman';"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:'Trebuchet MS';"&gt;&lt;font size="3"&gt;demonstrates how to use different data sources including &lt;span&gt;&amp;nbsp;&lt;/span&gt;(uncomment the code that implements these different methods)&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-left:1in;text-indent:-0.25in;tab-stops:list 1.0in;"&gt;&lt;span style="font-family:'Courier New';"&gt;&lt;span&gt;&lt;font size="3"&gt;o&lt;/font&gt;&lt;span style="font:7pt 'Times New Roman';"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;font size="3"&gt;&lt;span style="font-family:'Trebuchet MS';"&gt;known folders (&lt;/span&gt;&lt;span style="font-family:'Trebuchet MS';"&gt;FOLDERID_UsersFiles)&lt;/span&gt;&lt;span style="font-family:'Trebuchet MS';"&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;&lt;p style="margin-left:1in;text-indent:-0.25in;tab-stops:list 1.0in;"&gt;&lt;span style="font-family:'Courier New';"&gt;&lt;span&gt;&lt;font size="3"&gt;o&lt;/font&gt;&lt;span style="font:7pt 'Times New Roman';"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:'Trebuchet MS';"&gt;&lt;font size="3"&gt;queries using &amp;quot;search-ms:&amp;quot; &lt;span&gt;&amp;nbsp;&lt;/span&gt;syntax&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-left:1in;text-indent:-0.25in;tab-stops:list 1.0in;"&gt;&lt;span style="font-family:'Courier New';"&gt;&lt;span&gt;&lt;font size="3"&gt;o&lt;/font&gt;&lt;span style="font:7pt 'Times New Roman';"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:'Trebuchet MS';"&gt;&lt;font size="3"&gt;queries using ISearchFolderItemFactory&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-left:1in;text-indent:-0.25in;tab-stops:list 1.0in;"&gt;&lt;span style="font-family:'Trebuchet MS';"&gt;&lt;font size="3"&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-left:1in;text-indent:-0.25in;tab-stops:list 1.0in;"&gt;&lt;span style="font-family:'Trebuchet MS';"&gt;&lt;font size="3"&gt;the sample has been updated to include &lt;font size="2"&gt;CDB2GVF_NOSELECTVERB in the GetViewFlags() method per request from Ben Betz.&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description><enclosure url="http://shellrevealed.com/files/folders/5347/download.aspx" length="38471" type="application/x-zip-compressed" /></item><item><title>C++ "Refresh Thumbnail" verb implementation that uses the DropTarget method</title><link>http://shellrevealed.com/files/folders/code_samples/entry5300.aspx</link><pubDate>Sat, 28 Oct 2006 04:02:40 GMT</pubDate><guid isPermaLink="false">26192bb1-e869-4f6e-bcf0-a09a396bc958:5300</guid><dc:creator>chrisg</dc:creator><slash:comments>2</slash:comments><description>&lt;p class="MsoNormal" style="margin:0in 0in 0pt;"&gt;&lt;span style="font-family:Arial;"&gt;This implements the &amp;ldquo;Refresh Thumbnail&amp;rdquo; verb that adjust the modified time of the files it is invoked on by a small amount in order to invalidate cached information about the items including thumbnails that is based on the modification time.&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin:0in 0in 0pt;"&gt;&lt;span style="font-family:Arial;"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin:0in 0in 0pt;"&gt;&lt;span style="font-family:Arial;"&gt;This sample demonstrates:&lt;/span&gt;&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;div class="MsoNormal" style="margin:0in 0in 0pt;"&gt;&lt;span style="font-family:Arial;"&gt;how to create a secondary verb that is registered on all file types in the system.&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div class="MsoNormal" style="margin:0in 0in 0pt;"&gt;&lt;span style="font-family:Arial;"&gt;verb implementation using a &lt;/span&gt;&lt;span style="font-family:Arial;"&gt;COM local server (.exe) using the &amp;ldquo;Drop Target&amp;rdquo; verb invoke method &lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div class="MsoNormal" style="margin:0in 0in 0pt;"&gt;&lt;span style="font-family:Arial;"&gt;how to convert the data object representation of the items in shell items so you can program them.&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div class="MsoNormal" style="margin:0in 0in 0pt;"&gt;&lt;span style="font-family:Arial;"&gt;&lt;/span&gt;&lt;span style="font-family:Arial;"&gt;The use of the name space walker to flatten the folder structure of the input, allowing the verb to work the items in the selected folders&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div class="MsoNormal" style="margin:0in 0in 0pt;"&gt;&lt;span style="font-family:Arial;"&gt;&lt;/span&gt;&lt;span style="font-family:Arial;"&gt;This also contains a re-factoring of the standard helper routines that my samples use; creating a &amp;ldquo;Common&amp;rdquo; project that can be shared across other shell samples.&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p class="MsoNormal" style="margin:0in 0in 0pt;"&gt;&lt;span style="font-family:Arial;"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin:0in 0in 0pt;"&gt;&lt;span style="font-family:Arial;"&gt;I hope to crate a blog post that walks through the details sample soon&amp;hellip; let me know if you are interested.&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin:0in 0in 0pt;"&gt;&lt;span style="font-family:Arial;"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin:0in 0in 0pt;"&gt;&lt;span style="font-family:Arial;"&gt;Chris&lt;/span&gt;&lt;/p&gt;</description><enclosure url="http://shellrevealed.com/files/folders/5300/download.aspx" length="38040" type="application/x-zip-compressed" /></item><item><title>TaskDialog sample (part 3, ex 3)</title><link>http://shellrevealed.com/files/folders/code_samples/entry4947.aspx</link><pubDate>Tue, 17 Oct 2006 21:21:02 GMT</pubDate><guid isPermaLink="false">26192bb1-e869-4f6e-bcf0-a09a396bc958:4947</guid><dc:creator>uisamurai</dc:creator><slash:comments>0</slash:comments><description>TaskDialog sample (part 3, ex 3)</description><enclosure url="http://shellrevealed.com/files/folders/4947/download.aspx" length="38278" type="application/x-zip-compressed" /></item><item><title>TaskDialog sample (part 3, ex 2)</title><link>http://shellrevealed.com/files/folders/code_samples/entry4946.aspx</link><pubDate>Tue, 17 Oct 2006 21:20:40 GMT</pubDate><guid isPermaLink="false">26192bb1-e869-4f6e-bcf0-a09a396bc958:4946</guid><dc:creator>uisamurai</dc:creator><slash:comments>3</slash:comments><description>TaskDialog sample (part 3, ex 2)</description><enclosure url="http://shellrevealed.com/files/folders/4946/download.aspx" length="96395" type="application/x-zip-compressed" /></item><item><title>TaskDialog sample (part3, exercise 1)</title><link>http://shellrevealed.com/files/folders/code_samples/entry4945.aspx</link><pubDate>Tue, 17 Oct 2006 21:20:14 GMT</pubDate><guid isPermaLink="false">26192bb1-e869-4f6e-bcf0-a09a396bc958:4945</guid><dc:creator>uisamurai</dc:creator><slash:comments>0</slash:comments><description>part of TaskDialog sample</description><enclosure url="http://shellrevealed.com/files/folders/4945/download.aspx" length="34270" type="application/x-zip-compressed" /></item><item><title>Windows Vista Application Development Requirements for User Account Control Compatibility</title><link>http://shellrevealed.com/files/folders/code_samples/entry4471.aspx</link><pubDate>Thu, 12 Oct 2006 09:32:08 GMT</pubDate><guid isPermaLink="false">26192bb1-e869-4f6e-bcf0-a09a396bc958:4471</guid><dc:creator>danoliv</dc:creator><slash:comments>0</slash:comments><description>Details on how to design and develop User Account Control (UAC) compliant applications for Windows Vista. Includes steps about the design process, code samples, requirements, and best practices.&lt;br /&gt;</description><enclosure url="http://www.microsoft.com/downloads/details.aspx?FamilyID=ba73b169-a648-49af-bc5e-a2eebb74c16b&amp;DisplayLang=en" length="28986" type="text/html; charset=utf-8" /></item><item><title>Explorer Windows Automation Sample in C++</title><link>http://shellrevealed.com/files/folders/code_samples/entry4073.aspx</link><pubDate>Sun, 08 Oct 2006 23:17:18 GMT</pubDate><guid isPermaLink="false">26192bb1-e869-4f6e-bcf0-a09a396bc958:4073</guid><dc:creator>chrisg</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;This sample demonstrates how to enumerate the open explorer windows using CLSID_ShellWindows/IShellWindows&amp;nbsp;as well as create new explorer window instances using the CLSID_ShellBrowserWindow/IWebBrowser2 programming interface.&lt;/p&gt;&lt;p&gt;It also includes my helper function to convert command line parameters into a shell item, useful for command line based shell utilities.&lt;/p&gt;&lt;p&gt;Chris&lt;/p&gt;</description><enclosure url="http://shellrevealed.com/files/folders/4073/download.aspx" length="3461" type="application/x-zip-compressed" /></item></channel></rss>