<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>WindowsSucks</title>
	<atom:link href="http://windowssucks.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://windowssucks.wordpress.com</link>
	<description>Windows sucks, but everything else sucks even more</description>
	<lastBuildDate>Thu, 26 Jan 2012 22:38:01 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='windowssucks.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://0.gravatar.com/blavatar/6acb9796ddb7843b016acb2eeb3f6ac1?s=96&#038;d=http%3A%2F%2Fs2.wp.com%2Fi%2Fbuttonw-com.png</url>
		<title>WindowsSucks</title>
		<link>http://windowssucks.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://windowssucks.wordpress.com/osd.xml" title="WindowsSucks" />
	<atom:link rel='hub' href='http://windowssucks.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Windows 8 (//build/ 2011) platform lies</title>
		<link>http://windowssucks.wordpress.com/2011/09/16/windows-8-build-2011-platform-lies/</link>
		<comments>http://windowssucks.wordpress.com/2011/09/16/windows-8-build-2011-platform-lies/#comments</comments>
		<pubDate>Thu, 15 Sep 2011 23:24:39 +0000</pubDate>
		<dc:creator>WindowsSucks</dc:creator>
				<category><![CDATA[Lies]]></category>
		<category><![CDATA[Win8]]></category>
		<category><![CDATA[WinNT]]></category>

		<guid isPermaLink="false">http://windowssucks.wordpress.com/?p=377</guid>
		<description><![CDATA[I&#8217;m sure you have seen this slide: The truth is probably closer to this: Tagged: Win8, WinNT<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=windowssucks.wordpress.com&amp;blog=9314223&amp;post=377&amp;subd=windowssucks&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m sure you have seen this slide:<br />
<a href="http://windowssucks.files.wordpress.com/2011/09/win8platformms.jpg"><img src="http://windowssucks.files.wordpress.com/2011/09/win8platformms.jpg?w=450&#038;h=235" alt="" title="//build/ 2011 Win8PlatformMS" width="450" height="235" class="aligncenter size-full wp-image-378" /></a></p>
<p>The truth is probably closer to this:<br />
<a href="http://windowssucks.files.wordpress.com/2011/09/win8platformreal.jpg"><img src="http://windowssucks.files.wordpress.com/2011/09/win8platformreal.jpg?w=450&#038;h=235" alt="" title="//build/ 2011 Win8PlatformReal" width="450" height="235" class="aligncenter size-full wp-image-379" /></a></p>
<br /> Tagged: <a href='http://windowssucks.wordpress.com/tag/win8/'>Win8</a>, <a href='http://windowssucks.wordpress.com/tag/winnt/'>WinNT</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/windowssucks.wordpress.com/377/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/windowssucks.wordpress.com/377/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/windowssucks.wordpress.com/377/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/windowssucks.wordpress.com/377/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/windowssucks.wordpress.com/377/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/windowssucks.wordpress.com/377/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/windowssucks.wordpress.com/377/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/windowssucks.wordpress.com/377/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/windowssucks.wordpress.com/377/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/windowssucks.wordpress.com/377/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/windowssucks.wordpress.com/377/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/windowssucks.wordpress.com/377/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/windowssucks.wordpress.com/377/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/windowssucks.wordpress.com/377/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=windowssucks.wordpress.com&amp;blog=9314223&amp;post=377&amp;subd=windowssucks&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://windowssucks.wordpress.com/2011/09/16/windows-8-build-2011-platform-lies/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/55a37744bf02f3ea63943529c01ccb64?s=96&#38;d=identicon&#38;r=X" medium="image">
			<media:title type="html">windowssucks</media:title>
		</media:content>

		<media:content url="http://windowssucks.files.wordpress.com/2011/09/win8platformms.jpg" medium="image">
			<media:title type="html">//build/ 2011 Win8PlatformMS</media:title>
		</media:content>

		<media:content url="http://windowssucks.files.wordpress.com/2011/09/win8platformreal.jpg" medium="image">
			<media:title type="html">//build/ 2011 Win8PlatformReal</media:title>
		</media:content>
	</item>
		<item>
		<title>Never means never, unless you are the taskbar</title>
		<link>http://windowssucks.wordpress.com/2011/09/14/never-means-never-unless-you-are-the-taskbar/</link>
		<comments>http://windowssucks.wordpress.com/2011/09/14/never-means-never-unless-you-are-the-taskbar/#comments</comments>
		<pubDate>Tue, 13 Sep 2011 23:11:37 +0000</pubDate>
		<dc:creator>WindowsSucks</dc:creator>
				<category><![CDATA[Windows]]></category>
		<category><![CDATA[Windows Bugs]]></category>
		<category><![CDATA[GUI]]></category>
		<category><![CDATA[Taskbar]]></category>
		<category><![CDATA[Win7]]></category>

		<guid isPermaLink="false">http://windowssucks.wordpress.com/?p=360</guid>
		<description><![CDATA[I like to keep my taskbar buttons grouped a certain way but explorer forces per application combined groups even when you tell it never to combine! Tagged: GUI, Taskbar, Win7<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=windowssucks.wordpress.com&amp;blog=9314223&amp;post=360&amp;subd=windowssucks&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I like to keep my taskbar buttons grouped a certain way but explorer forces per application combined groups even when you tell it never to combine!</p>
<p><a href="http://windowssucks.files.wordpress.com/2011/09/win7suckybar_nevercombine.png" class="wp-image-362"><img src="http://windowssucks.files.wordpress.com/2011/09/win7suckybar_nevercombinecropped.png?w=450" alt="" title="Win7 Taskbar (Never Combine) [Cropped]" class="aligncenter size-full wp-image-361" /></a></p>
<br /> Tagged: <a href='http://windowssucks.wordpress.com/tag/gui/'>GUI</a>, <a href='http://windowssucks.wordpress.com/tag/taskbar/'>Taskbar</a>, <a href='http://windowssucks.wordpress.com/tag/win7/'>Win7</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/windowssucks.wordpress.com/360/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/windowssucks.wordpress.com/360/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/windowssucks.wordpress.com/360/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/windowssucks.wordpress.com/360/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/windowssucks.wordpress.com/360/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/windowssucks.wordpress.com/360/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/windowssucks.wordpress.com/360/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/windowssucks.wordpress.com/360/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/windowssucks.wordpress.com/360/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/windowssucks.wordpress.com/360/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/windowssucks.wordpress.com/360/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/windowssucks.wordpress.com/360/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/windowssucks.wordpress.com/360/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/windowssucks.wordpress.com/360/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=windowssucks.wordpress.com&amp;blog=9314223&amp;post=360&amp;subd=windowssucks&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://windowssucks.wordpress.com/2011/09/14/never-means-never-unless-you-are-the-taskbar/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/55a37744bf02f3ea63943529c01ccb64?s=96&#38;d=identicon&#38;r=X" medium="image">
			<media:title type="html">windowssucks</media:title>
		</media:content>

		<media:content url="http://windowssucks.files.wordpress.com/2011/09/win7suckybar_nevercombinecropped.png" medium="image">
			<media:title type="html">Win7 Taskbar (Never Combine) [Cropped]</media:title>
		</media:content>
	</item>
		<item>
		<title>The DWM hates the paparazzi</title>
		<link>http://windowssucks.wordpress.com/2011/08/24/the-dwm-hates-the-paparazzi/</link>
		<comments>http://windowssucks.wordpress.com/2011/08/24/the-dwm-hates-the-paparazzi/#comments</comments>
		<pubDate>Wed, 24 Aug 2011 21:54:50 +0000</pubDate>
		<dc:creator>WindowsSucks</dc:creator>
				<category><![CDATA[Where Is the Love?]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[Aero]]></category>
		<category><![CDATA[DWM]]></category>
		<category><![CDATA[GUI]]></category>
		<category><![CDATA[Win8]]></category>

		<guid isPermaLink="false">http://windowssucks.wordpress.com/?p=349</guid>
		<description><![CDATA[The windows team is probably working on the third generation of the DWM but the screen shot capability is still in the dark ages, just take a look at the B8 blog: A third-party tool should not be required to create a simple screen shot of a window in 2011. Tagged: Aero, DWM, GUI, Win8<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=windowssucks.wordpress.com&amp;blog=9314223&amp;post=349&amp;subd=windowssucks&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>The windows team is probably working on the third generation of the <a href="http://msdn.microsoft.com/en-us/library/aa969540.aspx" title="Desktop Window Manager" rel="noreferrer">DWM</a> but the screen shot capability is still in the dark ages, just take a look at the <a href="http://blogs.msdn.com/b/b8/archive/2011/08/23/improving-our-file-management-basics-copy-move-rename-and-delete.aspx" title="Building Windows 8 blog">B8 blog</a>:</p>
<p><img src="http://windowssucks.files.wordpress.com/2011/08/b8blogshellcopycropped.png?w=450" title="MS B8 blog; shell copy conflict" class="aligncenter size-full wp-image-351" /></p>
<p>A <a href="http://www.windowclippings.com/examples" rel="noreferrer">third-party tool</a> should not be required to create a simple screen shot of a window in 2011.</p>
<br /> Tagged: <a href='http://windowssucks.wordpress.com/tag/aero/'>Aero</a>, <a href='http://windowssucks.wordpress.com/tag/dwm/'>DWM</a>, <a href='http://windowssucks.wordpress.com/tag/gui/'>GUI</a>, <a href='http://windowssucks.wordpress.com/tag/win8/'>Win8</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/windowssucks.wordpress.com/349/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/windowssucks.wordpress.com/349/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/windowssucks.wordpress.com/349/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/windowssucks.wordpress.com/349/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/windowssucks.wordpress.com/349/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/windowssucks.wordpress.com/349/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/windowssucks.wordpress.com/349/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/windowssucks.wordpress.com/349/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/windowssucks.wordpress.com/349/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/windowssucks.wordpress.com/349/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/windowssucks.wordpress.com/349/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/windowssucks.wordpress.com/349/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/windowssucks.wordpress.com/349/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/windowssucks.wordpress.com/349/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=windowssucks.wordpress.com&amp;blog=9314223&amp;post=349&amp;subd=windowssucks&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://windowssucks.wordpress.com/2011/08/24/the-dwm-hates-the-paparazzi/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/55a37744bf02f3ea63943529c01ccb64?s=96&#38;d=identicon&#38;r=X" medium="image">
			<media:title type="html">windowssucks</media:title>
		</media:content>

		<media:content url="http://windowssucks.files.wordpress.com/2011/08/b8blogshellcopycropped.png" medium="image">
			<media:title type="html">MS B8 blog; shell copy conflict</media:title>
		</media:content>
	</item>
		<item>
		<title>Somewhat automatic flash update</title>
		<link>http://windowssucks.wordpress.com/2011/08/17/somewhat-automatic-flash-update/</link>
		<comments>http://windowssucks.wordpress.com/2011/08/17/somewhat-automatic-flash-update/#comments</comments>
		<pubDate>Wed, 17 Aug 2011 21:02:55 +0000</pubDate>
		<dc:creator>WindowsSucks</dc:creator>
				<category><![CDATA[Where Is the Love?]]></category>
		<category><![CDATA[Adobe]]></category>
		<category><![CDATA[Third-party]]></category>

		<guid isPermaLink="false">http://windowssucks.wordpress.com/?p=309</guid>
		<description><![CDATA[How many times are you going to force me to click this Adobe? ..and this? Giving the user some control over the auto update process is good, but one button click should be enough and don&#8217;t force me to agree to the same license every time! (I assume the license is the same, we all [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=windowssucks.wordpress.com&amp;blog=9314223&amp;post=309&amp;subd=windowssucks&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>How many times are you going to force me to click this Adobe?</p>
<p><a href="http://windowssucks.files.wordpress.com/2011/08/flashupdateintro.png"><img src="http://windowssucks.files.wordpress.com/2011/08/flashupdateintro.png?w=450" alt="" title="Flash update notify" class="aligncenter size-full wp-image-345" /></a></p>
<p>..and this?</p>
<p><a href="http://windowssucks.files.wordpress.com/2011/08/flashupdate.png"><img src="http://windowssucks.files.wordpress.com/2011/08/flashupdate.png?w=450" alt="" title="Flash installer" class="aligncenter size-full" /></a></p>
<p>Giving the user some control over the auto update process is good, but one button click should be enough and don&#8217;t force me to agree to the same license every time! (I assume the license is the same, we all know nobody reads those anyway)</p>
<br /> Tagged: <a href='http://windowssucks.wordpress.com/tag/adobe/'>Adobe</a>, <a href='http://windowssucks.wordpress.com/tag/third-party/'>Third-party</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/windowssucks.wordpress.com/309/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/windowssucks.wordpress.com/309/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/windowssucks.wordpress.com/309/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/windowssucks.wordpress.com/309/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/windowssucks.wordpress.com/309/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/windowssucks.wordpress.com/309/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/windowssucks.wordpress.com/309/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/windowssucks.wordpress.com/309/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/windowssucks.wordpress.com/309/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/windowssucks.wordpress.com/309/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/windowssucks.wordpress.com/309/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/windowssucks.wordpress.com/309/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/windowssucks.wordpress.com/309/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/windowssucks.wordpress.com/309/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=windowssucks.wordpress.com&amp;blog=9314223&amp;post=309&amp;subd=windowssucks&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://windowssucks.wordpress.com/2011/08/17/somewhat-automatic-flash-update/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/55a37744bf02f3ea63943529c01ccb64?s=96&#38;d=identicon&#38;r=X" medium="image">
			<media:title type="html">windowssucks</media:title>
		</media:content>

		<media:content url="http://windowssucks.files.wordpress.com/2011/08/flashupdateintro.png" medium="image">
			<media:title type="html">Flash update notify</media:title>
		</media:content>

		<media:content url="http://windowssucks.files.wordpress.com/2011/08/flashupdate.png" medium="image">
			<media:title type="html">Flash installer</media:title>
		</media:content>
	</item>
		<item>
		<title>The application directory bundle shell hack</title>
		<link>http://windowssucks.wordpress.com/2011/08/14/the-application-directory-bundle-shell-hack/</link>
		<comments>http://windowssucks.wordpress.com/2011/08/14/the-application-directory-bundle-shell-hack/#comments</comments>
		<pubDate>Sun, 14 Aug 2011 02:24:29 +0000</pubDate>
		<dc:creator>WindowsSucks</dc:creator>
				<category><![CDATA[Tips & Tricks]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[Explorer]]></category>
		<category><![CDATA[Eye Candy]]></category>
		<category><![CDATA[Shell Extensions]]></category>
		<category><![CDATA[Win7]]></category>

		<guid isPermaLink="false">http://windowssucks.wordpress.com/?p=314</guid>
		<description><![CDATA[In the words of the great Raymond Chen: In Windows, the directory is the application bundle but that is a poor excuse for the lack of some kind of application bundle or fat binary support. I usually don&#8217;t care about eye candy but it would be nice (and a fun experiment) if we could get [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=windowssucks.wordpress.com&amp;blog=9314223&amp;post=314&amp;subd=windowssucks&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>In the words of the great <a href="http://blogs.msdn.com/b/oldnewthing/archive/2011/06/20/10176772.aspx" title="In Windows, the directory is the application bundle">Raymond Chen</a>: <q>In Windows, the directory is the application bundle</q> but that is a poor excuse for the lack of some kind of application bundle or fat binary support. I usually don&#8217;t care about eye candy but it would be nice (and a fun experiment) if we could get a application directory to look and <strong>act</strong> like a <a href="http://support.apple.com/kb/HT2476" title="Mac 101: Applications, files, and folders">real application bundle</a>.<span id="more-314"></span></p>
<p>Folder icon customization has been around for years but desktop.ini got a new feature in Win7; you can <a href="http://msdn.microsoft.com/en-us/library/cc144171%28v=VS.85%29.aspx#custom_verbs_desktop" title="MSDN: Creating Shortcut Menu Handlers">add custom verbs</a> to the context menu. This will enable us to take over the default action and do whatever we want when the folder is double clicked!</p>
<p><a href="http://windowssucks.files.wordpress.com/2011/08/execappfolder-tweak-full.png"><img src="http://windowssucks.files.wordpress.com/2011/08/execappfolder-tweak-full.png?w=450&#038;h=246" width="450" height="246" class="aligncenter size-full wp-image-322" /></a></p>
<p>We begin with a pretty standard looking desktop.ini:<br />
<pre class="brush: plain; gutter: false;">
[.ShellClassInfo]
ConfirmFileOp=0
DirectoryClass=WndSks.ExecAppFolder
IconIndex=0
IconFile=app\foobar2000.exe
InfoTip=foobar2000
ExecAppFolder:Cmd=&quot;%%\app\foobar2000.exe&quot;
</pre></p>
<p>DirectoryClass is used to specify the ProgId with our special verb and ExecAppFolder:Cmd is a custom entry I made up and it contains the command we actually want to execute (%% will be replaced by the folder path)</p>
<p>Next up is the registry entry for our ProgId:<br />
<pre class="brush: plain; gutter: false;">
Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\WndSks.ExecAppFolder]
&quot;CanUseForDirectory&quot;=hex:

[HKEY_CLASSES_ROOT\WndSks.ExecAppFolder\shell]
@=&quot;RunAppFolder&quot;

[HKEY_CLASSES_ROOT\WndSks.ExecAppFolder\shell\RunAppFolder]
@=&quot;Run Application&quot;

[HKEY_CLASSES_ROOT\WndSks.ExecAppFolder\shell\RunAppFolder\command]
@=hex(2):77,00,73,00,63,00,72,00,69,00,70,00,74,00,20,00,22,00,25,00,53,00,79,\
  00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,25,00,5c,00,52,00,65,00,\
  73,00,6f,00,75,00,72,00,63,00,65,00,73,00,5c,00,57,00,6e,00,64,00,53,00,6b,\
  00,73,00,2e,00,45,00,78,00,65,00,63,00,41,00,70,00,70,00,46,00,6f,00,6c,00,\
  64,00,65,00,72,00,2e,00,77,00,73,00,66,00,22,00,20,00,22,00,25,00,31,00,22,\
  00,00,00
</pre></p>
<p>The hex goo is just the string <code>wscript "%SystemRoot%\Resources\WndSks.ExecAppFolder.wsf" "%1"</code> and this little WSH script is the final piece of the puzzle:<br />
<pre class="brush: jscript;">
&lt;?xml version=&quot;1.0&quot;?&gt;&lt;package&gt;&lt;job&gt;&lt;script language=&quot;JScript&quot;&gt;&lt;![CDATA[
var WS=WScript,
WSh=WS.CreateObject(&quot;WScript.Shell&quot;),
FSO=WS.CreateObject(&quot;Scripting.FileSystemObject&quot;),
a=WS.Arguments;

function IniGetValFromLines(lines,sec,name)
{
	// WSH does not have INI support?
	// We don't need true INI handling so we just fake it
	beg=lines.indexOf(name+&quot;=&quot;);
	if (-1!=beg) {
		beg+=name.length+1;
		return lines.substr(beg).split(&quot;\r&quot;,2)[0].split(&quot;\n&quot;,2)[0];	
	}
	return null;
}

if (1==a.Length) {
	appfldr=a(0);
	inilines=FSO.OpenTextFile(FSO.BuildPath(appfldr,&quot;desktop.ini&quot;),1,-2).ReadAll();
	cmd=IniGetValFromLines(inilines,&quot;.ShellClassInfo&quot;,&quot;ExecAppFolder:Cmd&quot;);
	if (cmd) {
		cmd=cmd.replace(&quot;%%&quot;,appfldr);
		WSh.Run(cmd,5);
	}
}
]]&gt;&lt;/script&gt;&lt;/job&gt;&lt;/package&gt;</pre></p>
<p>I used to store this kind of shell stuff in %WINDIR%\system32\ShellExt but I don&#8217;t think that folder is used much these days so I just stuck it in Resources to get it out of the system root.</p>
<p>For the icon handling to work you need to make the folder read only (or system) and +s+h on desktop.ini to make it superhidden.</p>
<p>To install this as a single user you should replace HKEY_CLASSES_ROOT with HKEY_CURRENT_USER\Software\Classes and store the .wsf somewhere in your profile.</p>
<p>It should be noted that <abbr title="Drag and Drop">D&amp;D</abbr> does not work. It might be possible to work around this by creating a DropHandler but then this would not be a &#8220;Notepad only&#8221; hack <img src='http://s1.wp.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>It might even be possible to implement the menu and double click handling on older windows versions by using the CLSID and/or UICLSID hooks and some horrible hacks in the COM namespace handling but for now this is Win7+ only&#8230;</p>
<br /> Tagged: <a href='http://windowssucks.wordpress.com/tag/explorer/'>Explorer</a>, <a href='http://windowssucks.wordpress.com/tag/eye-candy/'>Eye Candy</a>, <a href='http://windowssucks.wordpress.com/tag/shell-extensions/'>Shell Extensions</a>, <a href='http://windowssucks.wordpress.com/tag/win7/'>Win7</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/windowssucks.wordpress.com/314/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/windowssucks.wordpress.com/314/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/windowssucks.wordpress.com/314/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/windowssucks.wordpress.com/314/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/windowssucks.wordpress.com/314/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/windowssucks.wordpress.com/314/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/windowssucks.wordpress.com/314/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/windowssucks.wordpress.com/314/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/windowssucks.wordpress.com/314/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/windowssucks.wordpress.com/314/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/windowssucks.wordpress.com/314/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/windowssucks.wordpress.com/314/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/windowssucks.wordpress.com/314/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/windowssucks.wordpress.com/314/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=windowssucks.wordpress.com&amp;blog=9314223&amp;post=314&amp;subd=windowssucks&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://windowssucks.wordpress.com/2011/08/14/the-application-directory-bundle-shell-hack/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/55a37744bf02f3ea63943529c01ccb64?s=96&#38;d=identicon&#38;r=X" medium="image">
			<media:title type="html">windowssucks</media:title>
		</media:content>

		<media:content url="http://windowssucks.files.wordpress.com/2011/08/execappfolder-tweak-full.png" medium="image" />
	</item>
		<item>
		<title>UNC + \\?\ means more work for you</title>
		<link>http://windowssucks.wordpress.com/2011/05/09/extended-length-prefix-unc-paths/</link>
		<comments>http://windowssucks.wordpress.com/2011/05/09/extended-length-prefix-unc-paths/#comments</comments>
		<pubDate>Mon, 09 May 2011 18:43:27 +0000</pubDate>
		<dc:creator>WindowsSucks</dc:creator>
				<category><![CDATA[Windows]]></category>
		<category><![CDATA[Filesystems]]></category>
		<category><![CDATA[UNC]]></category>
		<category><![CDATA[windows]]></category>
		<category><![CDATA[WinNT]]></category>

		<guid isPermaLink="false">http://windowssucks.wordpress.com/?p=301</guid>
		<description><![CDATA[Working with extended-length paths is bad enough on its own, but at least they are easy to display to the user: Until you add UNC paths into the the mix that is&#8230; If the format was \\?\UNC\\server\share, MyPathSkipXLPrefix could handle it, but sadly it is not, the format is \\?\UNC\server\share so you need to copy [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=windowssucks.wordpress.com&amp;blog=9314223&amp;post=301&amp;subd=windowssucks&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Working with <a href="http://msdn.microsoft.com/en-us/library/aa365247%28v=vs.85%29.aspx#maxpath" title="MSDN: Naming Files, Paths, and Namespaces">extended-length paths</a> is bad enough on its own, but at least they are easy to display to the user:</p>
<p><pre class="brush: cpp; light: true;">
printf(&quot;%S\n&quot;,MyPathSkipXLPrefix(PathBuffer));
</pre></p>
<p>Until you add UNC paths into the the mix that is&#8230;<br />
<span id="more-301"></span><br />
If the format was \\?\UNC\\server\share, MyPathSkipXLPrefix could handle it, but sadly it is not, the format is \\?\UNC\server\share so you need to copy the buffer and change the C to \ before you can display it. </p>
<br /> Tagged: <a href='http://windowssucks.wordpress.com/tag/filesystems/'>Filesystems</a>, <a href='http://windowssucks.wordpress.com/tag/unc/'>UNC</a>, <a href='http://windowssucks.wordpress.com/tag/windows/'>windows</a>, <a href='http://windowssucks.wordpress.com/tag/winnt/'>WinNT</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/windowssucks.wordpress.com/301/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/windowssucks.wordpress.com/301/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/windowssucks.wordpress.com/301/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/windowssucks.wordpress.com/301/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/windowssucks.wordpress.com/301/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/windowssucks.wordpress.com/301/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/windowssucks.wordpress.com/301/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/windowssucks.wordpress.com/301/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/windowssucks.wordpress.com/301/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/windowssucks.wordpress.com/301/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/windowssucks.wordpress.com/301/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/windowssucks.wordpress.com/301/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/windowssucks.wordpress.com/301/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/windowssucks.wordpress.com/301/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=windowssucks.wordpress.com&amp;blog=9314223&amp;post=301&amp;subd=windowssucks&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://windowssucks.wordpress.com/2011/05/09/extended-length-prefix-unc-paths/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/55a37744bf02f3ea63943529c01ccb64?s=96&#38;d=identicon&#38;r=X" medium="image">
			<media:title type="html">windowssucks</media:title>
		</media:content>
	</item>
		<item>
		<title>Firefox 4, no thanks</title>
		<link>http://windowssucks.wordpress.com/2011/04/27/firefox-4-no-thanks/</link>
		<comments>http://windowssucks.wordpress.com/2011/04/27/firefox-4-no-thanks/#comments</comments>
		<pubDate>Wed, 27 Apr 2011 11:42:18 +0000</pubDate>
		<dc:creator>WindowsSucks</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Firefox]]></category>
		<category><![CDATA[GUI]]></category>
		<category><![CDATA[Third-party]]></category>

		<guid isPermaLink="false">http://windowssucks.wordpress.com/?p=284</guid>
		<description><![CDATA[The Firefox 4 upgrade campaign is under way, but since I don&#8217;t like what they have done with the UI I&#8217;ll be sticking with 3.6 for as long as possible. They removed the statusbar with it it&#8217;s handy download progress indicator and replaced it with another bar that looks exactly like the bar it replaces, [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=windowssucks.wordpress.com&amp;blog=9314223&amp;post=284&amp;subd=windowssucks&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>The Firefox 4 <a href="http://janefinette.com/post/4814581757/firefox-4-upgrade-campaigns-getting-under-way">upgrade campaign</a> is under way, but since I don&#8217;t like what they have done with the UI I&#8217;ll be sticking with 3.6 for as long as possible.</p>
<p>They removed the statusbar with it it&#8217;s handy download progress indicator and replaced it with another bar that looks exactly like the bar it replaces, only with less features. Why not just hide the statusbar by default?</p>
<p><img src="http://windowssucks.files.wordpress.com/2011/04/statusbardl.png?w=450" alt="FF3 statusbar download" class="aligncenter size-full wp-image-285" /></p>
<p>Not only did they remove useful features, they now ignore the visual styles and don&#8217;t care about the native look on XP:</p>
<p><img src="http://windowssucks.files.wordpress.com/2011/04/36-1.png?w=450" /></p>
<p><img src="http://windowssucks.files.wordpress.com/2011/04/40-1.png?w=450" /></p>
<p>&#8230;and don&#8217;t get me started on the tabs-on-top fad.</p>
<br /> Tagged: <a href='http://windowssucks.wordpress.com/tag/firefox/'>Firefox</a>, <a href='http://windowssucks.wordpress.com/tag/gui/'>GUI</a>, <a href='http://windowssucks.wordpress.com/tag/third-party/'>Third-party</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/windowssucks.wordpress.com/284/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/windowssucks.wordpress.com/284/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/windowssucks.wordpress.com/284/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/windowssucks.wordpress.com/284/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/windowssucks.wordpress.com/284/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/windowssucks.wordpress.com/284/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/windowssucks.wordpress.com/284/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/windowssucks.wordpress.com/284/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/windowssucks.wordpress.com/284/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/windowssucks.wordpress.com/284/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/windowssucks.wordpress.com/284/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/windowssucks.wordpress.com/284/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/windowssucks.wordpress.com/284/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/windowssucks.wordpress.com/284/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=windowssucks.wordpress.com&amp;blog=9314223&amp;post=284&amp;subd=windowssucks&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://windowssucks.wordpress.com/2011/04/27/firefox-4-no-thanks/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/55a37744bf02f3ea63943529c01ccb64?s=96&#38;d=identicon&#38;r=X" medium="image">
			<media:title type="html">windowssucks</media:title>
		</media:content>

		<media:content url="http://windowssucks.files.wordpress.com/2011/04/statusbardl.png" medium="image">
			<media:title type="html">FF3 statusbar download</media:title>
		</media:content>

		<media:content url="http://windowssucks.files.wordpress.com/2011/04/36-1.png" medium="image" />

		<media:content url="http://windowssucks.files.wordpress.com/2011/04/40-1.png" medium="image" />
	</item>
		<item>
		<title>Run, script, run!</title>
		<link>http://windowssucks.wordpress.com/2011/03/01/run-script-run/</link>
		<comments>http://windowssucks.wordpress.com/2011/03/01/run-script-run/#comments</comments>
		<pubDate>Tue, 01 Mar 2011 10:11:19 +0000</pubDate>
		<dc:creator>WindowsSucks</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[Tips & Tricks]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[Scripting]]></category>
		<category><![CDATA[WSH]]></category>

		<guid isPermaLink="false">http://windowssucks.wordpress.com/?p=231</guid>
		<description><![CDATA[You would think a scripting engine that has a separate console version (cscript.exe) would allow you to execute an external command/application and handle basic stdout output for you with a simple command, but sadly this is not the case. WScript.Shell&#8217;s Run method uses ShellExecute and unsurprisingly so does Shell.Application&#8217;s ShellExecute, that just leaves us with [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=windowssucks.wordpress.com&amp;blog=9314223&amp;post=231&amp;subd=windowssucks&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>You would think a scripting engine that has a separate console version (cscript.exe) would allow you to execute an external command/application and handle basic stdout output for you with a simple command, but sadly this is not the case. WScript.Shell&#8217;s <a href="http://msdn.microsoft.com/en-us/library/d5fk67ky.aspx">Run method</a> uses ShellExecute and unsurprisingly so does Shell.Application&#8217;s <a href="http://msdn.microsoft.com/en-us/library/bb774148%28v=vs.85%29.aspx">ShellExecute</a>, that just leaves us with <a href="http://msdn.microsoft.com/en-us/library/ateytk4a%28v=vs.85%29.aspx">Exec</a>.</p>
<p>This is what MSDN has to say about this method:<br />
<blockquote>Runs an application in a child command-shell, providing access to the StdIn/StdOut/StdErr streams.</p></blockquote>
<p>Sounds good right?<br />
<span id="more-231"></span><br />
The MSDN example code contains this line: <code>Set oExec = WshShell.Exec("calc")<br />
</code><br />
Wait, why are they executing a GUI application in what should be a example about running commands in a child shell? Could it be because Exec does not hook up the child process&#8217;s streams to the console created by cscript? </p>
<p>While it is handy to have access to the streams in the script so you can parse the output, sometimes you just want to execute something and print the output to the &#8220;real&#8221; stdout. Calling CreateProcess on a terminal application in native code is actually less work than doing it in a script! I&#8217;m not going to post the 6 lines it takes in win32, but here is my take on the WSH/VB version:<br />
<pre class="brush: vb;">
Sub PipeTextStream(ByRef si,ByRef so)
Do Until si.AtEndOfStream
	so.Write(si.Read(1))
Loop
End Sub

Function ConsoleExec(cmd)
Set sh = WScript.CreateObject(&quot;WScript.Shell&quot;)
On Error Resume Next 
Set exec =  sh.Exec(cmd)
If Err.Number &lt;&gt; 0 Then
	ConsoleExec = Err.Number
	Exit Function
End If
On Error Goto 0
Do While exec.Status = 0
	WScript.Sleep 100
	PipeTextStream exec.StdOut,WScript.StdOut
	PipeTextStream exec.StdErr,WScript.StdErr
Loop
ConsoleExec = exec.ExitCode
End Function
</pre></p>
<p><code>call ConsoleExec("ping localhost")</code></p>
<p>This does not work for internal cmd.exe commands like DIR and DEL, for that you would have to execute %comspec% /c &#8230;</p>
<br /> Tagged: <a href='http://windowssucks.wordpress.com/tag/code-2/'>code</a>, <a href='http://windowssucks.wordpress.com/tag/scripting/'>Scripting</a>, <a href='http://windowssucks.wordpress.com/tag/wsh/'>WSH</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/windowssucks.wordpress.com/231/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/windowssucks.wordpress.com/231/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/windowssucks.wordpress.com/231/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/windowssucks.wordpress.com/231/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/windowssucks.wordpress.com/231/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/windowssucks.wordpress.com/231/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/windowssucks.wordpress.com/231/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/windowssucks.wordpress.com/231/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/windowssucks.wordpress.com/231/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/windowssucks.wordpress.com/231/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/windowssucks.wordpress.com/231/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/windowssucks.wordpress.com/231/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/windowssucks.wordpress.com/231/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/windowssucks.wordpress.com/231/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=windowssucks.wordpress.com&amp;blog=9314223&amp;post=231&amp;subd=windowssucks&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://windowssucks.wordpress.com/2011/03/01/run-script-run/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/55a37744bf02f3ea63943529c01ccb64?s=96&#38;d=identicon&#38;r=X" medium="image">
			<media:title type="html">windowssucks</media:title>
		</media:content>
	</item>
		<item>
		<title>UAC, are you high?</title>
		<link>http://windowssucks.wordpress.com/2011/02/07/uac-are-you-high/</link>
		<comments>http://windowssucks.wordpress.com/2011/02/07/uac-are-you-high/#comments</comments>
		<pubDate>Mon, 07 Feb 2011 19:11:11 +0000</pubDate>
		<dc:creator>WindowsSucks</dc:creator>
				<category><![CDATA[Bugs]]></category>
		<category><![CDATA[UAC]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[Windows Bugs]]></category>
		<category><![CDATA[LUA]]></category>
		<category><![CDATA[Vista]]></category>
		<category><![CDATA[Win7]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://windowssucks.wordpress.com/?p=196</guid>
		<description><![CDATA[MSDN has a Starting Low Integrity Processes sample that creates a process with a Low IL and this works fine if the parent is running at Medium IL, but if the parent is running at High IL, UAC elevation no longer works. (The sample code does not talk about High IL parent, only Medium IL [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=windowssucks.wordpress.com&amp;blog=9314223&amp;post=196&amp;subd=windowssucks&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>MSDN has a <a href="http://msdn.microsoft.com/en-us/library/Bb250462#dse_stlip">Starting Low Integrity Processes</a> sample that creates a process with a Low <a href="http://en.wikipedia.org/wiki/Mandatory_Integrity_Control">IL</a> and this works fine if the parent is running at Medium IL, but if the parent is running at High IL, UAC elevation no longer works. (The sample code does not talk about High IL parent, only Medium IL parents)</p>
<p>Windows does not seem to take the Integrity Level into account when checking for admin rights:<br />
<a href="http://windowssucks.files.wordpress.com/2011/01/uacareyouhigh.png"><img src="http://windowssucks.files.wordpress.com/2011/01/uacareyouhigh.png?w=450" alt="UAC Low IL Admin" title="UAC Low IL Admin" class="aligncenter size-full wp-image-200" /></a><br />
When requesting elevation, it does not seem to check if Current IL &lt; High IL and just assumes that any token that has a non-deny administrators group SID is elevated and starts the process with the wrong IL when it really should show the consent UI and force the IL to be &gt;= High IL on the new process. Once we are in this state (Non-deny admin. group SID and IL &lt; 0&#215;3000) there is no way for us to elevate a child process or to get a higher IL!</p>
<p>It would probably come as a surprise to most people that the simple reg.exe command fails when the console has the &quot;Administrator: &quot; prefix and most admin check methods (<a href="http://msdn.microsoft.com/en-us/library/bb776463">IsUserAnAdmin()</a>, <a href="http://msdn.microsoft.com/en-us/library/bb530718">TokenElevationType=TokenElevationTypeFull</a> and <a href="http://msdn.microsoft.com/en-us/library/bb530717">TokenElevation: TokenIsElevated!=0</a>) indicate that you are elevated! IsUserAnAdmin is only documented to check group membership and is a pre Vista API, but the other two are elevated token/privileges specific so either my definition of elevated is wrong, or there are some major bugs with the IL handling.</p>
<br /> Tagged: <a href='http://windowssucks.wordpress.com/tag/bugs/'>Bugs</a>, <a href='http://windowssucks.wordpress.com/tag/lua/'>LUA</a>, <a href='http://windowssucks.wordpress.com/tag/uac/'>UAC</a>, <a href='http://windowssucks.wordpress.com/tag/vista/'>Vista</a>, <a href='http://windowssucks.wordpress.com/tag/win7/'>Win7</a>, <a href='http://windowssucks.wordpress.com/tag/windows/'>windows</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/windowssucks.wordpress.com/196/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/windowssucks.wordpress.com/196/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/windowssucks.wordpress.com/196/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/windowssucks.wordpress.com/196/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/windowssucks.wordpress.com/196/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/windowssucks.wordpress.com/196/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/windowssucks.wordpress.com/196/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/windowssucks.wordpress.com/196/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/windowssucks.wordpress.com/196/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/windowssucks.wordpress.com/196/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/windowssucks.wordpress.com/196/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/windowssucks.wordpress.com/196/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/windowssucks.wordpress.com/196/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/windowssucks.wordpress.com/196/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=windowssucks.wordpress.com&amp;blog=9314223&amp;post=196&amp;subd=windowssucks&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://windowssucks.wordpress.com/2011/02/07/uac-are-you-high/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/55a37744bf02f3ea63943529c01ccb64?s=96&#38;d=identicon&#38;r=X" medium="image">
			<media:title type="html">windowssucks</media:title>
		</media:content>

		<media:content url="http://windowssucks.files.wordpress.com/2011/01/uacareyouhigh.png" medium="image">
			<media:title type="html">UAC Low IL Admin</media:title>
		</media:content>
	</item>
		<item>
		<title>UAC, RunAs silent fail?</title>
		<link>http://windowssucks.wordpress.com/2011/01/26/uac-runas-silent-fail/</link>
		<comments>http://windowssucks.wordpress.com/2011/01/26/uac-runas-silent-fail/#comments</comments>
		<pubDate>Wed, 26 Jan 2011 22:25:02 +0000</pubDate>
		<dc:creator>WindowsSucks</dc:creator>
				<category><![CDATA[Bugs]]></category>
		<category><![CDATA[UAC]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[Windows Bugs]]></category>
		<category><![CDATA[LUA]]></category>
		<category><![CDATA[Vista]]></category>
		<category><![CDATA[Win7]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://windowssucks.wordpress.com/?p=194</guid>
		<description><![CDATA[When running as a standard user with UAC disabled, choosing &#8220;Run as administrator&#8221; from the context menu is broken! Not showing the consent UI is understandable since UAC is not &#8220;hooked&#8221; into the system, but just starting the process non-elevated without a warning dialog is just wrong. When the runas verb is used with ShellExecute [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=windowssucks.wordpress.com&amp;blog=9314223&amp;post=194&amp;subd=windowssucks&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>When running as a standard user with UAC disabled, choosing &#8220;Run as administrator&#8221; from the context menu is broken!</p>
<p><a href="http://en.wikipedia.org/wiki/Silent_Bob"><img src="http://windowssucks.files.wordpress.com/2011/01/silent-bob-ooo.jpg?w=450" alt="Silent Bob" title="Silent Bob"   class="aligncenter size-full wp-image-215" style="border:1px solid black;" /></a></p>
<p>Not showing the consent UI is understandable since UAC is not &#8220;hooked&#8221; into the system, but just starting the process non-elevated without a warning dialog is just wrong. When the runas verb is used with ShellExecute and UAC is not enabled it should just show the old Run As dialog used in Windows 2000/XP/2003.</p>
<br /> Tagged: <a href='http://windowssucks.wordpress.com/tag/bugs/'>Bugs</a>, <a href='http://windowssucks.wordpress.com/tag/lua/'>LUA</a>, <a href='http://windowssucks.wordpress.com/tag/uac/'>UAC</a>, <a href='http://windowssucks.wordpress.com/tag/vista/'>Vista</a>, <a href='http://windowssucks.wordpress.com/tag/win7/'>Win7</a>, <a href='http://windowssucks.wordpress.com/tag/windows/'>windows</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/windowssucks.wordpress.com/194/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/windowssucks.wordpress.com/194/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/windowssucks.wordpress.com/194/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/windowssucks.wordpress.com/194/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/windowssucks.wordpress.com/194/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/windowssucks.wordpress.com/194/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/windowssucks.wordpress.com/194/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/windowssucks.wordpress.com/194/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/windowssucks.wordpress.com/194/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/windowssucks.wordpress.com/194/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/windowssucks.wordpress.com/194/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/windowssucks.wordpress.com/194/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/windowssucks.wordpress.com/194/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/windowssucks.wordpress.com/194/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=windowssucks.wordpress.com&amp;blog=9314223&amp;post=194&amp;subd=windowssucks&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://windowssucks.wordpress.com/2011/01/26/uac-runas-silent-fail/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/55a37744bf02f3ea63943529c01ccb64?s=96&#38;d=identicon&#38;r=X" medium="image">
			<media:title type="html">windowssucks</media:title>
		</media:content>

		<media:content url="http://windowssucks.files.wordpress.com/2011/01/silent-bob-ooo.jpg" medium="image">
			<media:title type="html">Silent Bob</media:title>
		</media:content>
	</item>
	</channel>
</rss>
