<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Extract Application&#8217;s Own Icon in C#</title>
	<atom:link href="http://www.csharp411.com/extract-applications-own-icon-in-c/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.csharp411.com/extract-applications-own-icon-in-c/</link>
	<description>C# Development</description>
	<lastBuildDate>Fri, 03 Feb 2012 11:14:43 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: libing</title>
		<link>http://www.csharp411.com/extract-applications-own-icon-in-c/#comment-786</link>
		<dc:creator>libing</dc:creator>
		<pubDate>Fri, 27 May 2011 08:08:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.csharp411.com/extract-applications-own-icon-in-c/#comment-786</guid>
		<description>hi, i have just encountered the same problem of retriving multiple resolution icons from dll file. how can i control to choose the needed size and color depth in code?</description>
		<content:encoded><![CDATA[<p>hi, i have just encountered the same problem of retriving multiple resolution icons from dll file. how can i control to choose the needed size and color depth in code?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: firda</title>
		<link>http://www.csharp411.com/extract-applications-own-icon-in-c/#comment-785</link>
		<dc:creator>firda</dc:creator>
		<pubDate>Wed, 13 Apr 2011 12:02:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.csharp411.com/extract-applications-own-icon-in-c/#comment-785</guid>
		<description>Good, byt I still have one problem - multiple resolition icons. This seems to be extracting 32x32 icon only, but I want different 16x16 icon (as stretching the 32x32 to 16x16 looks ugly).

I have found a solution using .NET Reflector, some WinApi P/Invoke... well, the thing seems to be, that ExtractAssociatedIcon uses handles, Form.Icon/UpdateIcon uses Icon.ctor(Icon,int,int) to resize the icon to smaller version (to send it by WM_SETICON). This works for resource icons - the Icon.ctor looks for Icon.stream/data, but Icon from ExtractAssociatedIcon does not have the stream, only the handle and thus it&#039;s not working.</description>
		<content:encoded><![CDATA[<p>Good, byt I still have one problem &#8211; multiple resolition icons. This seems to be extracting 32&#215;32 icon only, but I want different 16&#215;16 icon (as stretching the 32&#215;32 to 16&#215;16 looks ugly).</p>
<p>I have found a solution using .NET Reflector, some WinApi P/Invoke&#8230; well, the thing seems to be, that ExtractAssociatedIcon uses handles, Form.Icon/UpdateIcon uses Icon.ctor(Icon,int,int) to resize the icon to smaller version (to send it by WM_SETICON). This works for resource icons &#8211; the Icon.ctor looks for Icon.stream/data, but Icon from ExtractAssociatedIcon does not have the stream, only the handle and thus it&#8217;s not working.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: cray</title>
		<link>http://www.csharp411.com/extract-applications-own-icon-in-c/#comment-784</link>
		<dc:creator>cray</dc:creator>
		<pubDate>Mon, 04 Jan 2010 00:24:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.csharp411.com/extract-applications-own-icon-in-c/#comment-784</guid>
		<description>I&#039;m searching for it a lot. Big Thanks!</description>
		<content:encoded><![CDATA[<p>I&#8217;m searching for it a lot. Big Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: nxThron</title>
		<link>http://www.csharp411.com/extract-applications-own-icon-in-c/#comment-783</link>
		<dc:creator>nxThron</dc:creator>
		<pubDate>Sun, 22 Mar 2009 06:02:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.csharp411.com/extract-applications-own-icon-in-c/#comment-783</guid>
		<description>Thanks for that hint! I was really getting worried that there was no easy way to do that in C#!

/nxT</description>
		<content:encoded><![CDATA[<p>Thanks for that hint! I was really getting worried that there was no easy way to do that in C#!</p>
<p>/nxT</p>
]]></content:encoded>
	</item>
</channel>
</rss>

