<?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>Rahul PS - WinCE Blogs</title>
	<atom:link href="http://rahulps.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://rahulps.wordpress.com</link>
	<description>Just another WordPress.com weblog</description>
	<lastBuildDate>Mon, 10 Aug 2009 10:38:32 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='rahulps.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Rahul PS - WinCE Blogs</title>
		<link>http://rahulps.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://rahulps.wordpress.com/osd.xml" title="Rahul PS - WinCE Blogs" />
	<atom:link rel='hub' href='http://rahulps.wordpress.com/?pushpress=hub'/>
		<item>
		<title>What’s in the Slot 0??</title>
		<link>http://rahulps.wordpress.com/2009/08/10/what%e2%80%99s-in-the-slot-0/</link>
		<comments>http://rahulps.wordpress.com/2009/08/10/what%e2%80%99s-in-the-slot-0/#comments</comments>
		<pubDate>Mon, 10 Aug 2009 10:38:32 +0000</pubDate>
		<dc:creator>rahulprashant</dc:creator>
				<category><![CDATA[WinCE 5.0]]></category>

		<guid isPermaLink="false">http://rahulps.wordpress.com/?p=43</guid>
		<description><![CDATA[As we know that when the Windows CE operating system initializes, a single 4GB virtual address space is created and all Win32 processes share this address space. This address space is divided up into 33 slots (slot 0 to slot 32) of 32MB.  Slot start address Slot Content 0&#215;40000000 32 Calculator 0&#215;08000000 &#8211; 0x3C000000 5-31 [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rahulps.wordpress.com&amp;blog=4856780&amp;post=43&amp;subd=rahulps&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>As we know that when the Windows CE operating system initializes, a single 4GB virtual address space is created and all Win32 processes share this address space. This address space is divided up into 33 slots (slot 0 to slot 32) of 32MB. </p>
<table style="width:274px;height:176px;" border="0" cellpadding="0" width="274">
<tbody>
<tr>
<td valign="top"><strong>Slot start address</strong></td>
<td valign="top"><strong>Slot</strong></td>
<td valign="top"><strong>Content</strong></td>
</tr>
<tr>
<td valign="top">0&#215;40000000</td>
<td valign="top">32</td>
<td valign="top">Calculator</td>
</tr>
<tr>
<td valign="top">0&#215;08000000 &#8211; 0x3C000000</td>
<td valign="top">5-31</td>
<td valign="top">27 other processes</td>
</tr>
<tr>
<td valign="top">0&#215;08000000</td>
<td valign="top">4</td>
<td valign="top">Pocket Word</td>
</tr>
<tr>
<td valign="top">0&#215;06000000</td>
<td valign="top">3</td>
<td valign="top">Explorer</td>
</tr>
<tr>
<td valign="top">0&#215;04000000</td>
<td valign="top">2</td>
<td valign="top">GWES.EXE</td>
</tr>
<tr>
<td valign="top">0&#215;02000000</td>
<td valign="top">1</td>
<td valign="top">NK.EXE</td>
</tr>
<tr>
<td valign="top">0&#215;00000000</td>
<td valign="top">0</td>
<td valign="top">Currently running process</td>
</tr>
</tbody>
</table>
<p>(Fig: 1) </p>
<p>An attempt to read or write to any memory address above these 33 slots (address 0&#215;42000000) always causes an access violation to be raised. When a process initializes, Windows CE selects an open slot for the new process and populates the slot. </p>
<p>So an application can use no more than 32MB of storage. But if any application requires more than 32 MB of virtual space, it can be done by some APIs.<br />
Within “EACH” slot, offset 0&#215;00000000 to 0x0000FFFF is a 64KB region that is always free. Any attempt to read or write within this offset always causes an access violation to be raised. The EXE file&#8217;s code and data sections load starting at address 0&#215;00010000 (64KB). Immediately following the EXE module are regions reserved for the primary thread&#8217;s stack and the process&#8217;s default heap. Any additional thread stacks and heaps will also be allocated around this area. </p>
<table border="0" cellpadding="0" width="250">
<tbody>
<tr>
<td valign="top"><strong>Content</strong></td>
</tr>
<tr>
<td valign="top">Dynamic-link libraries from ROM</td>
</tr>
<tr>
<td valign="top">Dynamic-link libraries from RAM</td>
</tr>
<tr>
<td valign="top">Thread stacks / default heap</td>
</tr>
<tr>
<td valign="top">The EXE&#8217;s code and data sections</td>
</tr>
<tr>
<td valign="top">Free space</td>
</tr>
</tbody>
</table>
<p>(Fig: 2) </p>
<p>Windows CE loads all RAM DLLs at the same address in all process slots. For example, let&#8217;s say that process A is the first process to load the A.dll and that this DLL loads at offset 0&#215;01800000 in process A&#8217;s slot. Now, if process B later calls LoadLibrary to also load A.dll, the system must be able to map A.dll to offset 0&#215;01800000 in process B&#8217;s slot. If there is something else occupying this region in process B&#8217;s slot, its call to LoadLibrary fails, returning NULL.<br />
Again, the reason why Windows CE works this way is to conserve memory. The first time A.dll is loaded, Windows CE performs all necessary fixups to the code so that references to any global and static variables inside the DLL are correct. If another process loads XYZ.DLL at a different memory address, the system must again perform fixups and this requires more memory. So instead of using the additional memory, the Windows CE architects chose to fail the call to LoadLibrary.</p>
<p>Slot 0, the bottommost 32MB, is special. What appears in this slot is the address space of the currently running process. For example, when a thread in Pocket Word is running (see Fig: 1), Windows CE maps the 32MB region starting at 0&#215;08000000 to slot 0&#8242;s region starting at 0&#215;00000000. The process&#8217;s address space is actually visible to threads in the application via two different virtual memory addresses: slot 0 and the process&#8217;s original slot (slot 4 in this example). If you were to examine the thread&#8217;s registers, you&#8217;d see that the stack pointer and base pointer registers reflect addresses that are in slot 4 and the instruction pointer register reflects an address in slot 0. When you call functions that allocate memory like HeapAlloc, malloc, or VirtualAlloc, the addresses you get back are inside slot 0, not your process&#8217;s original slot.</p>
<p>In WinCE all processes share a single address space, so it seems that applications could easily corrupt each other just like they could in 16-bit Windows. However, Windows CE does not allow one application to corrupt another. Windows CE protects Win32 processes by altering page protections. When a thread in a process is active, all pages belonging to all other processes are protected. An executing thread can touch addresses in slot 0 and in its process&#8217;s original slot, but an attempt to touch an address in any other slot causes an access violation to occur.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/rahulps.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/rahulps.wordpress.com/43/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/rahulps.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/rahulps.wordpress.com/43/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/rahulps.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/rahulps.wordpress.com/43/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/rahulps.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/rahulps.wordpress.com/43/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/rahulps.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/rahulps.wordpress.com/43/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/rahulps.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/rahulps.wordpress.com/43/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/rahulps.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/rahulps.wordpress.com/43/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rahulps.wordpress.com&amp;blog=4856780&amp;post=43&amp;subd=rahulps&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://rahulps.wordpress.com/2009/08/10/what%e2%80%99s-in-the-slot-0/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/eded774c9e2c2b835b1e38f91419ee45?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">rahulprashant</media:title>
		</media:content>
	</item>
		<item>
		<title>How to create a Control panel Application for WinCE 6.0 OS image?</title>
		<link>http://rahulps.wordpress.com/2009/07/13/how-to-create-a-control-panel-application-for-wince-6-0-os-image/</link>
		<comments>http://rahulps.wordpress.com/2009/07/13/how-to-create-a-control-panel-application-for-wince-6-0-os-image/#comments</comments>
		<pubDate>Mon, 13 Jul 2009 12:42:41 +0000</pubDate>
		<dc:creator>rahulprashant</dc:creator>
				<category><![CDATA[Emulator: How to Topics]]></category>

		<guid isPermaLink="false">http://rahulps.wordpress.com/?p=38</guid>
		<description><![CDATA[1.      It is assumed that you have already build a WinCE 6.0 image. 2.      Create a Hello World Application. This application will be attached to the applet. You can create any other application (Or you can attach an already developed application. Simply you will have to provide path of already in the applet source file, [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rahulps.wordpress.com&amp;blog=4856780&amp;post=38&amp;subd=rahulps&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p class="MsoNormal" style="text-indent:-.25in;text-align:justify;margin:3pt 0 3pt .25in;"><span style="font-size:10pt;font-family:Verdana;"><span>1.<span style="font:7pt &quot;">      </span></span></span><span style="font-size:10pt;font-family:Verdana;">It is assumed that you have already build a WinCE 6.0 image. </span></p>
<p class="MsoNormal" style="text-indent:-.25in;text-align:justify;margin:3pt 0 3pt .25in;"><span style="font-size:10pt;font-family:Verdana;"><span>2.<span style="font:7pt &quot;">      </span></span></span><span style="font-size:10pt;font-family:Verdana;">Create a Hello World Application. This application will be attached to the applet. You can create any other application (Or you can attach an already developed application. Simply you will have to provide path of already in the applet source file, which will be described later).</span></p>
<p class="MsoNormal" style="text-indent:-.25in;text-align:justify;margin:3pt 0 3pt .25in;"><span style="font-size:10pt;font-family:Verdana;"><span>3.<span style="font:7pt &quot;">      </span></span></span><span style="font-size:10pt;font-family:Verdana;">To create and build the Hello World application</span></p>
<p class="MsoNormal" style="text-align:justify;margin:0 0 0 .25in;"><span style="font-size:10pt;font-family:Verdana;"> </span></p>
<p class="MsoNormal" style="text-indent:-.25in;text-align:justify;margin:0 0 0 .5in;"><span style="font-size:10pt;font-family:Verdana;"><span>a.<span style="font:7pt &quot;">      </span></span></span><span style="font-size:10pt;font-family:Verdana;">From the File menu, select <em>New</em>, and then select <em>Subproject</em>.</span></p>
<p class="MsoNormal" style="text-indent:-.25in;text-align:justify;margin:0 0 0 .5in;"><span style="font-size:10pt;font-family:Verdana;"><span>b.<span style="font:7pt &quot;">      </span></span></span><span style="font-size:10pt;font-family:Verdana;">In the Windows Embedded CE Subproject Wizard, select <em>WCE Application</em>.</span></p>
<p class="MsoNormal" style="text-indent:-.25in;text-align:justify;margin:0 0 0 .5in;"><span style="font-size:10pt;font-family:Verdana;"><span>c.<span style="font:7pt &quot;">      </span></span></span><span style="font-size:10pt;font-family:Verdana;">Type the name HelloWorld for your application in the Subproject name box. Click Next.</span></p>
<p class="MsoNormal" style="text-indent:-.25in;text-align:justify;margin:0 0 0 .5in;"><span style="font-size:10pt;font-family:Verdana;"><span>d.<span style="font:7pt &quot;">      </span></span></span><span style="font-size:10pt;font-family:Verdana;">In the Auto-generated subproject files page, choose A typical &#8220;Hello World&#8221; application and then choose Finish.</span></p>
<p class="MsoNormal" style="text-indent:-.25in;text-align:justify;margin:0 0 0 .5in;"><span style="font-size:10pt;font-family:Verdana;"><span>e.<span style="font:7pt &quot;">      </span></span></span><span style="font-size:10pt;font-family:Verdana;">Your project appears in the Platform Builder IDE, in the Solution Explorer window under the Subprojects node.</span></p>
<p class="MsoNormal" style="text-indent:-.25in;text-align:justify;margin:0 0 0 .5in;"><span style="font-size:10pt;font-family:Verdana;"><span>f.<span style="font:7pt &quot;">       </span></span></span><span style="font-size:10pt;font-family:Verdana;">In the Solution Explorer window, expand the Suborojects node, and right-click the HelloWorld project name and choose Build.</span></p>
<p class="MsoNormal" style="text-align:justify;margin:0;"><span style="font-size:10pt;font-family:Verdana;"> </span></p>
<p class="MsoNormal" style="text-indent:-.25in;text-align:justify;margin:3pt 0 3pt .25in;"><span style="font-size:10pt;font-family:Verdana;"><span>4.<span style="font:7pt &quot;">      </span></span></span><span style="font-size:10pt;font-family:Verdana;">Your target application is ready. Now we have to create the applet. We will create a DLL application for our Control Panel application and then add specific Control Panel code to it. When it is complete, this Control Panel application invokes a simple application (which we have just created above) called HelloWorld.exe.</span></p>
<p class="MsoNormal" style="text-indent:-.25in;text-align:justify;margin:3pt 0 3pt .25in;"><span style="font-size:10pt;font-family:Verdana;"><span>5.<span style="font:7pt &quot;">      </span></span></span><span style="font-size:10pt;font-family:Verdana;">To create a DLL project</span></p>
<p class="MsoNormal" style="text-indent:-.25in;text-align:justify;margin:0 0 0 .5in;"><span style="font-size:10pt;font-family:Verdana;"><span>a.<span style="font:7pt &quot;">      </span></span></span><span style="font-size:10pt;font-family:Verdana;">From the File menu, choose New, and then select Subproject.</span></p>
<p class="MsoNormal" style="text-indent:-.25in;text-align:justify;margin:0 0 0 .5in;"><span style="font-size:10pt;font-family:Verdana;"><span>b.<span style="font:7pt &quot;">      </span></span></span><span style="font-size:10pt;font-family:Verdana;">In the Windows Embedded CE Subproject Wizard, select WCE Dynamic-Link Library.</span></p>
<p class="MsoNormal" style="text-indent:-.25in;text-align:justify;margin:0 0 0 .5in;"><span style="font-size:10pt;font-family:Verdana;"><span>c.<span style="font:7pt &quot;">      </span></span></span><span style="font-size:10pt;font-family:Verdana;">Type the name HelloCPL for your Control Panel application in the Subproject name box. Click Next.</span></p>
<p class="MsoNormal" style="text-indent:-.25in;text-align:justify;margin:0 0 0 .5in;"><span style="font-size:10pt;font-family:Verdana;"><span>d.<span style="font:7pt &quot;">      </span></span></span><span style="font-size:10pt;font-family:Verdana;">Be sure to use the specific name HelloCPL. Some of the code in related steps relies on auto-generated data types that are provided by the New Project Wizard and based on this name. </span></p>
<p class="MsoNormal" style="text-indent:-.25in;text-align:justify;margin:0 0 0 .5in;"><span style="font-size:10pt;font-family:Verdana;"><span>e.<span style="font:7pt &quot;">      </span></span></span><span style="font-size:10pt;font-family:Verdana;">Note:<span>  </span></span></p>
<p class="MsoNormal" style="text-indent:-.25in;text-align:justify;margin:0 0 0 .5in;"><span style="font-size:10pt;font-family:Verdana;"><span>f.<span style="font:7pt &quot;">       </span></span></span><span style="font-size:10pt;font-family:Verdana;">Do not add the .cpl file extension to your project name. You provide this later when </span></p>
<p class="MsoNormal" style="text-indent:-.25in;text-align:justify;margin:0 0 0 .5in;"><span style="font-size:10pt;font-family:Verdana;"><span>g.<span style="font:7pt &quot;">      </span></span></span><span style="font-size:10pt;font-family:Verdana;">you configure the build settings for your project.</span></p>
<p class="MsoNormal" style="text-indent:-.25in;text-align:justify;margin:0 0 0 .5in;"><span style="font-size:10pt;font-family:Verdana;"><span>h.<span style="font:7pt &quot;">      </span></span></span><span style="font-size:10pt;font-family:Verdana;">In the Auto-generated subproject files page, select A DLL that exports some symbols and then click Finish.</span></p>
<p class="MsoNormal" style="text-indent:-.25in;text-align:justify;margin:3pt 0 3pt .25in;"><span style="font-size:10pt;font-family:Verdana;"><span>6.<span style="font:7pt &quot;">      </span></span></span><span style="font-size:10pt;font-family:Verdana;">At this point, the DLL project is simply an empty shell with the correct infrastructure and settings to compile your project into a DLL. The next step is to add the actual code for your Control Panel application.</span></p>
<p class="MsoNormal" style="text-indent:-.25in;text-align:justify;margin:3pt 0 3pt .25in;"><span style="font-size:10pt;font-family:Verdana;"><span>7.<span style="font:7pt &quot;">      </span></span></span><span style="font-size:10pt;font-family:Verdana;">To add Control Panel code to your project</span></p>
<p class="MsoNormal" style="text-indent:-.25in;text-align:justify;margin:0 0 0 .5in;"><span style="font-size:10pt;font-family:Verdana;"><span>a.<span style="font:7pt &quot;">      </span></span></span><span style="font-size:10pt;font-family:Verdana;">Open the source file of your DLL project (HelloCPL.cpp)</span></p>
<p class="MsoNormal" style="text-indent:-.25in;text-align:justify;margin:0 0 0 .5in;"><span style="font-size:10pt;font-family:Verdana;"><span>b.<span style="font:7pt &quot;">      </span></span></span><span style="font-size:10pt;font-family:Verdana;">Replace the existing code with the following code:</span></p>
<p class="MsoNormal" style="text-align:justify;margin:3pt 0 3pt .5in;"><span style="font-size:10pt;font-family:Verdana;">//</span></p>
<p class="MsoNormal" style="text-align:justify;margin:3pt 0 3pt .5in;"><span style="font-size:10pt;font-family:Verdana;">// HelloCPL.cpp : Defines the entry point for the DLL</span></p>
<p class="MsoNormal" style="text-align:justify;margin:3pt 0 3pt .5in;"><span style="font-size:10pt;font-family:Verdana;">//</span></p>
<p class="MsoNormal" style="text-align:justify;margin:3pt 0 3pt .5in;"><span style="font-size:10pt;font-family:Verdana;"> </span></p>
<p class="MsoNormal" style="text-align:justify;margin:3pt 0 3pt .5in;"><span style="font-size:10pt;font-family:Verdana;">#include &#8220;stdafx.h&#8221;<span>    </span>// Auto-generated by wizard.</span></p>
<p class="MsoNormal" style="text-align:justify;margin:3pt 0 3pt .5in;"><span style="font-size:10pt;font-family:Verdana;">#include &#8220;HelloCPL.h&#8221;<span>  </span>// Auto-generated by wizard.</span></p>
<p class="MsoNormal" style="text-align:justify;margin:3pt 0 3pt .5in;"><span style="font-size:10pt;font-family:Verdana;">#include &#8220;resource.h&#8221;<span>  </span>// Auto-generated at compile time</span></p>
<p class="MsoNormal" style="text-align:justify;margin:3pt 0 3pt .5in;"><span style="font-size:10pt;font-family:Verdana;"> </span></p>
<p class="MsoNormal" style="text-align:justify;margin:3pt 0 3pt .5in;"><span style="font-size:10pt;font-family:Verdana;">#include &lt;tchar.h&gt;<span>     </span>// General text functions.</span></p>
<p class="MsoNormal" style="text-align:justify;margin:3pt 0 3pt .5in;"><span style="font-size:10pt;font-family:Verdana;">#include &#8220;cpl.h&#8221;<span>       </span>// Control Panel support.</span></p>
<p class="MsoNormal" style="text-align:justify;margin:3pt 0 3pt .5in;"><span style="font-size:10pt;font-family:Verdana;"> </span></p>
<p class="MsoNormal" style="text-align:justify;margin:3pt 0 3pt .5in;"><span style="font-size:10pt;font-family:Verdana;">// Returns the number of characters in an expression.</span></p>
<p class="MsoNormal" style="text-align:justify;margin:3pt 0 3pt .5in;"><span style="font-size:10pt;font-family:Verdana;">#define lengthof(exp) ((sizeof((exp)))/sizeof((*(exp))))</span></p>
<p class="MsoNormal" style="text-align:justify;margin:3pt 0 3pt .5in;"><span style="font-size:10pt;font-family:Verdana;"> </span></p>
<p class="MsoNormal" style="text-align:justify;margin:3pt 0 3pt .5in;"><span style="font-size:10pt;font-family:Verdana;">HMODULE g_hModule = NULL;<span>   </span>// Handle to the DLL.</span></p>
<p class="MsoNormal" style="text-align:justify;margin:3pt 0 3pt .5in;"><span style="font-size:10pt;font-family:Verdana;"> </span></p>
<p class="MsoNormal" style="text-align:justify;margin:3pt 0 3pt .5in;"><span style="font-size:10pt;font-family:Verdana;">// =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=</span></p>
<p class="MsoNormal" style="text-align:justify;margin:3pt 0 3pt .5in;"><span style="font-size:10pt;font-family:Verdana;">// Main entry point for the Control Panel DLL.</span></p>
<p class="MsoNormal" style="text-align:justify;margin:3pt 0 3pt .5in;"><span style="font-size:10pt;font-family:Verdana;">// =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=</span></p>
<p class="MsoNormal" style="text-align:justify;margin:3pt 0 3pt .5in;"><span style="font-size:10pt;font-family:Verdana;">extern &#8220;C&#8221; BOOL APIENTRY DllMain( HANDLE hModule, </span></p>
<p class="MsoNormal" style="text-align:justify;margin:3pt 0 3pt .5in;"><span style="font-size:10pt;font-family:Verdana;"><span>                       </span>DWORD<span>  </span>ul_reason_for_call, </span></p>
<p class="MsoNormal" style="text-align:justify;margin:3pt 0 3pt .5in;"><span style="font-size:10pt;font-family:Verdana;"><span>                       </span>LPVOID lpReserved )</span></p>
<p class="MsoNormal" style="text-align:justify;margin:3pt 0 3pt .5in;"><span style="font-size:10pt;font-family:Verdana;">{</span></p>
<p class="MsoNormal" style="text-align:justify;margin:3pt 0 3pt .5in;"><span style="font-size:10pt;font-family:Verdana;"><span>  </span>switch (ul_reason_for_call)</span></p>
<p class="MsoNormal" style="text-align:justify;margin:3pt 0 3pt .5in;"><span style="font-size:10pt;font-family:Verdana;"><span>  </span>{</span></p>
<p class="MsoNormal" style="text-align:justify;margin:3pt 0 3pt .5in;"><span style="font-size:10pt;font-family:Verdana;"><span>    </span>case DLL_PROCESS_ATTACH:</span></p>
<p class="MsoNormal" style="text-align:justify;margin:3pt 0 3pt .5in;"><span style="font-size:10pt;font-family:Verdana;"><span>    </span>{</span></p>
<p class="MsoNormal" style="text-align:justify;margin:3pt 0 3pt .5in;"><span style="font-size:10pt;font-family:Verdana;"><span>      </span>g_hModule = (HMODULE) hModule;</span></p>
<p class="MsoNormal" style="text-align:justify;margin:3pt 0 3pt .5in;"><span style="font-size:10pt;font-family:Verdana;"><span>    </span>}</span></p>
<p class="MsoNormal" style="text-align:justify;margin:3pt 0 3pt .5in;"><span style="font-size:10pt;font-family:Verdana;"><span>    </span>case DLL_THREAD_ATTACH:</span></p>
<p class="MsoNormal" style="text-align:justify;margin:3pt 0 3pt .5in;"><span style="font-size:10pt;font-family:Verdana;"><span>    </span>case DLL_THREAD_DETACH:</span></p>
<p class="MsoNormal" style="text-align:justify;margin:3pt 0 3pt .5in;"><span style="font-size:10pt;font-family:Verdana;"><span>    </span>case DLL_PROCESS_DETACH:</span></p>
<p class="MsoNormal" style="text-align:justify;margin:3pt 0 3pt .5in;"><span style="font-size:10pt;font-family:Verdana;"><span>       </span>break;</span></p>
<p class="MsoNormal" style="text-align:justify;margin:3pt 0 3pt .5in;"><span style="font-size:10pt;font-family:Verdana;"><span>    </span>}</span></p>
<p class="MsoNormal" style="text-align:justify;margin:3pt 0 3pt .5in;"><span style="font-size:10pt;font-family:Verdana;"><span>    </span>return TRUE;</span></p>
<p class="MsoNormal" style="text-align:justify;margin:3pt 0 3pt .5in;"><span style="font-size:10pt;font-family:Verdana;">}</span></p>
<p class="MsoNormal" style="text-align:justify;margin:3pt 0 3pt .5in;"><span style="font-size:10pt;font-family:Verdana;"> </span></p>
<p class="MsoNormal" style="text-align:justify;margin:3pt 0 3pt .5in;"><span style="font-size:10pt;font-family:Verdana;">// =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=</span></p>
<p class="MsoNormal" style="text-align:justify;margin:3pt 0 3pt .5in;"><span style="font-size:10pt;font-family:Verdana;">// The entry point to the Control Panel application.</span></p>
<p class="MsoNormal" style="text-align:justify;margin:3pt 0 3pt .5in;"><span style="font-size:10pt;font-family:Verdana;">// =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=</span></p>
<p class="MsoNormal" style="text-align:justify;margin:3pt 0 3pt .5in;"><span style="font-size:10pt;font-family:Verdana;">extern &#8220;C&#8221; HelloCPL_API LONG CALLBACK CPlApplet(HWND hwndCPL,</span></p>
<p class="MsoNormal" style="text-align:justify;margin:3pt 0 3pt .5in;"><span style="font-size:10pt;font-family:Verdana;"><span>                  </span>UINT message, LPARAM lParam1, LPARAM lParam2)</span></p>
<p class="MsoNormal" style="text-align:justify;margin:3pt 0 3pt .5in;"><span style="font-size:10pt;font-family:Verdana;">{</span></p>
<p class="MsoNormal" style="text-align:justify;margin:3pt 0 3pt .5in;"><span style="font-size:10pt;font-family:Verdana;"><span>  </span>switch (message)</span></p>
<p class="MsoNormal" style="text-align:justify;margin:3pt 0 3pt .5in;"><span style="font-size:10pt;font-family:Verdana;"><span>  </span>{</span></p>
<p class="MsoNormal" style="text-align:justify;margin:3pt 0 3pt .5in;"><span style="font-size:10pt;font-family:Verdana;"><span>    </span>case CPL_INIT:</span></p>
<p class="MsoNormal" style="text-align:justify;margin:3pt 0 3pt .5in;"><span style="font-size:10pt;font-family:Verdana;"><span>      </span>// Perform global initializations, especially memory</span></p>
<p class="MsoNormal" style="text-align:justify;margin:3pt 0 3pt .5in;"><span style="font-size:10pt;font-family:Verdana;"><span>      </span>// allocations, here.</span></p>
<p class="MsoNormal" style="text-align:justify;margin:3pt 0 3pt .5in;"><span style="font-size:10pt;font-family:Verdana;"><span>      </span>// Return 1 for success or 0 for failure.</span></p>
<p class="MsoNormal" style="text-align:justify;margin:3pt 0 3pt .5in;"><span style="font-size:10pt;font-family:Verdana;"><span>      </span>// Control Panel does not load if failure is returned.</span></p>
<p class="MsoNormal" style="text-align:justify;margin:3pt 0 3pt .5in;"><span style="font-size:10pt;font-family:Verdana;"><span>      </span>return 1;</span></p>
<p class="MsoNormal" style="text-align:justify;margin:3pt 0 3pt .5in;"><span style="font-size:10pt;font-family:Verdana;"> </span></p>
<p class="MsoNormal" style="text-align:justify;margin:3pt 0 3pt .5in;"><span style="font-size:10pt;font-family:Verdana;"><span>    </span>case CPL_GETCOUNT:</span></p>
<p class="MsoNormal" style="text-align:justify;margin:3pt 0 3pt .5in;"><span style="font-size:10pt;font-family:Verdana;"><span>      </span>// The number of actions supported by this Control</span></p>
<p class="MsoNormal" style="text-align:justify;margin:3pt 0 3pt .5in;"><span style="font-size:10pt;font-family:Verdana;"><span>      </span>// Panel application.</span></p>
<p class="MsoNormal" style="text-align:justify;margin:3pt 0 3pt .5in;"><span style="font-size:10pt;font-family:Verdana;"><span>      </span>return 1;</span></p>
<p class="MsoNormal" style="text-align:justify;margin:3pt 0 3pt .5in;"><span style="font-size:10pt;font-family:Verdana;"> </span></p>
<p class="MsoNormal" style="text-align:justify;margin:3pt 0 3pt .5in;"><span style="font-size:10pt;font-family:Verdana;"><span>    </span>case CPL_NEWINQUIRE:</span></p>
<p class="MsoNormal" style="text-align:justify;margin:3pt 0 3pt .5in;"><span style="font-size:10pt;font-family:Verdana;"><span>      </span>// This message is sent once for each dialog box, as</span></p>
<p class="MsoNormal" style="text-align:justify;margin:3pt 0 3pt .5in;"><span style="font-size:10pt;font-family:Verdana;"><span>      </span>// determined by the value returned from CPL_GETCOUNT.</span></p>
<p class="MsoNormal" style="text-align:justify;margin:3pt 0 3pt .5in;"><span style="font-size:10pt;font-family:Verdana;"><span>      </span>// lParam1 is the 0-based index of the dialog box.</span></p>
<p class="MsoNormal" style="text-align:justify;margin:3pt 0 3pt .5in;"><span style="font-size:10pt;font-family:Verdana;"><span>      </span>// lParam2 is a pointer to the NEWCPLINFO structure.</span></p>
<p class="MsoNormal" style="text-align:justify;margin:3pt 0 3pt .5in;"><span style="font-size:10pt;font-family:Verdana;"><span>    </span>{</span></p>
<p class="MsoNormal" style="text-align:justify;margin:3pt 0 3pt .5in;"><span style="font-size:10pt;font-family:Verdana;"><span>      </span>ASSERT(0 == lParam1);</span></p>
<p class="MsoNormal" style="text-align:justify;margin:3pt 0 3pt .5in;"><span style="font-size:10pt;font-family:Verdana;"><span>      </span>ASSERT(lParam2);</span></p>
<p class="MsoNormal" style="text-align:justify;margin:3pt 0 3pt .5in;"><span style="font-size:10pt;font-family:Verdana;"> </span></p>
<p class="MsoNormal" style="text-align:justify;margin:3pt 0 3pt .5in;"><span style="font-size:10pt;font-family:Verdana;"><span>      </span>NEWCPLINFO* lpNewCplInfo = (NEWCPLINFO *) lParam2;</span></p>
<p class="MsoNormal" style="text-align:justify;margin:3pt 0 3pt .5in;"><span style="font-size:10pt;font-family:Verdana;"><span>      </span>if (lpNewCplInfo)</span></p>
<p class="MsoNormal" style="text-align:justify;margin:3pt 0 3pt .5in;"><span style="font-size:10pt;font-family:Verdana;"><span>      </span>{</span></p>
<p class="MsoNormal" style="text-align:justify;margin:3pt 0 3pt .5in;"><span style="font-size:10pt;font-family:Verdana;"><span>         </span>lpNewCplInfo-&gt;dwSize = sizeof(NEWCPLINFO);</span></p>
<p class="MsoNormal" style="text-align:justify;margin:3pt 0 3pt .5in;"><span style="font-size:10pt;font-family:Verdana;"><span>         </span>lpNewCplInfo-&gt;dwFlags = 0;</span></p>
<p class="MsoNormal" style="text-align:justify;margin:3pt 0 3pt .5in;"><span style="font-size:10pt;font-family:Verdana;"><span>         </span>lpNewCplInfo-&gt;dwHelpContext = 0;</span></p>
<p class="MsoNormal" style="text-align:justify;margin:3pt 0 3pt .5in;"><span style="font-size:10pt;font-family:Verdana;"><span>         </span>lpNewCplInfo-&gt;lData = IDI_HELLOWORLD;</span></p>
<p class="MsoNormal" style="text-align:justify;margin:3pt 0 3pt .5in;"><span style="font-size:10pt;font-family:Verdana;"> </span></p>
<p class="MsoNormal" style="text-align:justify;margin:3pt 0 3pt .5in;"><span style="font-size:10pt;font-family:Verdana;"><span>         </span>// The large icon for this application. Do not free this </span></p>
<p class="MsoNormal" style="text-align:justify;margin:3pt 0 3pt .5in;"><span style="font-size:10pt;font-family:Verdana;"><span>         </span>// HICON; it is freed by the Control Panel infrastructure.</span></p>
<p class="MsoNormal" style="text-align:justify;margin:3pt 0 3pt .5in;"><span style="font-size:10pt;font-family:Verdana;"><span>         </span>lpNewCplInfo-&gt;hIcon = LoadIcon(g_hModule,</span></p>
<p class="MsoNormal" style="text-align:justify;margin:3pt 0 3pt .5in;"><span style="font-size:10pt;font-family:Verdana;"><span>                                  </span>MAKEINTRESOURCE(IDI_HELLOWORLD));</span></p>
<p class="MsoNormal" style="text-align:justify;margin:3pt 0 3pt .5in;"><span style="font-size:10pt;font-family:Verdana;"> </span></p>
<p class="MsoNormal" style="text-align:justify;margin:3pt 0 3pt .5in;"><span style="font-size:10pt;font-family:Verdana;"><span>          </span>LoadString(g_hModule, IDS_APP_TITLE, lpNewCplInfo-&gt;szName,</span></p>
<p class="MsoNormal" style="text-align:justify;margin:3pt 0 3pt .5in;"><span style="font-size:10pt;font-family:Verdana;"><span>                     </span>lengthof(lpNewCplInfo-&gt;szName));</span></p>
<p class="MsoNormal" style="text-align:justify;margin:3pt 0 3pt .5in;"><span style="font-size:10pt;font-family:Verdana;"><span>          </span>LoadString(g_hModule, IDS_HELLO, lpNewCplInfo-&gt;szInfo,</span></p>
<p class="MsoNormal" style="text-align:justify;margin:3pt 0 3pt .5in;"><span style="font-size:10pt;font-family:Verdana;"><span>                     </span>lengthof(lpNewCplInfo-&gt;szInfo));</span></p>
<p class="MsoNormal" style="text-align:justify;margin:3pt 0 3pt .5in;"><span style="font-size:10pt;font-family:Verdana;"><span>        </span>LoadString(g_hModule, IDC_HelloWorld, lpNewCplInfo-&gt;szInfo,</span></p>
<p class="MsoNormal" style="text-align:justify;margin:3pt 0 3pt .5in;"><span style="font-size:10pt;font-family:Verdana;"><span>                     </span>lengthof(lpNewCplInfo-&gt;szInfo));</span></p>
<p class="MsoNormal" style="text-align:justify;margin:3pt 0 3pt .5in;"><span style="font-size:10pt;font-family:Verdana;"><span>          </span>_tcscpy(lpNewCplInfo-&gt;szHelpFile, _T(&#8220;&#8221;));</span></p>
<p class="MsoNormal" style="text-align:justify;margin:3pt 0 3pt .5in;"><span style="font-size:10pt;font-family:Verdana;"><span>          </span>return 0;</span></p>
<p class="MsoNormal" style="text-align:justify;margin:3pt 0 3pt .5in;"><span style="font-size:10pt;font-family:Verdana;"><span>      </span>}</span></p>
<p class="MsoNormal" style="text-align:justify;margin:3pt 0 3pt .5in;"><span style="font-size:10pt;font-family:Verdana;"><span>      </span>return 1;<span>  </span>// Nonzero value means CPlApplet failed.</span></p>
<p class="MsoNormal" style="text-align:justify;margin:3pt 0 3pt .5in;"><span style="font-size:10pt;font-family:Verdana;"><span>    </span>}</span></p>
<p class="MsoNormal" style="text-align:justify;margin:3pt 0 3pt .5in;"><span style="font-size:10pt;font-family:Verdana;"> </span></p>
<p class="MsoNormal" style="text-align:justify;margin:3pt 0 3pt .5in;"><span style="font-size:10pt;font-family:Verdana;"><span>    </span>case CPL_DBLCLK:</span></p>
<p class="MsoNormal" style="text-align:justify;margin:3pt 0 3pt .5in;"><span style="font-size:10pt;font-family:Verdana;"><span>    </span>{</span></p>
<p class="MsoNormal" style="text-align:justify;margin:3pt 0 3pt .5in;"><span style="font-size:10pt;font-family:Verdana;"><span>      </span>// The user has double-clicked the icon for the</span></p>
<p class="MsoNormal" style="text-align:justify;margin:3pt 0 3pt .5in;"><span style="font-size:10pt;font-family:Verdana;"><span>      </span>// dialog box in lParam1 (zero-based).</span></p>
<p class="MsoNormal" style="text-align:justify;margin:3pt 0 3pt .5in;"><span style="font-size:10pt;font-family:Verdana;"><span>      </span>PROCESS_INFORMATION pi = {0};</span></p>
<p class="MsoNormal" style="text-align:justify;margin:3pt 0 3pt .5in;"><span style="font-size:10pt;font-family:Verdana;"><span>      </span>if (CreateProcess(_T(&#8220;\\Windows\\HelloWorld.exe&#8221;), NULL, NULL,</span></p>
<p class="MsoNormal" style="text-align:justify;margin:3pt 0 3pt .5in;"><span style="font-size:10pt;font-family:Verdana;"><span>                             </span>NULL, FALSE, 0, NULL, NULL, NULL, &amp;pi))</span></p>
<p class="MsoNormal" style="text-align:justify;margin:3pt 0 3pt .5in;"><span style="font-size:10pt;font-family:Verdana;"><span>      </span>{</span></p>
<p class="MsoNormal" style="text-align:justify;margin:3pt 0 3pt .5in;"><span style="font-size:10pt;font-family:Verdana;"><span>        </span>CloseHandle(pi.hThread);</span></p>
<p class="MsoNormal" style="text-align:justify;margin:3pt 0 3pt .5in;"><span style="font-size:10pt;font-family:Verdana;"><span>        </span>CloseHandle(pi.hProcess);</span></p>
<p class="MsoNormal" style="text-align:justify;margin:3pt 0 3pt .5in;"><span style="font-size:10pt;font-family:Verdana;"><span>        </span>return 0;</span></p>
<p class="MsoNormal" style="text-align:justify;margin:3pt 0 3pt .5in;"><span style="font-size:10pt;font-family:Verdana;"><span>      </span>}</span></p>
<p class="MsoNormal" style="text-align:justify;margin:3pt 0 3pt .5in;"><span style="font-size:10pt;font-family:Verdana;"><span>      </span>return 1;<span>     </span>// CPlApplet failed.</span></p>
<p class="MsoNormal" style="text-align:justify;margin:3pt 0 3pt .5in;"><span style="font-size:10pt;font-family:Verdana;"><span>    </span>}</span></p>
<p class="MsoNormal" style="text-align:justify;margin:3pt 0 3pt .5in;"><span style="font-size:10pt;font-family:Verdana;"> </span></p>
<p class="MsoNormal" style="text-align:justify;margin:3pt 0 3pt .5in;"><span style="font-size:10pt;font-family:Verdana;"><span>    </span>case CPL_STOP:</span></p>
<p class="MsoNormal" style="text-align:justify;margin:3pt 0 3pt .5in;"><span style="font-size:10pt;font-family:Verdana;"><span>      </span>// Called once for each dialog box. Used for cleanup.</span></p>
<p class="MsoNormal" style="text-align:justify;margin:3pt 0 3pt .5in;"><span style="font-size:10pt;font-family:Verdana;"><span>    </span>case CPL_EXIT:</span></p>
<p class="MsoNormal" style="text-align:justify;margin:3pt 0 3pt .5in;"><span style="font-size:10pt;font-family:Verdana;"><span>      </span>// Called only once for the application. Used for cleanup.</span></p>
<p class="MsoNormal" style="text-align:justify;margin:3pt 0 3pt .5in;"><span style="font-size:10pt;font-family:Verdana;"><span>    </span>default:</span></p>
<p class="MsoNormal" style="text-align:justify;margin:3pt 0 3pt .5in;"><span style="font-size:10pt;font-family:Verdana;"><span>      </span>return 0;</span></p>
<p class="MsoNormal" style="text-align:justify;margin:3pt 0 3pt .5in;"><span style="font-size:10pt;font-family:Verdana;"><span>  </span>}</span></p>
<p class="MsoNormal" style="text-align:justify;margin:3pt 0 3pt .5in;"><span style="font-size:10pt;font-family:Verdana;"> </span></p>
<p class="MsoNormal" style="text-align:justify;margin:3pt 0 3pt .5in;"><span style="font-size:10pt;font-family:Verdana;"><span>  </span>return 1;<span>  </span>// CPlApplet failed.</span></p>
<p class="MsoNormal" style="text-align:justify;margin:3pt 0 3pt .5in;"><span style="font-size:10pt;font-family:Verdana;"><span>  </span>}<span>  </span>// CPlApplet</span></p>
<p class="MsoNormal" style="text-align:justify;margin:3pt 0 3pt 1in;"><span style="font-size:10pt;font-family:Verdana;"> </span></p>
<p class="MsoNormal" style="text-align:justify;margin:3pt 0 3pt .5in;"><span style="font-size:10pt;font-family:Verdana;">NOTE: It will be good if you understand the purpose of each switch case mentioned in above code.</span></p>
<p class="MsoNormal" style="text-align:justify;margin:3pt 0 3pt 1in;"><span style="font-size:10pt;font-family:Verdana;"> </span></p>
<p class="MsoNormal" style="text-indent:-.25in;text-align:justify;margin:0 0 0 .5in;"><span style="font-size:10pt;font-family:Verdana;"><span>c.<span style="font:7pt &quot;">      </span></span></span><span style="font-size:10pt;font-family:Verdana;">This code uses an icon resource named IDI_HELLOWORLD and three string resources named IDS_APP_TITLE, IDS_HELLO and IDC_HelloWorld. Before you can compile your application, we must add these resources to the DLL project.</span></p>
<p class="MsoNormal" style="text-indent:-.25in;text-align:justify;margin:0 0 0 .5in;"><span style="font-size:10pt;font-family:Verdana;"><span>d.<span style="font:7pt &quot;">      </span></span></span><span style="font-size:10pt;font-family:Verdana;">Three string resources, IDS_APP_TITLE, IDS_HELLO and IDC_HelloWorld.</span></p>
<p class="MsoNormal" style="text-indent:-.25in;text-align:justify;margin:0 0 0 .5in;"><span style="font-size:10pt;font-family:Verdana;"><span>e.<span style="font:7pt &quot;">      </span></span></span><span style="font-size:10pt;font-family:Verdana;">An icon resource, IDI_HELLOWORLD.</span></p>
<p class="MsoNormal" style="text-indent:-.25in;text-align:justify;margin:0 0 0 .5in;"><span style="font-size:10pt;font-family:Verdana;"><span>f.<span style="font:7pt &quot;">       </span></span></span><span style="font-size:10pt;font-family:Verdana;">To add a resource file to your HelloCPL project:</span></p>
<p class="MsoNormal" style="text-indent:-.75in;text-align:justify;margin:3pt 0 3pt .75in;"><span style="font-size:10pt;font-family:Verdana;"><span><span style="font:7pt &quot;">                        </span>i.<span style="font:7pt &quot;">        </span></span></span><span style="font-size:10pt;font-family:Verdana;">Select your HelloCPL project.</span></p>
<p class="MsoNormal" style="text-indent:-.75in;text-align:justify;margin:3pt 0 3pt .75in;"><span style="font-size:10pt;font-family:Verdana;"><span><span style="font:7pt &quot;">                       </span>ii.<span style="font:7pt &quot;">        </span></span></span><span style="font-size:10pt;font-family:Verdana;">Right-click the node, choose Add, and then choose Add item.</span></p>
<p class="MsoNormal" style="text-indent:-.75in;text-align:justify;margin:3pt 0 3pt .75in;"><span style="font-size:10pt;font-family:Verdana;"><span><span style="font:7pt &quot;">                     </span>iii.<span style="font:7pt &quot;">        </span></span></span><span style="font-size:10pt;font-family:Verdana;">The Add New Item dialog box appears. </span></p>
<p class="MsoNormal" style="text-indent:-.75in;text-align:justify;margin:3pt 0 3pt .75in;"><span style="font-size:10pt;font-family:Verdana;"><span><span style="font:7pt &quot;">                    </span>iv.<span style="font:7pt &quot;">        </span></span></span><span style="font-size:10pt;font-family:Verdana;">Choose the Resource, and then choose Resource File (.rc).</span></p>
<p class="MsoNormal" style="text-indent:-.75in;text-align:justify;margin:3pt 0 3pt .75in;"><span style="font-size:10pt;font-family:Verdana;"><span><span style="font:7pt &quot;">                      </span>v.<span style="font:7pt &quot;">        </span></span></span><span style="font-size:10pt;font-family:Verdana;">In the Name box, type the name HelloCPL for your project&#8217;s new resource file. Choose Add. Now close the tab.</span></p>
<p class="MsoNormal" style="text-indent:-.25in;text-align:justify;margin:0 0 0 .5in;"><span style="font-size:10pt;font-family:Verdana;"><span>g.<span style="font:7pt &quot;">      </span></span></span><span style="font-size:10pt;font-family:Verdana;">To add a string table to your resource file:</span></p>
<p class="MsoNormal" style="text-indent:-.75in;text-align:justify;margin:3pt 0 3pt .75in;"><span style="font-size:10pt;font-family:Verdana;"><span><span style="font:7pt &quot;">                        </span>i.<span style="font:7pt &quot;">        </span></span></span><span style="font-size:10pt;font-family:Verdana;">In Resource View, the Solution Explorer window, expand Subprojects, expand the node for your HelloCPL project, and navigate to HelloCPL.rc. </span></p>
<p class="MsoNormal" style="text-indent:-.75in;text-align:justify;margin:3pt 0 3pt .75in;"><span style="font-size:10pt;font-family:Verdana;"><span><span style="font:7pt &quot;">                       </span>ii.<span style="font:7pt &quot;">        </span></span></span><span style="font-size:10pt;font-family:Verdana;">Double-click HelloCPL.rc.</span></p>
<p class="MsoNormal" style="text-indent:-.75in;text-align:justify;margin:3pt 0 3pt .75in;"><span style="font-size:10pt;font-family:Verdana;"><span><span style="font:7pt &quot;">                     </span>iii.<span style="font:7pt &quot;">        </span></span></span><span style="font-size:10pt;font-family:Verdana;">In Resource View, right-click HelloCTL.rc, and choose Add Resource. </span></p>
<p class="MsoNormal" style="text-indent:-.75in;text-align:justify;margin:3pt 0 3pt .75in;"><span style="font-size:10pt;font-family:Verdana;"><span><span style="font:7pt &quot;">                    </span>iv.<span style="font:7pt &quot;">        </span></span></span><span style="font-size:10pt;font-family:Verdana;">In the Add Resource dialog box, choose String Table and choose New.</span></p>
<p class="MsoNormal" style="text-indent:-.75in;text-align:justify;margin:3pt 0 3pt .75in;"><span style="font-size:10pt;font-family:Verdana;"><span><span style="font:7pt &quot;">                      </span>v.<span style="font:7pt &quot;">        </span></span></span><span style="font-size:10pt;font-family:Verdana;">Double-click a blank line in the String Table window.</span></p>
<p class="MsoNormal" style="text-indent:-.75in;text-align:justify;margin:3pt 0 3pt .75in;"><span style="font-size:10pt;font-family:Verdana;"><span><span style="font:7pt &quot;">                    </span>vi.<span style="font:7pt &quot;">        </span></span></span><span style="font-size:10pt;font-family:Verdana;">Add the IDS_APP_TITLE resource identifier.</span></p>
<p class="MsoNormal" style="text-indent:-.75in;text-align:justify;margin:3pt 0 3pt .75in;"><span style="font-size:10pt;font-family:Verdana;"><span><span style="font:7pt &quot;">                   </span>vii.<span style="font:7pt &quot;">        </span></span></span><span style="font-size:10pt;font-family:Verdana;">In the Caption box, type the string &#8220;Hello Control Panel&#8221; and to save the value.</span></p>
<p class="MsoNormal" style="text-indent:-.75in;text-align:justify;margin:3pt 0 3pt .75in;"><span style="font-size:10pt;font-family:Verdana;"><span><span style="font:7pt &quot;">                 </span>viii.<span style="font:7pt &quot;">        </span></span></span><span style="font-size:10pt;font-family:Verdana;">Same way add the other resource identifiers IDS_HELLO and IDC_HelloWorld and assign to it the value &#8220;A sample Control Panel application&#8221;.</span></p>
<p class="MsoNormal" style="text-indent:-.25in;text-align:justify;margin:0 0 0 .5in;"><span style="font-size:10pt;font-family:Verdana;"><span>h.<span style="font:7pt &quot;">      </span></span></span><span style="font-size:10pt;font-family:Verdana;">To import an icon into your resources:</span></p>
<p class="MsoNormal" style="text-indent:-.75in;text-align:justify;margin:3pt 0 3pt .75in;"><span style="font-size:10pt;font-family:Verdana;"><span><span style="font:7pt &quot;">                        </span>i.<span style="font:7pt &quot;">        </span></span></span><span style="font-size:10pt;font-family:Verdana;">In Resource View, right-click HelloCTL.rc, and choose Add Resource. </span></p>
<p class="MsoNormal" style="text-indent:-.75in;text-align:justify;margin:3pt 0 3pt .75in;"><span style="font-size:10pt;font-family:Verdana;"><span><span style="font:7pt &quot;">                       </span>ii.<span style="font:7pt &quot;">        </span></span></span><span style="font-size:10pt;font-family:Verdana;">In the Add Resource dialog box, choose Icon and choose Import (or you can draw your own icon by clicking New).</span></p>
<p class="MsoNormal" style="text-indent:-.75in;text-align:justify;margin:3pt 0 3pt .75in;"><span style="font-size:10pt;font-family:Verdana;"><span><span style="font:7pt &quot;">                     </span>iii.<span style="font:7pt &quot;">        </span></span></span><span style="font-size:10pt;font-family:Verdana;">The Import dialog box appears and displays your project directory.</span></p>
<p class="MsoNormal" style="text-indent:-.75in;text-align:justify;margin:3pt 0 3pt .75in;"><span style="font-size:10pt;font-family:Verdana;"><span><span style="font:7pt &quot;">                    </span>iv.<span style="font:7pt &quot;">        </span></span></span><span style="font-size:10pt;font-family:Verdana;">Open the directory for your Hello World application.</span></p>
<p class="MsoNormal" style="text-indent:-.75in;text-align:justify;margin:3pt 0 3pt .75in;"><span style="font-size:10pt;font-family:Verdana;"><span><span style="font:7pt &quot;">                      </span>v.<span style="font:7pt &quot;">        </span></span></span><span style="font-size:10pt;font-family:Verdana;">Choose the icon (.ico) file for your HelloWorld.exe, and choose Open. </span></p>
<p class="MsoNormal" style="text-indent:-.75in;text-align:justify;margin:3pt 0 3pt .75in;"><span style="font-size:10pt;font-family:Verdana;"><span><span style="font:7pt &quot;">                    </span>vi.<span style="font:7pt &quot;">        </span></span></span><span style="font-size:10pt;font-family:Verdana;">You can close the window to proceed with the default icon, or you can customize the icon with the available tools prior to closing the window. </span></p>
<p class="MsoNormal" style="text-indent:-.75in;text-align:justify;margin:3pt 0 3pt .75in;"><span style="font-size:10pt;font-family:Verdana;"><span><span style="font:7pt &quot;">                   </span>vii.<span style="font:7pt &quot;">        </span></span></span><span style="font-size:10pt;font-family:Verdana;">Change the resource identifier for your icon to IDI_HELLOWORLD in property of icon.</span></p>
<p class="MsoNormal" style="text-align:justify;margin:3pt 0 3pt 99pt;"><span style="font-size:10pt;font-family:Verdana;"> </span></p>
<p class="MsoNormal" style="text-align:justify;margin:3pt 0 3pt .5in;"><span style="font-size:10pt;font-family:Verdana;">Now all our projects are created. If this you build the solution it will fail because we have not added the support for CPL.</span></p>
<p class="MsoNormal" style="text-align:justify;margin:3pt 0 3pt .5in;"><span style="font-size:10pt;font-family:Verdana;">For the OS to recognize a DLL as a Control Panel application, the file must be built for the correct hardware platform and be named with a Control Panel (.cpl) file extension.</span></p>
<p class="MsoNormal" style="text-align:justify;margin:3pt 0 3pt .5in;"><span style="font-size:10pt;font-family:Verdana;"> </span></p>
<p class="MsoNormal" style="text-indent:-.25in;text-align:justify;margin:0 0 0 .5in;"><span style="font-size:10pt;font-family:Verdana;"><span>i.<span style="font:7pt &quot;">        </span></span></span><span style="font-size:10pt;font-family:Verdana;">To change the file extension of your output file from dll to cpl:</span></p>
<p class="MsoNormal" style="text-indent:-.75in;text-align:justify;margin:3pt 0 3pt .75in;"><span style="font-size:10pt;font-family:Verdana;"><span><span style="font:7pt &quot;">                        </span>i.<span style="font:7pt &quot;">        </span></span></span><span style="font-size:10pt;font-family:Verdana;">In the Solution Explorer window, right-click the HelloCPL project and choose Properties.</span></p>
<p class="MsoNormal" style="text-indent:-.75in;text-align:justify;margin:3pt 0 3pt .75in;"><span style="font-size:10pt;font-family:Verdana;"><span><span style="font:7pt &quot;">                       </span>ii.<span style="font:7pt &quot;">        </span></span></span><span style="font-size:10pt;font-family:Verdana;">Select the General tab in the dialog box that appears. In the Custom Variables field, click the &#8230; button to open the Custom Variables box. </span></p>
<p class="MsoNormal" style="text-indent:-.75in;text-align:justify;margin:3pt 0 3pt .75in;"><span style="font-size:10pt;font-family:Verdana;"><span><span style="font:7pt &quot;">                     </span>iii.<span style="font:7pt &quot;">        </span></span></span><span style="font-size:10pt;font-family:Verdana;">Click the New button. In the Environment Variable dialog box, type CPL in the Variable name text box, and 1 in the Variable value text box. </span></p>
<p class="MsoNormal" style="text-indent:-.75in;text-align:justify;margin:3pt 0 3pt .75in;"><span style="font-size:10pt;font-family:Verdana;"><span><span style="font:7pt &quot;">                    </span>iv.<span style="font:7pt &quot;">        </span></span></span><span style="font-size:10pt;font-family:Verdana;">This will force the HelloCPL application name to have a .cpl extension instead of the default .dll extension. </span></p>
<p class="MsoNormal" style="text-indent:-.75in;text-align:justify;margin:3pt 0 3pt .75in;"><span style="font-size:10pt;font-family:Verdana;"><span><span style="font:7pt &quot;">                      </span>v.<span style="font:7pt &quot;">        </span></span></span><span style="font-size:10pt;font-family:Verdana;">Click the C/C++ tab in the project settings dialog box. To include the appropriate header files, in the Include Directories field, type $(_PROJECTROOT)\cesysgen\oak\inc . </span></p>
<p class="MsoNormal" style="text-indent:-.75in;text-align:justify;margin:3pt 0 3pt .75in;"><span style="font-size:10pt;font-family:Verdana;"><span><span style="font:7pt &quot;">                    </span>vi.<span style="font:7pt &quot;">        </span></span></span><span style="font-size:10pt;font-family:Verdana;">To open the file, expand the HelloCPL\Parameter files node and double-click HelloCPL.bib. Replace the code in this file with the following code:</span></p>
<p class="MsoNormal" style="text-indent:9pt;text-align:justify;margin:3pt 0 3pt 99pt;"><span style="font-size:10pt;font-family:Verdana;"> </span></p>
<p class="MsoNormal" style="text-align:justify;margin:3pt 0 3pt .75in;"><span style="font-size:10pt;font-family:Verdana;">MODULES</span></p>
<p class="MsoNormal" style="text-align:justify;margin:3pt 0 3pt .75in;"><span style="font-size:10pt;font-family:Verdana;">HelloCPL.cpl $(_FLATRELEASEDIR)\HelloCPL.cpl<span>       </span><span>    </span>NK</span></p>
<p class="MsoNormal" style="text-align:justify;margin:0 0 0 .25in;"><span style="font-size:10pt;font-family:Verdana;"> </span></p>
<p class="MsoNormal" style="text-indent:-.25in;text-align:justify;margin:0 0 0 .5in;"><span style="font-size:10pt;font-family:Verdana;"><span>j.<span style="font:7pt &quot;">        </span></span></span><span style="font-size:10pt;font-family:Verdana;">To verify that HelloCPL is set to export functions as a DLL:</span></p>
<p class="MsoNormal" style="text-indent:-.75in;text-align:justify;margin:3pt 0 3pt .75in;"><span style="font-size:10pt;font-family:Verdana;"><span><span style="font:7pt &quot;">                        </span>i.<span style="font:7pt &quot;">        </span></span></span><span style="font-size:10pt;font-family:Verdana;">In the Solution Explorer window, right-click the HelloCPL project and choose Properties.</span></p>
<p class="MsoNormal" style="text-indent:-.75in;text-align:justify;margin:3pt 0 3pt .75in;"><span style="font-size:10pt;font-family:Verdana;"><span><span style="font:7pt &quot;">                       </span>ii.<span style="font:7pt &quot;">        </span></span></span><span style="font-size:10pt;font-family:Verdana;">Select the C\C++ tab.</span></p>
<p class="MsoNormal" style="text-indent:-.75in;text-align:justify;margin:3pt 0 3pt .75in;"><span style="font-size:10pt;font-family:Verdana;"><span><span style="font:7pt &quot;">                     </span>iii.<span style="font:7pt &quot;">        </span></span></span><span style="font-size:10pt;font-family:Verdana;">Verify that the Additional MacroDefinitions field is set to $(CDEFINES) -DHelloCPL_EXPORTS.</span></p>
<p class="MsoNormal" style="text-indent:-.75in;text-align:justify;margin:3pt 0 3pt .75in;"><span style="font-size:10pt;font-family:Verdana;"><span><span style="font:7pt &quot;">                    </span>iv.<span style="font:7pt &quot;">        </span></span></span><span style="font-size:10pt;font-family:Verdana;">Set the DLL Entry Point field to DllMain</span></p>
<p class="MsoNormal" style="text-align:justify;margin:3pt 0;"><span style="font-size:10pt;font-family:Verdana;">Now build the subprojects.</span></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/rahulps.wordpress.com/38/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/rahulps.wordpress.com/38/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/rahulps.wordpress.com/38/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/rahulps.wordpress.com/38/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/rahulps.wordpress.com/38/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/rahulps.wordpress.com/38/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/rahulps.wordpress.com/38/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/rahulps.wordpress.com/38/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/rahulps.wordpress.com/38/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/rahulps.wordpress.com/38/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/rahulps.wordpress.com/38/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/rahulps.wordpress.com/38/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/rahulps.wordpress.com/38/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/rahulps.wordpress.com/38/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rahulps.wordpress.com&amp;blog=4856780&amp;post=38&amp;subd=rahulps&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://rahulps.wordpress.com/2009/07/13/how-to-create-a-control-panel-application-for-wince-6-0-os-image/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/eded774c9e2c2b835b1e38f91419ee45?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">rahulprashant</media:title>
		</media:content>
	</item>
		<item>
		<title>How to change the File structure tree into OS image?</title>
		<link>http://rahulps.wordpress.com/2009/07/13/how-to-change-the-file-structure-tree-into-os-image/</link>
		<comments>http://rahulps.wordpress.com/2009/07/13/how-to-change-the-file-structure-tree-into-os-image/#comments</comments>
		<pubDate>Mon, 13 Jul 2009 12:30:42 +0000</pubDate>
		<dc:creator>rahulprashant</dc:creator>
				<category><![CDATA[Emulator: How to Topics]]></category>

		<guid isPermaLink="false">http://rahulps.wordpress.com/?p=31</guid>
		<description><![CDATA[In case you want to add some folder tree structure in your OS image, you can do this my modifying the .dat files. Read about first .dat file in PB. File system (.dat) files, specifically Platform.dat and Project.dat, contain settings to initialize the RAM file system. For example you want to add some folders in [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rahulps.wordpress.com&amp;blog=4856780&amp;post=31&amp;subd=rahulps&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>In case you want to add some folder tree structure in your OS image, you can do this my modifying the .dat files. Read about first .dat file in PB. File system (.dat) files, specifically Platform.dat and Project.dat, contain settings to initialize the RAM file system.</p>
<p>For example you want to add some folders in “My Documents” as:</p>
<p>\My Documents</p>
<p>                   ..\Project Documents</p>
<p>                   ..\Internal Documents</p>
<p>                                            MyFile.txt</p>
<p>Open Project.dat file and add as given below:</p>
<p>          Root:-Directory(&#8220;Program Files&#8221;)</p>
<p>          Root:-Directory(&#8220;My Documents&#8221;)</p>
<p>          Directory(&#8220;\Program Files&#8221;):-Directory(&#8220;ASSET&#8221;)</p>
<p>          Directory(&#8220;\My Documents&#8221;):-Directory(&#8220;Project Documents&#8221;)</p>
<p>          Directory(&#8220;\My Documents&#8221;):-Directory(&#8220;Internal Documents&#8221;)</p>
<p>          Directory(&#8220;\My Documents\Internal Documents&#8221;):-File(&#8220;MyFile.txt&#8221;, &#8220;\Windows\Myfile.txt&#8221;)</p>
<p> root:[-Directory(“&lt;directory name&gt;”)] [-File(“&lt;final_file_name&gt;”, “&lt;initial_file&gt;”)]</p>
<p> Where &lt;directory_name&gt; is the name of the directory, &lt;final_file_name&gt; is the final name of the file that is copied from the \Windows directory, and &lt;initial_file&gt; is the name of the initial file in the \Windows directory.</p>
<p>Now do a “Copy Files to Release Directory”. It will first clear your build folder and then will copy all the bib, reg, dat and other required files. Then do the “Make Run Time Image”. Once your image is up, you could find see you new folder tree structure.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/rahulps.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/rahulps.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/rahulps.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/rahulps.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/rahulps.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/rahulps.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/rahulps.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/rahulps.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/rahulps.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/rahulps.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/rahulps.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/rahulps.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/rahulps.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/rahulps.wordpress.com/31/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rahulps.wordpress.com&amp;blog=4856780&amp;post=31&amp;subd=rahulps&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://rahulps.wordpress.com/2009/07/13/how-to-change-the-file-structure-tree-into-os-image/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/eded774c9e2c2b835b1e38f91419ee45?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">rahulprashant</media:title>
		</media:content>
	</item>
		<item>
		<title>How to add a file into OS image:</title>
		<link>http://rahulps.wordpress.com/2009/07/13/how-to-add-a-file-into-os-image/</link>
		<comments>http://rahulps.wordpress.com/2009/07/13/how-to-add-a-file-into-os-image/#comments</comments>
		<pubDate>Mon, 13 Jul 2009 12:06:43 +0000</pubDate>
		<dc:creator>rahulprashant</dc:creator>
				<category><![CDATA[Emulator: How to Topics]]></category>

		<guid isPermaLink="false">http://rahulps.wordpress.com/?p=24</guid>
		<description><![CDATA[1.      For adding any file into OS image, you need to know about .bib file. What is the .bib file and what it structure is? 2.      You can add the files using .bib file. You can declare the files in FILES section or MODULE section and your file will be added. Better read about FILES [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rahulps.wordpress.com&amp;blog=4856780&amp;post=24&amp;subd=rahulps&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p class="MsoNormal" style="text-indent:-.25in;margin:0;"><span style="font-size:10pt;font-family:Verdana;"><span>1.<span style="font:7pt &quot;">      </span></span></span><span style="font-size:10pt;font-family:Verdana;">For adding any file into OS image, you need to know about .bib file. What is the .bib file and what it structure is?</span></p>
<p class="MsoNormal" style="text-indent:-.25in;margin:0;"><span style="font-size:10pt;font-family:Verdana;"><span>2.<span style="font:7pt &quot;">      </span></span></span><span style="font-size:10pt;font-family:Verdana;">You can add the files using .bib file. You can declare the files in FILES section or MODULE section and your file will be added. Better read about FILES and MODULES section from web.</span></p>
<p class="MsoNormal" style="text-indent:-.5in;margin:0 0 0 .5in;"><span style="font-size:10pt;font-family:Verdana;"><span><span style="font:7pt &quot;">        </span>i.<span style="font:7pt &quot;">            </span></span></span><span style="font-size:10pt;font-family:Verdana;">If your file is an Native executable, add it in MODULE section</span></p>
<p class="MsoNormal" style="text-indent:-.5in;margin:0 0 0 .5in;"><span style="font-size:10pt;font-family:Verdana;"><span><span style="font:7pt &quot;">       </span>ii.<span style="font:7pt &quot;">            </span></span></span><span style="font-size:10pt;font-family:Verdana;">If your file is an Managed executable, add it in FILES section</span></p>
<p class="MsoNormal" style="text-indent:-.5in;margin:0 0 0 .5in;"><span style="font-size:10pt;font-family:Verdana;"><span><span style="font:7pt &quot;">     </span>iii.<span style="font:7pt &quot;">            </span></span></span><span style="font-size:10pt;font-family:Verdana;">If your file is not an executable, add it in FILES section</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;font-family:Verdana;"> </span></p>
<p class="MsoNormal" style="text-indent:-.25in;margin:0;"><span style="font-size:10pt;font-family:Verdana;"><span>3.<span style="font:7pt &quot;">      </span></span></span><span style="font-size:10pt;font-family:Verdana;">Ordering is not important here.</span></p>
<p class="MsoNormal" style="text-indent:-.25in;margin:0;"><span style="font-size:10pt;font-family:Verdana;"><span>4.<span style="font:7pt &quot;">      </span></span></span><span style="font-size:10pt;font-family:Verdana;">For example I am adding an .exe file (Native code), .dll file and a .txt file.</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;font-family:Verdana;"> </span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;color:blue;font-family:Verdana;">MODULES</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;color:green;font-family:Verdana;">;<span>  </span>Name<span>        </span>Path<span>                          </span><span>       </span>Memory Type</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;color:green;font-family:Verdana;">;<span>  </span>&#8212;&#8212;&#8212;-<span>  </span>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<span>  </span><span> </span>&#8212;&#8212;&#8212;&#8211;</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;color:green;font-family:Verdana;"> </span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;font-family:Verdana;">LogStatus.dll<span>  </span><strong><span style="color:maroon;">$(_FLATRELEASEDIR)</span></strong>\LogStatus.dll<span>  </span><span>      </span>NK</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;font-family:Verdana;">LoadTest.exe<span> </span><strong><span style="color:maroon;">$(_FLATRELEASEDIR)</span></strong>\LoadTest.exe<span>        </span>NK</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;font-family:Verdana;"> </span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;font-family:Verdana;"> </span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;color:blue;font-family:Verdana;">FILES</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;color:green;font-family:Verdana;">;<span>  </span>Name<span>        </span>Path<span>                          </span><span>       </span>Memory Type</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;color:green;font-family:Verdana;">;<span>  </span>&#8212;&#8212;&#8212;-<span>  </span>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<span>  </span><span> </span>&#8212;&#8212;&#8212;&#8211;</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;font-family:Verdana;">MyFile.txt<span>      </span><strong><span style="color:maroon;">$(_FLATRELEASEDIR)</span></strong>\MyFile.txt<span>   </span><span>    </span><span>      </span>NK</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;font-family:Verdana;"> </span></p>
<p class="MsoNormal" style="margin:0;"><strong><span style="font-size:10pt;font-family:Verdana;">Name:</span></strong><span style="font-size:10pt;font-family:Verdana;"> Name of the file which you want to add in the OS image. Its not necessary that this name should be same as the original file. If you want to add file abcd.txt as XYZ.abc, here you can provide name as XYZ.txt.</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;font-family:Verdana;"> </span></p>
<p class="MsoNormal" style="margin:0;"><strong><span style="font-size:10pt;font-family:Verdana;">Path:</span></strong><span style="font-size:10pt;font-family:Verdana;"> Path of the file, which need to be added in the path.</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;font-family:Verdana;"> </span></p>
<p class="MsoNormal" style="margin:0;"><strong><span style="font-size:10pt;font-family:Verdana;">Memory Type:</span></strong><span style="font-size:10pt;font-family:Verdana;"> Name of the memory area where this file will be loaded.</span></p>
<p class="MsoNormal" style="text-indent:.25in;margin:0;"><span style="font-size:10pt;font-family:Verdana;"> </span></p>
<p class="MsoNormal" style="text-indent:-.25in;margin:0;"><span style="font-size:10pt;font-family:Verdana;"><span>5.<span style="font:7pt &quot;">      </span></span></span><span style="font-size:10pt;font-family:Verdana;">Open your project.bib file and add your file.</span><span style="font-size:10pt;font-family:Verdana;"> </span></p>
<p><span style="font-size:10pt;font-family:Verdana;">After providing all these info, Do a “Copy Files to Release Directory”. It will first clear your build folder and then will copy all the bib, reg and other required files. Then do the “Make Run Time Image”. Makeimg.exe will read your bib file entry and look for the specified file at the path which you have declared in “Path” section above. Once your image is up, yoy could find oput your file in \Windows folder.</span></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/rahulps.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/rahulps.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/rahulps.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/rahulps.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/rahulps.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/rahulps.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/rahulps.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/rahulps.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/rahulps.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/rahulps.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/rahulps.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/rahulps.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/rahulps.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/rahulps.wordpress.com/24/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rahulps.wordpress.com&amp;blog=4856780&amp;post=24&amp;subd=rahulps&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://rahulps.wordpress.com/2009/07/13/how-to-add-a-file-into-os-image/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/eded774c9e2c2b835b1e38f91419ee45?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">rahulprashant</media:title>
		</media:content>
	</item>
		<item>
		<title>How to create an Emulator image in WinCE6.0</title>
		<link>http://rahulps.wordpress.com/2009/07/06/how-to-create-an-emulator-image-in-wince6-0/</link>
		<comments>http://rahulps.wordpress.com/2009/07/06/how-to-create-an-emulator-image-in-wince6-0/#comments</comments>
		<pubDate>Mon, 06 Jul 2009 11:26:45 +0000</pubDate>
		<dc:creator>rahulprashant</dc:creator>
				<category><![CDATA[Emulator: How to Topics]]></category>

		<guid isPermaLink="false">http://rahulps.wordpress.com/?p=6</guid>
		<description><![CDATA[Go to File-&#62;New-&#62;Project In Project types, Select “Platform Builder for CE 6.0” Enter Project Name in “Name” control In BSP tab, select “Device Emulator: ARMV4l” In Device Templates tab, select PDA device In Design Template Variants: Select Mobile Handheld In Applications &#38; Media tab: unselect “.Net Compact Framework” and “ActiveSync”. Select “WordPad”. Networking &#38; Communications [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rahulps.wordpress.com&amp;blog=4856780&amp;post=6&amp;subd=rahulps&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<ol>
<li>Go to File-&gt;New-&gt;Project</li>
<li>In Project types, Select “Platform Builder for CE 6.0”</li>
<li>Enter Project Name in “Name” control</li>
<li>In BSP tab, select “Device Emulator: ARMV4l”</li>
<li>In Device Templates tab, select PDA device</li>
<li>In Design Template Variants: Select Mobile Handheld</li>
<li>In Applications &amp; Media tab: unselect “.Net Compact Framework” and “ActiveSync”. Select “WordPad”.</li>
<li>Networking &amp; Communications tab: unselect “TCP/IP”</li>
<li>Click “Finish” and then “Acknowledgement”.</li>
<li>Now your image is componentized. We need to set some settings.</li>
<li>Go to Project-&gt; &lt;Project Name&gt; Properties.</li>
<li>Expand “Configuration Properties” tree node.</li>
<li>In “Build Options” select the followings and click apply:
<ol>
<li>Enable eboot space…</li>
<li>Enable Event tracking…</li>
<li>Enable Kernel Debugger</li>
<li>Enable KITL</li>
<li>Enable Profiling</li>
</ol>
</li>
<li>Go to Target-&gt;Connectivity Options…</li>
<li>In Connectivity Options dialog,
<ol>
<li>Target Device: CE Device</li>
<li>Download: Device Emulator (DMA)</li>
<li>Transport: Device Emulator (DMA)</li>
<li>Debugger: KbStub</li>
</ol>
</li>
</ol>
<p>Click “Settings” button of “Download”: In “Display” tab make Screen width as 740, and height as 480 (NOTE: you can give whatever size you want).</p>
<p>In “Network” tab, select “Enable NE2000 PCMCIA..” check box and click OK</p>
<p> </p>
<ol>
<li>Click apply</li>
<li>Go to Build and Build the solutions.</li>
<li><img title="Build Options" src="http://rahulps.files.wordpress.com/2009/07/untitled.jpg?w=300&#038;h=225" alt="Build Options" width="300" height="225" /></li>
<li>Once Solution is build without any error, go to “Target” and and click “Attach Device”</li>
<li>you can see the output of an image loading in Output window.</li>
</ol>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/rahulps.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/rahulps.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/rahulps.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/rahulps.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/rahulps.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/rahulps.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/rahulps.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/rahulps.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/rahulps.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/rahulps.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/rahulps.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/rahulps.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/rahulps.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/rahulps.wordpress.com/6/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rahulps.wordpress.com&amp;blog=4856780&amp;post=6&amp;subd=rahulps&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://rahulps.wordpress.com/2009/07/06/how-to-create-an-emulator-image-in-wince6-0/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/eded774c9e2c2b835b1e38f91419ee45?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">rahulprashant</media:title>
		</media:content>

		<media:content url="http://rahulps.files.wordpress.com/2009/07/untitled.jpg?w=300" medium="image">
			<media:title type="html">Build Options</media:title>
		</media:content>
	</item>
		<item>
		<title>Welcome in my WinCE Blog</title>
		<link>http://rahulps.wordpress.com/2008/09/15/welcome-in-my-wince-blog/</link>
		<comments>http://rahulps.wordpress.com/2008/09/15/welcome-in-my-wince-blog/#comments</comments>
		<pubDate>Mon, 15 Sep 2008 04:57:32 +0000</pubDate>
		<dc:creator>rahulprashant</dc:creator>
				<category><![CDATA[Emulator: How to Topics]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Finally today I started adding WinCE blog posts. This is yet another blog post contains the topics which I feel a novice WinCE developer may need to know. I am working upon PB for WinCE 6.0. So will be posting all the exercise CE 6.0 based only.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rahulps.wordpress.com&amp;blog=4856780&amp;post=1&amp;subd=rahulps&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Finally today I started adding WinCE blog posts. This is yet another blog post contains the topics which I feel a novice WinCE developer may need to know. I am working upon PB for WinCE 6.0. So will be posting all the exercise CE 6.0 based only.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/rahulps.wordpress.com/1/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/rahulps.wordpress.com/1/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/rahulps.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/rahulps.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/rahulps.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/rahulps.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/rahulps.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/rahulps.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/rahulps.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/rahulps.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/rahulps.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/rahulps.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/rahulps.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/rahulps.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/rahulps.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/rahulps.wordpress.com/1/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rahulps.wordpress.com&amp;blog=4856780&amp;post=1&amp;subd=rahulps&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://rahulps.wordpress.com/2008/09/15/welcome-in-my-wince-blog/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/eded774c9e2c2b835b1e38f91419ee45?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">rahulprashant</media:title>
		</media:content>
	</item>
	</channel>
</rss>
