<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.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>What does SHGFI_USEFILEATTRIBUTES mean?</title><link>http://blogs.msdn.com/oldnewthing/archive/2004/06/01/145428.aspx</link><description>It means "Pretend the file/directory exists".</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>re: What does SHGFI_USEFILEATTRIBUTES mean?</title><link>http://blogs.msdn.com/oldnewthing/archive/2004/06/01/145428.aspx#145455</link><pubDate>Tue, 01 Jun 2004 14:42:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:145455</guid><dc:creator>Jack Mathews</dc:creator><description>This was so handy for a program where I needed to enumerate all of the file types in the system way back when.&lt;br&gt;&lt;br&gt;Just go through .* in HKCR, get the icon for that type, then map them to their proper names and display them.  I was so happy the day I found this function :)</description></item><item><title>re: What does SHGFI_USEFILEATTRIBUTES mean?</title><link>http://blogs.msdn.com/oldnewthing/archive/2004/06/01/145428.aspx#145459</link><pubDate>Tue, 01 Jun 2004 14:51:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:145459</guid><dc:creator>Henk Devos</dc:creator><description>Are you sure that you can't  pass &amp;quot;???.txt&amp;quot;?&lt;br&gt;I would usually pass &amp;quot;*.txt&amp;quot; to this function and that seems to work.&lt;br&gt;</description></item><item><title>re: What does SHGFI_USEFILEATTRIBUTES mean?</title><link>http://blogs.msdn.com/oldnewthing/archive/2004/06/01/145428.aspx#145462</link><pubDate>Tue, 01 Jun 2004 14:57:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:145462</guid><dc:creator>njkayaker</dc:creator><description>Too bad there isn't a way of doing something similar to get the executable used to edit the file (sort of like FindExecutable).</description></item><item><title>re: What does SHGFI_USEFILEATTRIBUTES mean?</title><link>http://blogs.msdn.com/oldnewthing/archive/2004/06/01/145428.aspx#145463</link><pubDate>Tue, 01 Jun 2004 14:58:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:145463</guid><dc:creator>njkayaker</dc:creator><description>Then, again, maybe AssocQueryString would work for that.</description></item><item><title>re: What does SHGFI_USEFILEATTRIBUTES mean?</title><link>http://blogs.msdn.com/oldnewthing/archive/2004/06/01/145428.aspx#145473</link><pubDate>Tue, 01 Jun 2004 15:12:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:145473</guid><dc:creator>Raymond Chen</dc:creator><description>Henk: It may work today but it won't work in Longhorn. The first parameter is supposed to be a valid filename.&lt;br&gt;&lt;br&gt;njkayaker: Yes I believe a variation on AssocQueryString will do the trick.</description></item><item><title>re: What does SHGFI_USEFILEATTRIBUTES mean?</title><link>http://blogs.msdn.com/oldnewthing/archive/2004/06/01/145428.aspx#145477</link><pubDate>Tue, 01 Jun 2004 15:25:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:145477</guid><dc:creator>J. Edward Sanchez</dc:creator><description>How about just &amp;quot;.txt&amp;quot;? It's a valid filename, after all. Even though Explorer won't let you create it, Explorer will correctly recognize it as having the &amp;quot;.txt&amp;quot; extension (and a blank name).&lt;br&gt;&lt;br&gt;If it works, then you've saved yourself a whopping full character of unnecessary bloat!</description></item><item><title>re: What does SHGFI_USEFILEATTRIBUTES mean?</title><link>http://blogs.msdn.com/oldnewthing/archive/2004/06/01/145428.aspx#145495</link><pubDate>Tue, 01 Jun 2004 15:50:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:145495</guid><dc:creator>Len Weaver</dc:creator><description>Hey Ray, could you give us an example of a filetype whose icon changes depending upon its contents?  I've never heard of such a thing before.  Thanks.</description></item><item><title>re: What does SHGFI_USEFILEATTRIBUTES mean?</title><link>http://blogs.msdn.com/oldnewthing/archive/2004/06/01/145428.aspx#145502</link><pubDate>Tue, 01 Jun 2004 15:52:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:145502</guid><dc:creator>Raymond Chen</dc:creator><description>Sure you have - you just don't realize it.  *.lnk files for example. *.exe for another. *ico for a third.</description></item><item><title>re: What does SHGFI_USEFILEATTRIBUTES mean?</title><link>http://blogs.msdn.com/oldnewthing/archive/2004/06/01/145428.aspx#145516</link><pubDate>Tue, 01 Jun 2004 16:02:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:145516</guid><dc:creator>Henk Devos</dc:creator><description>Good that you clarified that.&lt;br&gt;I don't remember where i got the &amp;quot;*.txt&amp;quot;, but i certainly didn't invent this myself, and i think it is widely used like this.&lt;br&gt;</description></item><item><title>re: What does SHGFI_USEFILEATTRIBUTES mean?</title><link>http://blogs.msdn.com/oldnewthing/archive/2004/06/01/145428.aspx#145529</link><pubDate>Tue, 01 Jun 2004 16:11:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:145529</guid><dc:creator>Centaur</dc:creator><description>Some time ago, in times before XP and Me, there was a “tip” that had you set your icon for .bmp to %1. It gave you a slowdown on directories that contained many bitmaps, but you got to know just by looking what a picture was about.</description></item><item><title>re: What does SHGFI_USEFILEATTRIBUTES mean?</title><link>http://blogs.msdn.com/oldnewthing/archive/2004/06/01/145428.aspx#146142</link><pubDate>Tue, 01 Jun 2004 23:40:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:146142</guid><dc:creator>Mike Dunn</dc:creator><description>Setting the icon to %1 only works if there is an icon handler shell extension registered for that file type.</description></item><item><title>Getting the icon for a given file extension</title><link>http://blogs.msdn.com/oldnewthing/archive/2004/06/01/145428.aspx#7878994</link><pubDate>Sun, 24 Feb 2008 18:54:46 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:7878994</guid><dc:creator>Flawless Code</dc:creator><description>&lt;p&gt;Getting the icon for a given file extension&lt;/p&gt;
</description></item></channel></rss>