<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.technet.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>William Gunaratne's Blog : Mobility</title><link>http://blogs.technet.com/willg/archive/tags/Mobility/default.aspx</link><description>Tags: Mobility</description><dc:language>en-GB</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>Windows Mobile Development Forums</title><link>http://blogs.technet.com/willg/archive/2007/01/14/windows-mobile-development-forums.aspx</link><pubDate>Sun, 14 Jan 2007 22:33:00 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:596637</guid><dc:creator>wigunara</dc:creator><slash:comments>0</slash:comments><comments>http://blogs.technet.com/willg/comments/596637.aspx</comments><wfw:commentRss>http://blogs.technet.com/willg/commentrss.aspx?PostID=596637</wfw:commentRss><description>&lt;P mce_keep="true"&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV style="PADDING-RIGHT: 15px; PADDING-LEFT: 15px; BACKGROUND: #ffffff; PADDING-BOTTOM: 15px; PADDING-TOP: 15px"&gt;&lt;IMG alt="MSDN logo" src="http://forums.microsoft.com/library/toolbar/3.0/images/banners/msdn_masthead_ltr.gif" mce_src="http://forums.microsoft.com/library/toolbar/3.0/images/banners/msdn_masthead_ltr.gif"&gt; 
&lt;P&gt;Do you need help with your Windows Mobile project? MSDN have two forums for SmartDevices, one for managed development and one for native, check them out below for help with issues or to see what problems other people are facing.&lt;/P&gt;
&lt;P&gt;&lt;A href="http://forums.microsoft.com/MSDN/ShowForum.aspx?ForumID=35&amp;amp;SiteID=1" mce_href="http://forums.microsoft.com/MSDN/ShowForum.aspx?ForumID=35&amp;amp;SiteID=1"&gt;Native development&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://forums.microsoft.com/MSDN/ShowForum.aspx?ForumID=36&amp;amp;SiteID=1" mce_href="http://forums.microsoft.com/MSDN/ShowForum.aspx?ForumID=36&amp;amp;SiteID=1"&gt;Managed development&lt;/A&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=596637" width="1" height="1"&gt;</description><category domain="http://blogs.technet.com/willg/archive/tags/Mobility/default.aspx">Mobility</category></item><item><title>Windows Live Search client for Windows Mobile</title><link>http://blogs.technet.com/willg/archive/2007/01/14/very-cool-windows-live-search-client-for-windows-mobile.aspx</link><pubDate>Sun, 14 Jan 2007 22:19:00 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:596615</guid><dc:creator>wigunara</dc:creator><slash:comments>0</slash:comments><comments>http://blogs.technet.com/willg/comments/596615.aspx</comments><wfw:commentRss>http://blogs.technet.com/willg/commentrss.aspx?PostID=596615</wfw:commentRss><description>&lt;P&gt;If you have a Windows Mobile device you need this! It's neat, it has road and arial maps, driving directions (with GPS support) and "find my nearest" functionality.&lt;/P&gt;
&lt;P&gt;From your Windows Mobile device or J2ME enabled device go to &lt;/P&gt;
&lt;P&gt;&lt;A href="http://wls.live.com/" mce_href="http://wls.live.com/"&gt;http://wls.live.com&lt;/A&gt; &lt;/P&gt;
&lt;P&gt;and download the Windows Live Search application for mobile devices. &lt;/P&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=596615" width="1" height="1"&gt;</description><category domain="http://blogs.technet.com/willg/archive/tags/Mobility/default.aspx">Mobility</category></item><item><title>Windows Mobile Developer Downloads</title><link>http://blogs.technet.com/willg/archive/2007/01/05/windows-mobile-developer-resources.aspx</link><pubDate>Fri, 05 Jan 2007 16:32:00 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:582564</guid><dc:creator>wigunara</dc:creator><slash:comments>0</slash:comments><comments>http://blogs.technet.com/willg/comments/582564.aspx</comments><wfw:commentRss>http://blogs.technet.com/willg/commentrss.aspx?PostID=582564</wfw:commentRss><description>&lt;P&gt;I've compiled a quick list of key resources for Windows Mobile developers. Please check the &lt;A class="" title="Windows Mobile for Developers" href="http://www.microsoft.com/windowsmobile/developers/default.mspx" target=_blank mce_href="http://www.microsoft.com/windowsmobile/developers/default.mspx"&gt;Windows Mobile for Developers Website&lt;/A&gt;&amp;nbsp;regularly for the latest information on Windows Mobile development.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Here is key stuff you need to get started -&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;A class="" title="Windows Mobile 5.0 Developer Resource Kit" href="http://www.microsoft.com/downloads/details.aspx?FamilyID=3baa5b7d-04c1-4ec2-83dc-61b21ec5fe57&amp;amp;DisplayLang=en" target=_blank mce_href="http://www.microsoft.com/downloads/details.aspx?FamilyID=3baa5b7d-04c1-4ec2-83dc-61b21ec5fe57&amp;amp;DisplayLang=en"&gt;Windows Mobile 5.0 Developer Resource Kit&lt;/A&gt;&amp;nbsp;(contains amongst other things: &lt;A class="" title="Windows Mobile 5.0 SDK for Smartphone" href="http://www.microsoft.com/downloads/details.aspx?FamilyID=dc6c00cb-738a-4b97-8910-5cd29ab5f8d9&amp;amp;DisplayLang=en" target=_blank mce_href="http://www.microsoft.com/downloads/details.aspx?FamilyID=dc6c00cb-738a-4b97-8910-5cd29ab5f8d9&amp;amp;DisplayLang=en"&gt;Windows Mobile 5.0 SDK for Smartphone&lt;/A&gt;, &lt;A class="" title="Windows Mobile 5.0 SDK for Pocket PC " href="http://www.microsoft.com/downloads/details.aspx?FamilyID=83a52af2-f524-4ec5-9155-717cbe5d25ed&amp;amp;DisplayLang=en" target=_blank mce_href="http://www.microsoft.com/downloads/details.aspx?FamilyID=83a52af2-f524-4ec5-9155-717cbe5d25ed&amp;amp;DisplayLang=en"&gt;Windows Mobile 5.0 SDK for Pocket PC&lt;/A&gt;&amp;nbsp;)&lt;/P&gt;
&lt;P&gt;&lt;A class="" title=".NET Compact Framework 2.0 Service Pack 1 Redistributable" href="http://www.microsoft.com/downloads/details.aspx?FamilyID=0c1b0a88-59e2-4eba-a70e-4cd851c5fcc4&amp;amp;DisplayLang=en" target=_blank mce_href="http://www.microsoft.com/downloads/details.aspx?FamilyID=0c1b0a88-59e2-4eba-a70e-4cd851c5fcc4&amp;amp;DisplayLang=en"&gt;.NET Compact Framework 2.0 Service Pack 1 Redistributable&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;When you're comfortable with the basics, you'll find these tools really helpful -&lt;/STRONG&gt;&lt;/P&gt;
&lt;P mce_keep="true"&gt;&lt;A class="" title="Device Security Manager PowerToy for Windows Mobile 5.0" href="http://www.microsoft.com/downloads/details.aspx?FamilyID=7e92628c-d587-47e0-908b-09fee6ea517a&amp;amp;DisplayLang=en" target=_blank mce_href="http://www.microsoft.com/downloads/details.aspx?FamilyID=7e92628c-d587-47e0-908b-09fee6ea517a&amp;amp;DisplayLang=en"&gt;Device Security Manager PowerToy for Windows Mobile 5.0&lt;/A&gt;&lt;/P&gt;
&lt;P mce_keep="true"&gt;&lt;STRONG&gt;Developing enterprise or LOB applications? check out these handy downloads -&lt;/STRONG&gt;&lt;/P&gt;
&lt;P mce_keep="true"&gt;&lt;A class="" title="'Mobile Line of Business Solution Accelerator' kit" href="http://www.microsoft.com/downloads/details.aspx?FamilyID=80a5c2c5-4f9b-4c1a-bff6-2a3c6b68d15b&amp;amp;DisplayLang=en" target=_blank mce_href="http://www.microsoft.com/downloads/details.aspx?FamilyID=80a5c2c5-4f9b-4c1a-bff6-2a3c6b68d15b&amp;amp;DisplayLang=en"&gt;'Mobile Line of Business Solution Accelerator' kit&lt;/A&gt;&lt;/P&gt;
&lt;P mce_keep="true"&gt;&lt;A class="" title="Redistributable Server Components for Windows Mobile 5.0" href="http://www.microsoft.com/downloads/details.aspx?FamilyID=cdfd2bb2-fa13-4062-b8d1-4406ccddb5fd&amp;amp;DisplayLang=en" target=_blank mce_href="http://www.microsoft.com/downloads/details.aspx?FamilyID=cdfd2bb2-fa13-4062-b8d1-4406ccddb5fd&amp;amp;DisplayLang=en"&gt;Redistributable Server Components for Windows Mobile 5.0&lt;/A&gt;&lt;A class="" title="Application Verifier Tool for Windows Mobile® 5.0" href="http://www.microsoft.com/downloads/details.aspx?FamilyID=d275348a-d937-4d88-ae25-28702c78748d&amp;amp;DisplayLang=en" target=_blank mce_href="http://www.microsoft.com/downloads/details.aspx?FamilyID=d275348a-d937-4d88-ae25-28702c78748d&amp;amp;DisplayLang=en"&gt;&lt;/A&gt;&lt;/P&gt;
&lt;P mce_keep="true"&gt;&lt;STRONG&gt;Ready to start validation and testing?&lt;/STRONG&gt;&lt;/P&gt;
&lt;P mce_keep="true"&gt;&lt;A class="" title="Emulator Image for Windows Mobile 5.0 Smartphone with 320x240 (Landscape) Screen" href="http://www.microsoft.com/downloads/details.aspx?FamilyID=eb580a44-cb40-4be1-9ff3-e224bf669cd0&amp;amp;DisplayLang=en" target=_blank mce_href="http://www.microsoft.com/downloads/details.aspx?FamilyID=eb580a44-cb40-4be1-9ff3-e224bf669cd0&amp;amp;DisplayLang=en"&gt;Emulator Image for Windows Mobile 5.0 Smartphone with 320x240 (Landscape) Screen&lt;/A&gt;&lt;/P&gt;
&lt;P mce_keep="true"&gt;&lt;A class="" title="Localized Windows Mobile 5.0 Smartphone Emulator Images" href="http://www.microsoft.com/downloads/details.aspx?FamilyID=52fed581-8f8d-4c46-9966-4832098191b7&amp;amp;DisplayLang=en" target=_blank mce_href="http://www.microsoft.com/downloads/details.aspx?FamilyID=52fed581-8f8d-4c46-9966-4832098191b7&amp;amp;DisplayLang=en"&gt;Localized Windows Mobile 5.0 Smartphone Emulator Images&lt;/A&gt;&lt;/P&gt;
&lt;P mce_keep="true"&gt;&lt;A class="" title="Localized Windows Mobile 5.0 Pocket PC Emulator Images" href="http://www.microsoft.com/downloads/details.aspx?FamilyID=eec33ae3-c129-4c25-abaa-18e8e842178f&amp;amp;DisplayLang=en" target=_blank mce_href="http://www.microsoft.com/downloads/details.aspx?FamilyID=eec33ae3-c129-4c25-abaa-18e8e842178f&amp;amp;DisplayLang=en"&gt;Localized Windows Mobile 5.0 Pocket PC Emulator Images&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P mce_keep="true"&gt;&lt;A class="" title="Application Verifier Tool for Windows Mobile® 5.0" href="http://www.microsoft.com/downloads/details.aspx?FamilyID=d275348a-d937-4d88-ae25-28702c78748d&amp;amp;DisplayLang=en" target=_blank mce_href="http://www.microsoft.com/downloads/details.aspx?FamilyID=d275348a-d937-4d88-ae25-28702c78748d&amp;amp;DisplayLang=en"&gt;Application Verifier Tool for Windows Mobile® 5.0&lt;/A&gt;&lt;A class="" title=".NET Compact Framework 2.0 Service Pack 1 Redistributable" href="http://www.microsoft.com/downloads/details.aspx?FamilyID=0c1b0a88-59e2-4eba-a70e-4cd851c5fcc4&amp;amp;DisplayLang=en" target=_blank mce_href="http://www.microsoft.com/downloads/details.aspx?FamilyID=0c1b0a88-59e2-4eba-a70e-4cd851c5fcc4&amp;amp;DisplayLang=en"&gt;&lt;/A&gt;&lt;/P&gt;
&lt;P mce_keep="true"&gt;&lt;A class="" title="Standalone Device Emulator 1.0 with Windows Mobile OS Images" href="http://www.microsoft.com/downloads/details.aspx?FamilyID=c62d54a5-183a-4a1e-a7e2-cc500ed1f19a&amp;amp;DisplayLang=en" target=_blank mce_href="http://www.microsoft.com/downloads/details.aspx?FamilyID=c62d54a5-183a-4a1e-a7e2-cc500ed1f19a&amp;amp;DisplayLang=en"&gt;Standalone Device Emulator 1.0 with Windows Mobile OS Images&lt;/A&gt;&lt;/P&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=582564" width="1" height="1"&gt;</description><category domain="http://blogs.technet.com/willg/archive/tags/Mobility/default.aspx">Mobility</category></item><item><title>TechEd Follow up, further reading on device security...</title><link>http://blogs.technet.com/willg/archive/2006/11/08/teched-follow-up-further-reading-on-device-security.aspx</link><pubDate>Wed, 08 Nov 2006 20:20:00 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:509475</guid><dc:creator>wigunara</dc:creator><slash:comments>0</slash:comments><comments>http://blogs.technet.com/willg/comments/509475.aspx</comments><wfw:commentRss>http://blogs.technet.com/willg/commentrss.aspx?PostID=509475</wfw:commentRss><description>&lt;P&gt;Marcus Perryman's blog has a great article on Windows Mobile 5.0 Role security&lt;/P&gt;
&lt;P&gt;&lt;A href="http://blogs.msdn.com/marcpe/archive/2006/10/24/windows-mobile-5-0-role-security.aspx"&gt;http://blogs.msdn.com/marcpe/archive/2006/10/24/windows-mobile-5-0-role-security.aspx&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Security for Windows Mobile devices&lt;/P&gt;
&lt;P&gt;&lt;A href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/mobilesdk5/html/wce51conSecurityRoles.asp"&gt;http://msdn.microsoft.com/library/default.asp?url=/library/en-us/mobilesdk5/html/wce51conSecurityRoles.asp&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;and of course you can find my session on the postshow DVD.&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=509475" width="1" height="1"&gt;</description><category domain="http://blogs.technet.com/willg/archive/tags/Security/default.aspx">Security</category><category domain="http://blogs.technet.com/willg/archive/tags/Mobility/default.aspx">Mobility</category></item><item><title>TechEd follow up...</title><link>http://blogs.technet.com/willg/archive/2006/11/08/teched-follow-up.aspx</link><pubDate>Wed, 08 Nov 2006 20:16:00 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:509460</guid><dc:creator>wigunara</dc:creator><slash:comments>0</slash:comments><comments>http://blogs.technet.com/willg/comments/509460.aspx</comments><wfw:commentRss>http://blogs.technet.com/willg/commentrss.aspx?PostID=509460</wfw:commentRss><description>&lt;P&gt;Thanks to all those who attended my sessions at TechEd. As promised in my SQL Mobile session here is the source for a very simpler timer class to help you monitor performance.&lt;/P&gt;
&lt;P mce_keep="true"&gt;&amp;nbsp;&lt;/P&gt;&lt;FONT color=#0000ff size=2&gt;
&lt;P&gt;using&lt;/FONT&gt;&lt;FONT size=2&gt; System;&lt;/P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;
&lt;P&gt;using&lt;/FONT&gt;&lt;FONT size=2&gt; System.Collections.Generic;&lt;/P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;
&lt;P&gt;using&lt;/FONT&gt;&lt;FONT size=2&gt; System.Windows.Forms;&lt;/P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;
&lt;P&gt;using&lt;/FONT&gt;&lt;FONT size=2&gt; System.Runtime.InteropServices;&lt;/P&gt;
&lt;P mce_keep="true"&gt;&amp;nbsp;&lt;/P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;
&lt;P&gt;namespace&lt;/FONT&gt;&lt;FONT size=2&gt; Timer&lt;/P&gt;
&lt;P&gt;{&lt;/P&gt;
&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;public&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;class&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#008080 size=2&gt;TestTimer&lt;/P&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;
&lt;P&gt;{&lt;/P&gt;
&lt;P&gt;[&lt;/FONT&gt;&lt;FONT color=#008080 size=2&gt;DllImport&lt;/FONT&gt;&lt;FONT size=2&gt;(&lt;/FONT&gt;&lt;FONT color=#800000 size=2&gt;"CoreDll.dll"&lt;/FONT&gt;&lt;FONT size=2&gt;)]&lt;/P&gt;
&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;public&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;static&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;extern&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;int&lt;/FONT&gt;&lt;FONT size=2&gt; QueryPerformanceFrequency&lt;/P&gt;
&lt;P&gt;(&lt;/P&gt;
&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;ref&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#008080 size=2&gt;Int64&lt;/FONT&gt;&lt;FONT size=2&gt; lpFrequency&lt;/P&gt;
&lt;P&gt;);&lt;/P&gt;
&lt;P&gt;[&lt;/FONT&gt;&lt;FONT color=#008080 size=2&gt;DllImport&lt;/FONT&gt;&lt;FONT size=2&gt;(&lt;/FONT&gt;&lt;FONT color=#800000 size=2&gt;"CoreDll.dll"&lt;/FONT&gt;&lt;FONT size=2&gt;)]&lt;/P&gt;
&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;public&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;static&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;extern&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;int&lt;/FONT&gt;&lt;FONT size=2&gt; QueryPerformanceCounter&lt;/P&gt;
&lt;P&gt;(&lt;/P&gt;
&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;ref&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#008080 size=2&gt;Int64&lt;/FONT&gt;&lt;FONT size=2&gt; lpPerformanceCount&lt;/P&gt;
&lt;P&gt;);&lt;/P&gt;
&lt;P&gt;System.&lt;/FONT&gt;&lt;FONT color=#008080 size=2&gt;Int64&lt;/FONT&gt;&lt;FONT size=2&gt; freq = 0;&lt;/P&gt;
&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;public&lt;/FONT&gt;&lt;FONT size=2&gt; TestTimer()&lt;/P&gt;
&lt;P&gt;{&lt;/P&gt;
&lt;P&gt;QueryPerformanceFrequency(&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;ref&lt;/FONT&gt;&lt;FONT size=2&gt; freq);&lt;/P&gt;
&lt;P mce_keep="true"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;}&lt;/P&gt;
&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;public&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;delegate&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;void&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#008080 size=2&gt;timerResult&lt;/FONT&gt;&lt;FONT size=2&gt;(&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;string&lt;/FONT&gt;&lt;FONT size=2&gt; msg,System.&lt;/FONT&gt;&lt;FONT color=#008080 size=2&gt;Int64&lt;/FONT&gt;&lt;FONT size=2&gt; time);&lt;/P&gt;
&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;public&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;event&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#008080 size=2&gt;timerResult&lt;/FONT&gt;&lt;FONT size=2&gt; OnTimerResult;&lt;/P&gt;
&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;private&lt;/FONT&gt;&lt;FONT size=2&gt; System.&lt;/FONT&gt;&lt;FONT color=#008080 size=2&gt;Int64&lt;/FONT&gt;&lt;FONT size=2&gt; _startTime = 0 ;&lt;/P&gt;
&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;private&lt;/FONT&gt;&lt;FONT size=2&gt; System.&lt;/FONT&gt;&lt;FONT color=#008080 size=2&gt;Int64&lt;/FONT&gt;&lt;FONT size=2&gt; _lastReading = 0;&lt;/P&gt;
&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;public&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;bool&lt;/FONT&gt;&lt;FONT size=2&gt; TimerSupported&lt;/P&gt;
&lt;P&gt;{&lt;/P&gt;
&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;get&lt;/P&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;
&lt;P&gt;{&lt;/P&gt;
&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;bool&lt;/FONT&gt;&lt;FONT size=2&gt; result = &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;true&lt;/FONT&gt;&lt;FONT size=2&gt;;&lt;/P&gt;
&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;if&lt;/FONT&gt;&lt;FONT size=2&gt; (QueryPerformanceFrequency(&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;ref&lt;/FONT&gt;&lt;FONT size=2&gt; freq) == 0)&lt;/P&gt;
&lt;P&gt;result = &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;false&lt;/FONT&gt;&lt;FONT size=2&gt;;&lt;/P&gt;
&lt;P&gt;System.&lt;/FONT&gt;&lt;FONT color=#008080 size=2&gt;Int64&lt;/FONT&gt;&lt;FONT size=2&gt; testCounter = 0;&lt;/P&gt;
&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;if&lt;/FONT&gt;&lt;FONT size=2&gt; (QueryPerformanceCounter(&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;ref&lt;/FONT&gt;&lt;FONT size=2&gt; testCounter) == 0)&lt;/P&gt;
&lt;P&gt;result = &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;false&lt;/FONT&gt;&lt;FONT size=2&gt;;&lt;/P&gt;
&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;return&lt;/FONT&gt;&lt;FONT size=2&gt; (result);&lt;/P&gt;
&lt;P&gt;}&lt;/P&gt;
&lt;P&gt;}&lt;/P&gt;
&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;public&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;void&lt;/FONT&gt;&lt;FONT size=2&gt; Start()&lt;/P&gt;
&lt;P&gt;{&lt;/P&gt;
&lt;P&gt;QueryPerformanceCounter(&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;ref&lt;/FONT&gt;&lt;FONT size=2&gt; _startTime);&lt;/P&gt;
&lt;P&gt;_lastReading = _startTime;&lt;/P&gt;
&lt;P mce_keep="true"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;}&lt;/P&gt;
&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;public&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;void&lt;/FONT&gt;&lt;FONT size=2&gt; TakeReading(&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;string&lt;/FONT&gt;&lt;FONT size=2&gt; msg)&lt;/P&gt;
&lt;P&gt;{&lt;/P&gt;
&lt;P&gt;System.&lt;/FONT&gt;&lt;FONT color=#008080 size=2&gt;Int64&lt;/FONT&gt;&lt;FONT size=2&gt; _takeReading = 0;&lt;/P&gt;
&lt;P&gt;QueryPerformanceCounter(&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;ref&lt;/FONT&gt;&lt;FONT size=2&gt; _takeReading);&lt;/P&gt;
&lt;P&gt;System.&lt;/FONT&gt;&lt;FONT color=#008080 size=2&gt;Int64&lt;/FONT&gt;&lt;FONT size=2&gt; time_ms = (_takeReading - _lastReading) * 1000 / freq;&lt;/P&gt;
&lt;P&gt;_lastReading = _takeReading;&lt;/P&gt;
&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;if&lt;/FONT&gt;&lt;FONT size=2&gt; (OnTimerResult!=&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;null&lt;/FONT&gt;&lt;FONT size=2&gt;)&lt;/P&gt;
&lt;P&gt;OnTimerResult(msg,time_ms);&lt;/P&gt;
&lt;P&gt;}&lt;/P&gt;
&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;public&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;void&lt;/FONT&gt;&lt;FONT size=2&gt; TotalTime(&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;string&lt;/FONT&gt;&lt;FONT size=2&gt; msg)&lt;/P&gt;
&lt;P&gt;{&lt;/P&gt;
&lt;P&gt;_lastReading = _startTime;&lt;/P&gt;
&lt;P&gt;TakeReading(msg);&lt;/P&gt;
&lt;P&gt;}&lt;/P&gt;
&lt;P&gt;}&lt;/P&gt;
&lt;P&gt;}&lt;/P&gt;&lt;/FONT&gt;
&lt;P mce_keep="true"&gt;&amp;nbsp;&lt;/P&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=509460" width="1" height="1"&gt;</description><category domain="http://blogs.technet.com/willg/archive/tags/Mobility/default.aspx">Mobility</category><category domain="http://blogs.technet.com/willg/archive/tags/Sample+Code/default.aspx">Sample Code</category></item><item><title>Windows Mobile, SQL Mobile 2005 and .NET Compact Framework 2.0 - a powerful combination</title><link>http://blogs.technet.com/willg/archive/2006/03/10/windows-mobile-sql-mobile-2005-and-net-compact-framework-2-0-a-powerful-combination.aspx</link><pubDate>Fri, 10 Mar 2006 03:01:00 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:421477</guid><dc:creator>wigunara</dc:creator><slash:comments>1</slash:comments><comments>http://blogs.technet.com/willg/comments/421477.aspx</comments><wfw:commentRss>http://blogs.technet.com/willg/commentrss.aspx?PostID=421477</wfw:commentRss><description>&lt;P&gt;I want to share with you the enthusiasm&amp;nbsp;I have for the Windows Mobile platform. If I had to pick an area of innovation that excited me most last year,&amp;nbsp;it would have to be&amp;nbsp;the developments in the Windows Mobile space. Windows and SQL Mobile 2005 in conjunction with the .NET Compact Framework&amp;nbsp;2.0 form an incredibly powerful platform for mobile information workers.&lt;/P&gt;
&lt;P&gt;How many of you have a Windows Mobile powered device - a PDA or Smartphone?&lt;/P&gt;
&lt;P&gt;Did you know you could get SQL Mobile for your Windows Mobile device? &lt;/P&gt;
&lt;P&gt;Did you know that SQL Mobile can be a merge replication subscriber for data from your backend SQL Server 2000 or 2005 databases?&lt;/P&gt;
&lt;P&gt;Now imagine what you could do with that? Any data stored in a SQL Server database could be made available to a Windows Mobile equipped workforce. &lt;/P&gt;
&lt;P&gt;Obviously in order to do anything meaninful with that data you need a front-end application on the PDA or Smartphone, that's where the .NET Compact Framework 2.0 comes in handy.&lt;/P&gt;
&lt;P&gt;Changes to the data on the mobile device are synchronised with SQL Server when replication is triggered and a flexible conflict resolution system is on hand should the complexity of your solution require it.&lt;/P&gt;
&lt;P&gt;To find out more about SQL Mobile 2005 visit &lt;A href="http://www.microsoft.com/sql/editions/sqlmobile/default.mspx"&gt;http://www.microsoft.com/sql/editions/sqlmobile/default.mspx&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=421477" width="1" height="1"&gt;</description><category domain="http://blogs.technet.com/willg/archive/tags/Mobility/default.aspx">Mobility</category></item></channel></rss>