<?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>Windows CE Programming &#187; warmboot</title>
	<atom:link href="http://www.hjgode.de/wp/tag/warmboot/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.hjgode.de/wp</link>
	<description>Windows Mobile Development and usage</description>
	<lastBuildDate>Fri, 03 Feb 2012 08:53:20 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<!--CodeProjectFeeder channel--><category>CodeProject</category><generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Windows Mobile 6.x -How to find out the last boot type</title>
		<link>http://www.hjgode.de/wp/2010/02/24/wm6-get-last-boot-type/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=wm6-get-last-boot-type</link>
		<comments>http://www.hjgode.de/wp/2010/02/24/wm6-get-last-boot-type/#comments</comments>
		<pubDate>Wed, 24 Feb 2010 11:53:08 +0000</pubDate>
		<dc:creator>josef</dc:creator>
				<category><![CDATA[CodeProject]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[bootcount]]></category>
		<category><![CDATA[cleanboot]]></category>
		<category><![CDATA[coldboot]]></category>
		<category><![CDATA[last boot type]]></category>
		<category><![CDATA[warmboot]]></category>
		<category><![CDATA[windows mobile]]></category>

		<guid isPermaLink="false">http://www.hjgode.de/wp/?p=305</guid>
		<description><![CDATA[WM6 get last boot type from registry]]></description>
			<content:encoded><![CDATA[<p>I have been asked, how one can see, if a device has been clean booted. Here is an answer.</p>
<p>First, there is a registry key you can check:</p>
<pre>[HKEY_CURRENT_USER\Performance]
"Last Boot Type"=dword:00000002</pre>
<p>after a coldboot this value is 0. For warmboots the value is 2.</p>
<p>and another one</p>
<pre>[HKEY_LOCAL_MACHINE\Comm]
"BootCount"=dword:00000005</pre>
<p>The BootCount value starts with 1 at a cleanboot and counts with every reboot. This device had 1 clean boot and 4 warm boots.</p>
<p>These registry keys are easy to find with free tools like ssnap and WinMerge.</p>
<p>Another way to check for a clean boot is to look for a custom file or a custom registry entry in \Windows. With a cleanboot all contents is reset to the factory default (except for \Flash File Store (persistent storage) or external memory cards). If you created a file in \Windows or a value in the registry, these are gone after a cleanboot.</p>
<!-- Social Bookmarks BEGIN -->
<div class="social_bookmark">
<a><strong><em>Bookmark It</em></strong></a>
<br />
<div class="d">
<br />
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://del.icio.us/post?url=http%3A%2F%2Fwww.hjgode.de%2Fwp%2F2010%2F02%2F24%2Fwm6-get-last-boot-type%2F&amp;title=Windows+Mobile+6.x+-How+to+find+out+the+last+boot+type" rel="nofollow" title="Add to&nbsp;Del.icio.us"><img class="social_img" src="http://www.hjgode.de/wp/wp-content/plugins/social-bookmarks0/images/delicious.png" title="Add to&nbsp;Del.icio.us" alt="Add to&nbsp;Del.icio.us" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.hjgode.de%2Fwp%2F2010%2F02%2F24%2Fwm6-get-last-boot-type%2F&amp;title=Windows+Mobile+6.x+-How+to+find+out+the+last+boot+type" rel="nofollow" title="Add to&nbsp;digg"><img class="social_img" src="http://www.hjgode.de/wp/wp-content/plugins/social-bookmarks0/images/digg.png" title="Add to&nbsp;digg" alt="Add to&nbsp;digg" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.google.com/bookmarks/mark?op=edit&amp;output=popup&amp;bkmk=http%3A%2F%2Fwww.hjgode.de%2Fwp%2F2010%2F02%2F24%2Fwm6-get-last-boot-type%2F&amp;title=Windows+Mobile+6.x+-How+to+find+out+the+last+boot+type" rel="nofollow" title="Add to&nbsp;Google Bookmarks"><img class="social_img" src="http://www.hjgode.de/wp/wp-content/plugins/social-bookmarks0/images/google.png" title="Add to&nbsp;Google Bookmarks" alt="Add to&nbsp;Google Bookmarks" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.netscape.com/submit/?U=http%3A%2F%2Fwww.hjgode.de%2Fwp%2F2010%2F02%2F24%2Fwm6-get-last-boot-type%2F&amp;T=Windows+Mobile+6.x+-How+to+find+out+the+last+boot+type" rel="nofollow" title="Add to&nbsp;Netscape"><img class="social_img" src="http://www.hjgode.de/wp/wp-content/plugins/social-bookmarks0/images/netscape.png" title="Add to&nbsp;Netscape" alt="Add to&nbsp;Netscape" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.technorati.com/faves?add=http%3A%2F%2Fwww.hjgode.de%2Fwp%2F2010%2F02%2F24%2Fwm6-get-last-boot-type%2F" rel="nofollow" title="Add to&nbsp;Technorati"><img class="social_img" src="http://www.hjgode.de/wp/wp-content/plugins/social-bookmarks0/images/technorati.png" title="Add to&nbsp;Technorati" alt="Add to&nbsp;Technorati" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://myweb2.search.yahoo.com/myresults/bookmarklet?u=http%3A%2F%2Fwww.hjgode.de%2Fwp%2F2010%2F02%2F24%2Fwm6-get-last-boot-type%2F&amp;t=Windows+Mobile+6.x+-How+to+find+out+the+last+boot+type" rel="nofollow" title="Add to&nbsp;Yahoo My Web"><img class="social_img" src="http://www.hjgode.de/wp/wp-content/plugins/social-bookmarks0/images/yahoo.png" title="Add to&nbsp;Yahoo My Web" alt="Add to&nbsp;Yahoo My Web" /></a>
<br />
</div>
</div>
<!-- Social Bookmarks END -->
]]></content:encoded>
			<wfw:commentRss>http://www.hjgode.de/wp/2010/02/24/wm6-get-last-boot-type/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using SetSystemPowerState to reset a Windows Mobile device</title>
		<link>http://www.hjgode.de/wp/2009/05/27/using_setsystempowerstate_for_reset/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=using_setsystempowerstate_for_reset</link>
		<comments>http://www.hjgode.de/wp/2009/05/27/using_setsystempowerstate_for_reset/#comments</comments>
		<pubDate>Wed, 27 May 2009 07:17:20 +0000</pubDate>
		<dc:creator>josef</dc:creator>
				<category><![CDATA[CodeProject]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[boot]]></category>
		<category><![CDATA[reset]]></category>
		<category><![CDATA[SetSystemPowerState]]></category>
		<category><![CDATA[warmboot]]></category>
		<category><![CDATA[wince-warm-boot]]></category>

		<guid isPermaLink="false">http://www.hjgode.de/wp/?p=58</guid>
		<description><![CDATA[recently I read an article about using SetSystemPowerState instead of KernelIOControl: SetSystemPowerState(NULL,POWER_STATE_RESET,0); Using KernelIOControl to reset a device (warm or cold boot) may not flush buffers to storage and so the article shows how to use SetSystemPowerState to reboot a Windows Mobile device. I recommend all to use SetSystemPowerState to reset a WM device instead [...]]]></description>
			<content:encoded><![CDATA[<p>recently I read an article about using SetSystemPowerState instead of KernelIOControl:</p>
<p>SetSystemPowerState(NULL,POWER_STATE_RESET,0);</p>
<p>Using KernelIOControl to reset a device (warm or cold boot) may not flush buffers to storage and so the article shows how to use SetSystemPowerState to reboot a Windows Mobile device.</p>
<p>I recommend all to use SetSystemPowerState to reset a WM device instead of using KerneIOControl to avoid missing data. SetSystemPowerState with argument POWER_STATE_RESET will first flush disk buffers and then perform the reset. This will be much safer than doing it the &#8216;hard way&#8217; with KernelIOControl.</p>
<p>see also <a href="http://www.krvarma.com/?p=100" target="_blank">here</a> and at <a href="http://social.msdn.microsoft.com/Forums/en-US/vssmartdevicesvbcs/thread/51e09510-3d6e-42a6-bec0-a68ef9d7b947" target="_blank">MSDN</a> and this great <a href="http://www.codeproject.com/KB/mobile/WiMoPower1.aspx" target="_blank">article</a> at CodeProject</p>
<!-- Social Bookmarks BEGIN -->
<div class="social_bookmark">
<a><strong><em>Bookmark It</em></strong></a>
<br />
<div class="d">
<br />
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://del.icio.us/post?url=http%3A%2F%2Fwww.hjgode.de%2Fwp%2F2009%2F05%2F27%2Fusing_setsystempowerstate_for_reset%2F&amp;title=Using+SetSystemPowerState+to+reset+a+Windows+Mobile+device" rel="nofollow" title="Add to&nbsp;Del.icio.us"><img class="social_img" src="http://www.hjgode.de/wp/wp-content/plugins/social-bookmarks0/images/delicious.png" title="Add to&nbsp;Del.icio.us" alt="Add to&nbsp;Del.icio.us" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.hjgode.de%2Fwp%2F2009%2F05%2F27%2Fusing_setsystempowerstate_for_reset%2F&amp;title=Using+SetSystemPowerState+to+reset+a+Windows+Mobile+device" rel="nofollow" title="Add to&nbsp;digg"><img class="social_img" src="http://www.hjgode.de/wp/wp-content/plugins/social-bookmarks0/images/digg.png" title="Add to&nbsp;digg" alt="Add to&nbsp;digg" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.google.com/bookmarks/mark?op=edit&amp;output=popup&amp;bkmk=http%3A%2F%2Fwww.hjgode.de%2Fwp%2F2009%2F05%2F27%2Fusing_setsystempowerstate_for_reset%2F&amp;title=Using+SetSystemPowerState+to+reset+a+Windows+Mobile+device" rel="nofollow" title="Add to&nbsp;Google Bookmarks"><img class="social_img" src="http://www.hjgode.de/wp/wp-content/plugins/social-bookmarks0/images/google.png" title="Add to&nbsp;Google Bookmarks" alt="Add to&nbsp;Google Bookmarks" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.netscape.com/submit/?U=http%3A%2F%2Fwww.hjgode.de%2Fwp%2F2009%2F05%2F27%2Fusing_setsystempowerstate_for_reset%2F&amp;T=Using+SetSystemPowerState+to+reset+a+Windows+Mobile+device" rel="nofollow" title="Add to&nbsp;Netscape"><img class="social_img" src="http://www.hjgode.de/wp/wp-content/plugins/social-bookmarks0/images/netscape.png" title="Add to&nbsp;Netscape" alt="Add to&nbsp;Netscape" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.technorati.com/faves?add=http%3A%2F%2Fwww.hjgode.de%2Fwp%2F2009%2F05%2F27%2Fusing_setsystempowerstate_for_reset%2F" rel="nofollow" title="Add to&nbsp;Technorati"><img class="social_img" src="http://www.hjgode.de/wp/wp-content/plugins/social-bookmarks0/images/technorati.png" title="Add to&nbsp;Technorati" alt="Add to&nbsp;Technorati" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://myweb2.search.yahoo.com/myresults/bookmarklet?u=http%3A%2F%2Fwww.hjgode.de%2Fwp%2F2009%2F05%2F27%2Fusing_setsystempowerstate_for_reset%2F&amp;t=Using+SetSystemPowerState+to+reset+a+Windows+Mobile+device" rel="nofollow" title="Add to&nbsp;Yahoo My Web"><img class="social_img" src="http://www.hjgode.de/wp/wp-content/plugins/social-bookmarks0/images/yahoo.png" title="Add to&nbsp;Yahoo My Web" alt="Add to&nbsp;Yahoo My Web" /></a>
<br />
</div>
</div>
<!-- Social Bookmarks END -->
]]></content:encoded>
			<wfw:commentRss>http://www.hjgode.de/wp/2009/05/27/using_setsystempowerstate_for_reset/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

