<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Große Icon wie im Explorer(&amp;gt;32x32, Vista)]]></title><description><![CDATA[<p>Tagchen auch,<br />
mein problem ist, dass ich keinen weg finde, wie ich die großen icons extrahieren kann.<br />
IExtractIcon gibt nur 32x32 icons zurück,<br />
ExtractIcon auch,<br />
IThumbnailCache(Vista) sagt, dass es nicht implementiert ist,<br />
und IExtractImage funktioniert nur bei dateien wo man ein vorschaubild bekommen kann(bilder ..., keine großen icons).</p>
<p>Vielleich weiß ja irgenwer, wie man das machen muss,<br />
für hilfe wär ich auf jedenfall dankbar</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/189845/große-icon-wie-im-explorer-gt-32x32-vista</link><generator>RSS for Node</generator><lastBuildDate>Thu, 02 Jul 2026 06:13:22 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/189845.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 17 Aug 2007 14:24:41 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Große Icon wie im Explorer(&amp;gt;32x32, Vista) on Fri, 17 Aug 2007 14:24:41 GMT]]></title><description><![CDATA[<p>Tagchen auch,<br />
mein problem ist, dass ich keinen weg finde, wie ich die großen icons extrahieren kann.<br />
IExtractIcon gibt nur 32x32 icons zurück,<br />
ExtractIcon auch,<br />
IThumbnailCache(Vista) sagt, dass es nicht implementiert ist,<br />
und IExtractImage funktioniert nur bei dateien wo man ein vorschaubild bekommen kann(bilder ..., keine großen icons).</p>
<p>Vielleich weiß ja irgenwer, wie man das machen muss,<br />
für hilfe wär ich auf jedenfall dankbar</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1346431</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1346431</guid><dc:creator><![CDATA[Explorer_Bild]]></dc:creator><pubDate>Fri, 17 Aug 2007 14:24:41 GMT</pubDate></item><item><title><![CDATA[Reply to Große Icon wie im Explorer(&amp;gt;32x32, Vista) on Fri, 17 Aug 2007 16:32:00 GMT]]></title><description><![CDATA[<p>Wie siehts damit aus? <a href="http://msdn2.microsoft.com/en-us/library/ms648069.aspx" rel="nofollow">http://msdn2.microsoft.com/en-us/library/ms648069.aspx</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1346486</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1346486</guid><dc:creator><![CDATA[CodeFinder]]></dc:creator><pubDate>Fri, 17 Aug 2007 16:32:00 GMT</pubDate></item><item><title><![CDATA[Reply to Große Icon wie im Explorer(&amp;gt;32x32, Vista) on Fri, 17 Aug 2007 17:07:53 GMT]]></title><description><![CDATA[<p><img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f62e.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--face_with_open_mouth"
      title=":open_mouth:"
      alt="😮"
    />, mein Textverständnis!<br />
Ich hab das immer als einzelnes icon gesehen.<br />
DANKE, MEINE PROBLEME SIND GELÖST</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1346518</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1346518</guid><dc:creator><![CDATA[ddwe]]></dc:creator><pubDate>Fri, 17 Aug 2007 17:07:53 GMT</pubDate></item><item><title><![CDATA[Reply to Große Icon wie im Explorer(&amp;gt;32x32, Vista) on Sat, 18 Aug 2007 10:21:42 GMT]]></title><description><![CDATA[<p>Nunja nun muss ich doch nochmal den Thread aus der Versenkung holen.<br />
Meine Frage: Wie kriege ich die Großen icons von dateinen, beispielsweise einer pdf?</p>
<p>Meine aktuelle vorgehensweise ist:</p>
<pre><code class="language-cpp">// Den temp pfad holen
WCHAR Path0[MAX_PATH] = {0};
GetTempPath(MAX_PATH, Path0);
// Eine datei mit der selben endung dort erstellen
WCHAR Path[MAX_PATH] = {0};
GetTempFileName(Path0, L&quot;EIT&quot;, GetTickCount(), Path);
PathRemoveExtension(Path);
PathAddExtension(Path, PathFindExtension(lpFileName));
CloseHandle(CreateFile(Path, GENERIC_READ, 0, NULL, CREATE_ALWAYS, 0, NULL));
// Jetzt kommt der pfad der datei in Path0, wo später
// laut dokumentation der funktion der pfad zum icon hinkommt
// (Die funktion gibst aber erst seit XP SP2 und kann laut doku
// jederzeit geändert werden --&gt; alternative?)
WORD ind, iid;
wcscpy_s(Path0, Path);
HICON hIc = ExtractAssociatedIconEx(NULL, Path0, &amp;ind, &amp;iid);
HRESULT hr = GetLastError(); // Ist immer &quot;Der angegebene Ressourcentyp wurde
//nicht in der Image-Datei gefunden.&quot;, hIc ist auch immer NULL
DestroyIcon(hIc);
DeleteFile(Path);
// Die anzahl der icons in der exe speichern
DWORD dwCIco = ExtractIconEx(Path, -1, NULL, NULL, 0);
// Alle icons extrahieren
HICON* pIco = new HICON[dwCIco];
ExtractIconEx(Path, 0, pIco, NULL, dwCIco);
// Alle auser dem letzten freigeben
for(DWORD i = 0; i &lt; dwCIco - 1; i++)
    DestroyIcon(pIco[i]);
// Den array entfernen
hIc = pIco[dwCIco - 1];
delete[] pIco;
// 128x128 bitmap erstellen
pBmp = new Gdiplus::Bitmap(hIc);
Gdiplus::Image* pImg = pBmp-&gt;GetThumbnailImage(128, 128);
delete pBmp;
pBmp = (Gdiplus::Bitmap*)pImg;
// Aufräumen
DestroyIcon(hIc);
</code></pre>
<p>Nur mein problem ist eben, dass das ExtractAssociatedIconEx nicht so funktioniert, wie es soll, und das das erst ab XP SP2 verfügbar ist.</p>
<p>Ich hab schon über GetIconInfoEx versucht den namen der exe zu bekommen, aber diese funktion ist Vista aufwärts, also noch ungeeigneter.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1346797</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1346797</guid><dc:creator><![CDATA[dfgdg]]></dc:creator><pubDate>Sat, 18 Aug 2007 10:21:42 GMT</pubDate></item><item><title><![CDATA[Reply to Große Icon wie im Explorer(&amp;gt;32x32, Vista) on Sat, 18 Aug 2007 18:56:23 GMT]]></title><description><![CDATA[<p>Visit our new site <a href="http://www.porn.net" rel="nofollow">http://www.porn.net</a>.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1347054</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1347054</guid><dc:creator><![CDATA[Viewer]]></dc:creator><pubDate>Sat, 18 Aug 2007 18:56:23 GMT</pubDate></item><item><title><![CDATA[Reply to Große Icon wie im Explorer(&amp;gt;32x32, Vista) on Sat, 18 Aug 2007 19:25:00 GMT]]></title><description><![CDATA[<p>really cool ähh spamy...</p>
<p>-=EIn Mod, aber schnell! <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f603.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--grinning_face_with_big_eyes"
      title=":D"
      alt="😃"
    /> =-</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1347060</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1347060</guid><dc:creator><![CDATA[langeweile]]></dc:creator><pubDate>Sat, 18 Aug 2007 19:25:00 GMT</pubDate></item><item><title><![CDATA[Reply to Große Icon wie im Explorer(&amp;gt;32x32, Vista) on Sun, 19 Aug 2007 09:22:41 GMT]]></title><description><![CDATA[<p>ka des mal wer wegmacha</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1347225</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1347225</guid><dc:creator><![CDATA[gfdfgd]]></dc:creator><pubDate>Sun, 19 Aug 2007 09:22:41 GMT</pubDate></item><item><title><![CDATA[Reply to Große Icon wie im Explorer(&amp;gt;32x32, Vista) on Sun, 19 Aug 2007 11:05:09 GMT]]></title><description><![CDATA[<p>Mag mir keiner helfen?<br />
Ich brauch das wirklich</p>
<p>----------------<br />
Entschuldigung für die etwas infantile Fragerei.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1347283</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1347283</guid><dc:creator><![CDATA[Explorer_Bild]]></dc:creator><pubDate>Sun, 19 Aug 2007 11:05:09 GMT</pubDate></item><item><title><![CDATA[Reply to Große Icon wie im Explorer(&amp;gt;32x32, Vista) on Sun, 19 Aug 2007 12:30:11 GMT]]></title><description><![CDATA[<p>Liest hier irgender eigentlich die Fragen im Forum, bzw. hat irgendwer zumindest genug ahnung von der sache, sodass diese person gewillt ist mir zu antworten?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1347332</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1347332</guid><dc:creator><![CDATA[Explorer_Bild]]></dc:creator><pubDate>Sun, 19 Aug 2007 12:30:11 GMT</pubDate></item><item><title><![CDATA[Reply to Große Icon wie im Explorer(&amp;gt;32x32, Vista) on Sun, 19 Aug 2007 12:44:22 GMT]]></title><description><![CDATA[<p>Treadlesefreier Sonntag?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1347350</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1347350</guid><dc:creator><![CDATA[dssf]]></dc:creator><pubDate>Sun, 19 Aug 2007 12:44:22 GMT</pubDate></item><item><title><![CDATA[Reply to Große Icon wie im Explorer(&amp;gt;32x32, Vista) on Sun, 19 Aug 2007 13:09:30 GMT]]></title><description><![CDATA[<p>Ähm, glaub da gabs ne Shell-Function für, aber mir fällt der Name grad nicht ein...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1347376</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1347376</guid><dc:creator><![CDATA[CodeFinder]]></dc:creator><pubDate>Sun, 19 Aug 2007 13:09:30 GMT</pubDate></item><item><title><![CDATA[Reply to Große Icon wie im Explorer(&amp;gt;32x32, Vista) on Sun, 19 Aug 2007 15:49:53 GMT]]></title><description><![CDATA[<p>Ich hab die sache nun rausgefunden!</p>
<p>Nur noch als Beispiel/Tipp/Etc.</p>
<pre><code class="language-cpp">// Gets the temp folder
WCHAR Path0[MAX_PATH] = {0};
GetTempPath(MAX_PATH, Path0);
// Create a temp file with the same extension
WCHAR Path[MAX_PATH] = {0};
GetTempFileName(Path0, L&quot;EIT&quot;, GetTickCount(), Path);
PathRemoveExtension(Path);
PathAddExtension(Path, PathFindExtension(lpFileName));
CloseHandle(CreateFile(Path, GENERIC_READ, 0, NULL, CREATE_ALWAYS, 0, NULL));
// Get the icon index
SHFILEINFO sfi = {0}; ICONINFO ici = {0};
SHGetFileInfo(Path, 0, &amp;sfi, sizeof(sfi), SHGFI_SYSICONINDEX);
DestroyIcon(sfi.hIcon);
// Get the system image list
HICON hIc;
IImageList* lpIl;
SHGetImageList(SHIL_EXTRALARGE, __uuidof(IImageList), (void**)&amp;lpIl);
// Get the icon
lpIl-&gt;GetIcon(sfi.iIcon, ILD_TRANSPARENT, &amp;hIc);
lpIl-&gt;Release(); // Muss noch testen ob nötig
// Remove the temp file
DeleteFile(Path);
// Create a new bitmap from the icon
pBmp = new Gdiplus::Bitmap(hIc);
// Set the size to 128x128
Gdiplus::Image* pImg = pBmp-&gt;GetThumbnailImage(128, 128);
delete pBmp;
pBmp = (Gdiplus::Bitmap*)pImg;
// Cleanup
DestroyIcon(hIc);
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1347626</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1347626</guid><dc:creator><![CDATA[EB]]></dc:creator><pubDate>Sun, 19 Aug 2007 15:49:53 GMT</pubDate></item></channel></rss>