<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>krishnaraj varma&#039;s blog &#187; General</title>
	<atom:link href="http://www.krvarma.com/category/posts/general/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.krvarma.com</link>
	<description></description>
	<lastBuildDate>Sun, 31 Oct 2010 15:47:36 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Listing Loaded Devices in Windows CE 5 or Above</title>
		<link>http://www.krvarma.com/2008/09/listing-loaded-devices-in-windows-ce-5-or-above/</link>
		<comments>http://www.krvarma.com/2008/09/listing-loaded-devices-in-windows-ce-5-or-above/#comments</comments>
		<pubDate>Wed, 17 Sep 2008 18:55:55 +0000</pubDate>
		<dc:creator>Krishnaraj Varma</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Windows Mobile]]></category>

		<guid isPermaLink="false">http://www.krvarma.com/?p=111</guid>
		<description><![CDATA[Download the source code The APIs FindFirstDevice and FindNextDevice can be used to search for a device currently loaded in Windows CE 5.0 or above. These APIs are not available in versions prior to Windows CE 5.0. The following are the syntax: HANDLE FindFirstDevice(DeviceSearchType searchType,LPCVOID pvSearchParam,PDEVMGR_DEVICE_INFORMATION pdi); BOOL FindNextDevice(HANDLE h,PDEVMGR_DEVICE_INFORMATION pdi); If successful the FindFirstDevice [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>Download the <a href="http://www.krvarma.com/files/ListDevice.zip">source code</a></p>
<p>The APIs <b>FindFirstDevice</b> and <b>FindNextDevice</b> can be used to search for a device currently loaded in Windows CE 5.0 or above. These APIs are not available in versions prior to Windows CE 5.0. The following are the syntax:</p>
<p><code>HANDLE FindFirstDevice(DeviceSearchType searchType,LPCVOID pvSearchParam,PDEVMGR_DEVICE_INFORMATION pdi);<br />
BOOL FindNextDevice(HANDLE h,PDEVMGR_DEVICE_INFORMATION pdi);</code></p>
<p>If successful the <b>FindFirstDevice</b> returns a device handle which can be used for subsequent <b>FineNextDevice</b>. The first parameter is the device type which can be one of the following:</p>
<p><code>DeviceSearchByLegacyName<br />
DeviceSearchByDeviceName<br />
DeviceSearchByBusName<br />
DeviceSearchByGuid<br />
DeviceSearchByParent</code></p>
<p>The second parameter is the additional search parameter which depends of the device type specified. To search all devices we can use “*” as the search parameter. The third parameter is a pointer to DEVMGR_DEVICE_INFORMATION structure which will be filled with the details of the devices found.</p>
<p>The <b>FindNextDevice</b> returns TRUE if there are more devices to find otherwise returns FALSE. The first parameter is the HANDLE returned by the <b>FindFirstDevice</b> and second parameter is a pointer to the DEVMGR_DEVICE_INFORMATION structure.</p>
<p>The following code enumerate all devices and add the details to a ListCtrl.</p>
<p><code>HANDLE						hDevice				= NULL;<br />
	DeviceSearchType			eSearchType			= DeviceSearchByLegacyName;<br />
	DEVMGR_DEVICE_INFORMATION	sInfo				= {0};</p>
<p>	sInfo.dwSize		= sizeof(DEVMGR_DEVICE_INFORMATION);<br />
	hDevice				= FindFirstDevice(eSearchType,TEXT("*"),&#038;sInfo);</p>
<p>	int		nItem		= 0;<br />
	int		nListItem	= 0;</p>
<p>	if(INVALID_HANDLE_VALUE == hDevice)<br />
		return;</p>
<p>	BOOL	bContinue	= TRUE;</p>
<p>	while(bContinue)<br />
	{<br />
		nListItem	= pList->InsertItem(nItem,sInfo.szLegacyName);</p>
<p>		pList->SetItemText(nItem,1,sInfo.szDeviceName);<br />
		pList->SetItemText(nItem,2,sInfo.szDeviceKey);<br />
		pList->SetItemText(nItem,3,sInfo.szBusName);</p>
<p>		++nItem;</p>
<p>		bContinue	= FindNextDevice(hDevice,&#038;sInfo);<br />
	}</p>
<p>	FindClose(hDevice);</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.krvarma.com/2008/09/listing-loaded-devices-in-windows-ce-5-or-above/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Remote Application Start in Windows CE</title>
		<link>http://www.krvarma.com/2008/09/remote-application-start-in-windows-ce/</link>
		<comments>http://www.krvarma.com/2008/09/remote-application-start-in-windows-ce/#comments</comments>
		<pubDate>Mon, 15 Sep 2008 20:17:46 +0000</pubDate>
		<dc:creator>Krishnaraj Varma</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Windows Mobile]]></category>

		<guid isPermaLink="false">http://www.krvarma.com/?p=104</guid>
		<description><![CDATA[Download the source code CeStartProcess API can be used to start an application in Windows CE machine from a remote PC. To start an application first initialize RAPI using CeRapiInit or CeRapiInitEx and call this API with the name of the application. The sample application also uses CeGetSystemInfo and CeGetVersionEx APIs to get the system [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>Download the <a href="http://www.krvarma.com/files/RemoteApp.zip">source code</a></p>
<p><b>CeStartProcess</b> API can be used to start an application in Windows CE machine from a remote PC. To start an application first initialize RAPI using <b>CeRapiInit</b> or <b>CeRapiInitEx</b> and call this API with the name of the application. The sample application also uses <b>CeGetSystemInfo</b> and <b>CeGetVersionEx</b> APIs to get the system information and version.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.krvarma.com/2008/09/remote-application-start-in-windows-ce/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Welcome to my homepage</title>
		<link>http://www.krvarma.com/2008/04/hello-world/</link>
		<comments>http://www.krvarma.com/2008/04/hello-world/#comments</comments>
		<pubDate>Wed, 23 Apr 2008 04:05:27 +0000</pubDate>
		<dc:creator>Krishnaraj Varma</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://www.krvarma.com/?p=1</guid>
		<description><![CDATA[Welcome to my new homepage. As you already know, I have changed the blog engine to WordPress. I had some problem with old CMS I was using, so I decided to change it. WordPress is lightweight blog engine and it is very easy to use and configure.]]></description>
			<content:encoded><![CDATA[<p></p><p>Welcome to my new homepage. As you already know, I have changed the blog engine to <a href="http://www.wordpress.org">WordPress</a>.  I had some problem with old CMS I was using, so I decided to change it. WordPress is lightweight blog engine and it is very easy to use and configure.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.krvarma.com/2008/04/hello-world/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

