<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="https://syndication.webwiz.net/rss_namespace/">
 <channel>
  <title>Codejock Developer Community : Windows 7 issue</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : General Discussion : Windows 7 issue]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 29 Apr 2026 07:38:12 +0000</pubDate>
  <lastBuildDate>Wed, 25 Mar 2009 09:05:00 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 12.04</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>forum.codejock.com/RSS_post_feed.asp?TID=13798</WebWizForums:feedURL>
  <image>
   <title><![CDATA[Codejock Developer Community]]></title>
   <url>http://forum.codejock.com/forum_images/codejock-logo.gif</url>
   <link>http://forum.codejock.com/</link>
  </image>
  <item>
   <title><![CDATA[Windows 7 issue : The following code gives an error...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13798&amp;PID=47102&amp;title=windows-7-issue#47102</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2928">terrym</a><br /><strong>Subject:</strong> 13798<br /><strong>Posted:</strong> 25 March 2009 at 9:05am<br /><br /><P>The following code gives an error on Windows 7, but works fine on Windows Vista and below.&nbsp; Any ideas would be appreciated :(, there is more code to this but we broke it down to bare minimum so others can try to help us.</P><DIV>CComPtr&lt;IMalloc&gt; spIMalloc;<BR>HRESULT hResult = ::SHGetMalloc(&amp;spIMalloc);<BR>LPITEMIDLIST progFolder = NULL;<BR>hResult = ::SHGetSpecialFolderLocation(NULL, CSIDL_PRINTERS, &amp;progFolder );<BR>CComPtr&lt;IShellFolder&gt; spIShellFolder;<BR>CComPtr&lt;IShellFolder&gt; spFolderProgram;<BR>hResult = ::SHGetDesktopFolder(&amp;spIShellFolder);<BR>hResult = spIShellFolder-&gt;BindToObject(progFolder, NULL, IID_IShellFolder, (void **)&amp;spFolderProgram );<BR>CComPtr&lt;IEnumIDList&gt; spIEnumIDList;<BR>hResult = spFolderProgram-&gt;EnumObjects(NULL, SHCONTF_NONFOLDERS, &amp;spIEnumIDList );<BR>ULONG ulCount = 0;<BR>LPITEMIDLIST listNoFolder = NULL;<BR>hResult = spIEnumIDList-&gt;Next(1, &amp;listNoFolder, &amp;ulCount ); // hResult shows an error<BR>spIMalloc-&gt;Free(progFolder);<BR></DIV>]]>
   </description>
   <pubDate>Wed, 25 Mar 2009 09:05:00 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13798&amp;PID=47102&amp;title=windows-7-issue#47102</guid>
  </item> 
 </channel>
</rss>