<?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/"
	>

<channel>
	<title>EdAndersen.com &#187; Windows</title>
	<atom:link href="http://www.edandersen.com/category/windows/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.edandersen.com</link>
	<description>Ed Andersen&#039;s musings</description>
	<lastBuildDate>Thu, 22 Jul 2010 10:50:49 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>No native Japanese text in Windows Phone 7 &#8230; yet</title>
		<link>http://www.edandersen.com/2010/03/16/no-native-japanese-text-in-windows-phone-7-yet/</link>
		<comments>http://www.edandersen.com/2010/03/16/no-native-japanese-text-in-windows-phone-7-yet/#comments</comments>
		<pubDate>Tue, 16 Mar 2010 13:53:37 +0000</pubDate>
		<dc:creator>Ed Andersen</dc:creator>
				<category><![CDATA[Internet]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Mobiles]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://www.edandersen.com/2010/03/16/no-native-japanese-text-in-windows-phone-7-yet/</guid>
		<description><![CDATA[The first preview version of the Windows Phone 7 SDK is out and it doesn’t support Japanese (or non-Latin) text in the English ROM. This is a huge disappointment. One of the major advantages the iPhone has over almost every other smartphone platform (and the major reason I bought mine in the first place – <a href="http://www.edandersen.com/2010/03/16/no-native-japanese-text-in-windows-phone-7-yet/" class="more-link">More &#62;</a>]]></description>
			<content:encoded><![CDATA[<p>The <a href="http://windowsteamblog.com/blogs/wpdev/archive/2010/03/15/the-right-mix.aspx" target="_blank">first preview version of the Windows Phone 7 SDK is out</a> and it doesn’t support Japanese (or non-Latin) text in the English ROM. This is a huge disappointment.</p>
<p><a href="http://www.edandersen.com/wp-content/uploads/2010/03/image.png"><img style="border-bottom: 0px; border-left: 0px; display: block; float: none; margin-left: auto; border-top: 0px; margin-right: auto; border-right: 0px" title="image" border="0" alt="image" src="http://www.edandersen.com/wp-content/uploads/2010/03/image_thumb.png" width="569" height="412" /></a></p>
<p>One of the major advantages the iPhone has over almost every other smartphone platform (and the major reason I bought mine in the first place – I needed Japanese language support) is the built in support for non-Latin languages and their input methods. This allows Apple to provide one single worldwide firmware edition.</p>
<p>Previous versions of Windows Mobile have required users to hack in Japanese fonts using the registry and rely on some awful third party hacks to get Japanese IMEs working. I seriously hope that before WP7 is finished, Microsoft just install worldwide fonts and IMEs like they started to do with Vista. There is no excuse. We are unlikely to get low-level access to the registry this time around to hack the support in ourselves to non-Japanese ROMs.</p>
<p>One of their slides is supposed to imply that the <a href="http://www.neowin.net/news/windows-phone-7-the-quotmetroquot-user-interface" target="_blank">Metro theme “Celebrates Typography”</a> &#8211;</p>
<p><a href="http://www.edandersen.com/wp-content/uploads/2010/03/image1.png"><img style="border-bottom: 0px; border-left: 0px; display: block; float: none; margin-left: auto; border-top: 0px; margin-right: auto; border-right: 0px" title="image" border="0" alt="image" src="http://www.edandersen.com/wp-content/uploads/2010/03/image_thumb1.png" width="404" height="304" /></a></p>
<p>&#8211; more like it totally ignores it. I suppose screens of square boxes fits the “Authentically Digital” principle.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.edandersen.com/2010/03/16/no-native-japanese-text-in-windows-phone-7-yet/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Vista net problems? Disable auto-tuning</title>
		<link>http://www.edandersen.com/2008/05/05/vista-net-problems-disable-auto-tuning/</link>
		<comments>http://www.edandersen.com/2008/05/05/vista-net-problems-disable-auto-tuning/#comments</comments>
		<pubDate>Mon, 05 May 2008 18:53:03 +0000</pubDate>
		<dc:creator>Ed Andersen</dc:creator>
				<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://www.edandersen.com/2008/05/vista-net-problems-disable-auto-tuning/</guid>
		<description><![CDATA[I have been having a problem where I would get &#8220;This page cannot be displayed&#8221; errors the first time I tried to access a website. The odd thing was that hitting Refresh would solve the problem and I would get through to the site immediately. At first, I thought it was a DNS problem due <a href="http://www.edandersen.com/2008/05/05/vista-net-problems-disable-auto-tuning/" class="more-link">More &#62;</a>]]></description>
			<content:encoded><![CDATA[<p>I have been having a problem where I would get &#8220;This page cannot be displayed&#8221; errors the first time I tried to access a website. The odd thing was that hitting Refresh would solve the problem and I would get through to the site immediately. At first, I thought it was a DNS problem due to the Internet Connection Sharing setup, but turns out it is Vista messing around with the net connection with a process called &#8220;<a href="http://technet.microsoft.com/en-gb/library/bb878127.aspx">Receive Window Auto-Tuning</a>&#8221; (this alters the size of the packets on your network based on network conditions).</p>
<p>To turn this off, fire up an elevated command prompt window and type in &#8220;netsh interface tcp set global autotuninglevel=disabled&#8221; without the quotes. This solved all the problems I was having with my net connection in Vista SP1. Strange.</p>
<p align="center"><a href="http://www.edandersen.com/wp-content/uploads/2008/05/image.png"><img style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="236" alt="image" src="http://www.edandersen.com/wp-content/uploads/2008/05/image-thumb.png" width="450" border="0"></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.edandersen.com/2008/05/05/vista-net-problems-disable-auto-tuning/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>XNA2.0 Dependency checking</title>
		<link>http://www.edandersen.com/2008/02/23/xna2-0-dependency-checking/</link>
		<comments>http://www.edandersen.com/2008/02/23/xna2-0-dependency-checking/#comments</comments>
		<pubDate>Sat, 23 Feb 2008 18:51:26 +0000</pubDate>
		<dc:creator>Ed Andersen</dc:creator>
				<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[XNA]]></category>

		<guid isPermaLink="false">http://www.edandersen.com/2008/02/xna2-0-dependency-checking/</guid>
		<description><![CDATA[After a lot of trial and error using Process Monitor and Virtual PC, I have finally sussed out exactly what XNA2.0 games on Windows need to run. The requirements are slightly different to XNA 1 games. Direct X runtimes There are four files that need to be installed in the system32 folder for XNA to <a href="http://www.edandersen.com/2008/02/23/xna2-0-dependency-checking/" class="more-link">More &#62;</a>]]></description>
			<content:encoded><![CDATA[<p>After a lot of trial and error using <a href="http://technet.microsoft.com/en-us/sysinternals/bb896645.aspx">Process Monitor</a> and <a href="http://www.microsoft.com/windows/products/winfamily/virtualpc/default.mspx">Virtual PC</a>, I have finally sussed out exactly what XNA2.0 games on Windows need to run. The requirements are slightly different to XNA 1 games. </p>
<h4>Direct X runtimes</h4>
<p>There are four files that need to be installed in the system32 folder for XNA to initialise properly. They are:</p>
<ul>
<li>xinput1_3.dll
<li>x3daudio1_3.dll
<li>d3dx9_31.dll, and
<li>xactengine2_9.dll </li>
</ul>
<p>The first three can be placed alongside the application exe and then load fine, but xactengine2_9.dll does not load this way for some reason, and has to be present in the system directory. Distributing these files alongside the application breaks the DirectX EULA, so they have to be installed using dxsetup.exe.</p>
<p>To check the presence in your XNA game, just put this code in Program.cs before game.Run() is called:</p>
<pre class="code"><span style="color: rgb(0,0,255)">bool</span> HasAllPrereqs = <span style="color: rgb(0,0,255)">true</span>;</pre>
<pre class="code"><span style="color: rgb(0,128,0)">// check all the required files, if any missing, return false
</span><span style="color: rgb(0,0,255)">if</span> (!System.IO.<span style="color: rgb(43,145,175)">File</span>.Exists(System.<span style="color: rgb(43,145,175)">Environment</span>.SystemDirectory
    + <span style="color: rgb(163,21,21)">"\\xactengine2_9.dll"</span>)) HasAllPrereqs = <span style="color: rgb(0,0,255)">false</span>;
<span style="color: rgb(0,0,255)">if</span> (!System.IO.<span style="color: rgb(43,145,175)">File</span>.Exists(System.<span style="color: rgb(43,145,175)">Environment</span>.SystemDirectory
    + <span style="color: rgb(163,21,21)">"\\d3dx9_31.dll"</span>)) HasAllPrereqs = <span style="color: rgb(0,0,255)">false</span>;
<span style="color: rgb(0,0,255)">if</span> (!System.IO.<span style="color: rgb(43,145,175)">File</span>.Exists(System.<span style="color: rgb(43,145,175)">Environment</span>.SystemDirectory
    + <span style="color: rgb(163,21,21)">"\\x3daudio1_2.dll"</span>)) HasAllPrereqs = <span style="color: rgb(0,0,255)">false</span>;
<span style="color: rgb(0,0,255)">if</span> (!System.IO.<span style="color: rgb(43,145,175)">File</span>.Exists(System.<span style="color: rgb(43,145,175)">Environment</span>.SystemDirectory
    + <span style="color: rgb(163,21,21)">"\\xinput1_3.dll"</span>)) HasAllPrereqs = <span style="color: rgb(0,0,255)">false</span>;</pre>
<p><a href="http://11011.net/software/vspaste"></a><a href="http://11011.net/software/vspaste"></a></p>
<p>If HasAllPrereqs is false after those lines, exit the application before it crashes horribly when XNA tries to initialise. </p>
<p><a href="http://11011.net/software/vspaste"></a></p>
<h4>Visual C++ 2005 SP1 runtimes</h4>
<p>Even a fresh Vista install doesn&#8217;t have these. They are provided when updating Visual Studio 2005 to SP1, or installing SP1 of the .Net Framework 2.0. However, Vista comes with SP0 of .Net 2.0, meaning 99% of machines you come across will be lacking what XNA 2.0 needs. There is a 2.5MB standalone installer on the MS download site <a href="http://www.microsoft.com/downloads/details.aspx?familyid=200b2fd9-ae1a-4a14-984d-389c36f85647">here</a> which installs what you need even on .Net 2.0 SP0 machines. .Net 3.5 installs Net 2.0 SP1.</p>
<p>So if any of the following are installed, we safely have the right Visual C++ 2005 runtimes:</p>
<ul>
<li>.NET Framework 2.0 SP1
<li>.NET Framework 3.5
<li>Visual C++ 2005 SP1 Redistributable </li>
</ul>
<p>By looking up the product codes in the registry, we can also check at runtime if we have the runtimes (again, before game.Run()):</p>
<pre class="code">[<span style="color: rgb(43,145,175)">DllImport</span>(<span style="color: rgb(163,21,21)">"msi.dll"</span>)]
<span style="color: rgb(0,0,255)">public</span> <span style="color: rgb(0,0,255)">static</span> <span style="color: rgb(0,0,255)">extern</span> <span style="color: rgb(43,145,175)">Int32</span> MsiQueryProductState(<span style="color: rgb(0,0,255)">string</span> szProduct);</pre>
<p><a href="http://11011.net/software/vspaste"></a></p>
<p>&#8230;goes before the main application entry point, and</p>
<pre class="code"><span style="color: rgb(0,0,255)">bool</span> vccOK = <span style="color: rgb(0,0,255)">false</span>;
<span style="color: rgb(0,128,0)">// check for VC++ 2005 SP1 redist (very rare in the wild)
</span><span style="color: rgb(0,0,255)">if</span> (MsiQueryProductState(
<span style="color: rgb(163,21,21)">"{7299052b-02a4-4627-81f2-1818da5d550d}"</span>) == 5) vccOK = <span style="color: rgb(0,0,255)">true</span>;
<span style="color: rgb(0,128,0)">// check for .NET Framework 2.0 SP1
</span><span style="color: rgb(0,0,255)">if</span> (MsiQueryProductState(
<span style="color: rgb(163,21,21)">"{2FC099BD-AC9B-33EB-809C-D332E1B27C40}"</span>) == 5) vccOK = <span style="color: rgb(0,0,255)">true</span>;
<span style="color: rgb(0,128,0)">// check for .NET Framework 3.5 (includes 2.0 SP1)
</span><span style="color: rgb(0,0,255)">if</span> (MsiQueryProductState(
<span style="color: rgb(163,21,21)">"{B508B3F1-A24A-32C0-B310-85786919EF28}"</span>) == 5) vccOK = <span style="color: rgb(0,0,255)">true</span>;</pre>
<p><a href="http://11011.net/software/vspaste"></a></p>
<p>If vccOK is still false, exit the application before you call game.Run().</p>
]]></content:encoded>
			<wfw:commentRss>http://www.edandersen.com/2008/02/23/xna2-0-dependency-checking/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Taskbar invisible over Remote Desktop</title>
		<link>http://www.edandersen.com/2007/12/18/taskbar-invisible-over-remote-desktop/</link>
		<comments>http://www.edandersen.com/2007/12/18/taskbar-invisible-over-remote-desktop/#comments</comments>
		<pubDate>Tue, 18 Dec 2007 18:48:42 +0000</pubDate>
		<dc:creator>Ed Andersen</dc:creator>
				<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://www.edandersen.com/2007/12/taskbar-invisible-over-remote-desktop/</guid>
		<description><![CDATA[I frequently use Remote Desktop (RDP/Terminal Services) to access my machines running Vista SP1 RTM. 90% of the time, after connecting, I get this annoying problem with the Start bar: Only the Start button itself is visible. This happens on all my Vista machines, both SP0 and SP1 This happens no matter what version of <a href="http://www.edandersen.com/2007/12/18/taskbar-invisible-over-remote-desktop/" class="more-link">More &#62;</a>]]></description>
			<content:encoded><![CDATA[<p>I frequently use Remote Desktop (RDP/Terminal Services) to access my machines running Vista SP1 RTM. 90% of the time, after connecting, I get this annoying problem with the Start bar:</p>
<p align="center"><a href="http://www.edandersen.com/wp-content/uploads/2007/12/image.png"><img style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="76" alt="image" src="http://www.edandersen.com/wp-content/uploads/2007/12/image-thumb.png" width="404" border="0"></a> </p>
<p>Only the Start button itself is visible.</p>
<ul>
<li>This happens on all my Vista machines, both SP0 and SP1
<li>This happens no matter what version of Remote Desktop I am using, the XP version or the &#8220;new&#8221; Vista one
<li>It only appears to happen when the computer was originally using the Aero DWM composition engine and originally in a different resolution to what I am asking the Remote Desktop session to render
<li>It happens wether or not the taskbar is at the top or bottom of the screen </li>
</ul>
<p>So far the only way to get the taskbar back I have found is to click the lonely Start button, click <strong>Windows Security</strong>, choose <strong>Start Task Manager</strong>, kill the explorer.exe process and start it again in the Task Manager from File &gt; Run.</p>
<p>Subsequent Remote Desktop connections are then fine, but logging back into the machine from the console then back into Remote Desktop makes it disappear again. A bit frustrating, to say the least.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.edandersen.com/2007/12/18/taskbar-invisible-over-remote-desktop/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Windows Live ID Return URL banned words</title>
		<link>http://www.edandersen.com/2007/09/19/windows-live-id-single-sign-on-blocked-words-workaround/</link>
		<comments>http://www.edandersen.com/2007/09/19/windows-live-id-single-sign-on-blocked-words-workaround/#comments</comments>
		<pubDate>Wed, 19 Sep 2007 18:38:19 +0000</pubDate>
		<dc:creator>Ed Andersen</dc:creator>
				<category><![CDATA[Internet]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://www.edandersen.com/?p=21</guid>
		<description><![CDATA[UPDATE: No need to do this now, its fixed! For edngames.com I use Facebook, Yahoo! and Windows Live as sign on solutions. However, Windows Live is the only system with a restriction on the domain names you can register. For instance, because of the word &#8220;games&#8221; in my domain, I get the error message &#8220;The <a href="http://www.edandersen.com/2007/09/19/windows-live-id-single-sign-on-blocked-words-workaround/" class="more-link">More &#62;</a>]]></description>
			<content:encoded><![CDATA[<p><strong>UPDATE: No need to do this now, its fixed!</strong></p>
<p>For edngames.com I use Facebook, Yahoo! and Windows Live as sign on solutions. However, Windows Live is the only system with a restriction on the domain names you can register. For instance, because of the word &#8220;games&#8221; in my domain, I get the error message <font color="#800000">&#8220;The Return URL field contains a forbidden word or domain. Please use a different Return URL and enter the HIP solution again.&#8221;</font></p>
<p align="center"><a href="http://www.edandersen.com/wp-content/uploads/2007/11/image.png"><img style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="85" alt="image" src="http://www.edandersen.com/wp-content/uploads/2007/11/image-thumb.png" width="504" border="0"></a> </p>
<p>Facebook and Yahoo, competing single sign on solutions, do not have this restriction, which the word &#8220;game&#8221; I assume is to block gambling sites from the authentication.</p>
<p>To get around this, I have had to set up a dummy domain (edslife.co.uk) without the banned words and perform authentication on that &#8211; you cannot simply do a redirect because the signature returned by the Windows Live server will be invalid because its a different return URL. I then have to create my own authentication (I use a hash function based on the time and a secret word) to move between the dummy domain to the real one securely.</p>
<p align="center"><a href="http://www.edandersen.com/wp-content/uploads/2007/11/image1.png"><img style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="232" alt="image" src="http://www.edandersen.com/wp-content/uploads/2007/11/image-thumb1.png" width="500" border="0"></a>&nbsp;</p>
<p align="left">Although this works, and is just as secure as authenticating on the target site I reckon, it provides a pretty shoddy user experience because I have to explain that there is another domain name involved. You also cannot use this method to get data from the Windows Live server such as contact information because from a different domain, the authentication is invalid. </p>
]]></content:encoded>
			<wfw:commentRss>http://www.edandersen.com/2007/09/19/windows-live-id-single-sign-on-blocked-words-workaround/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
