<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.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>Jim Travis's Blog</title><link>http://blogs.msdn.com/b/jimtravis/</link><description>Covering the Windows 7 Sensor and Location Platform and other cool technologies.</description><dc:language>en-US</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>Use your Wii-mote as a sensor with the Windows 7 Sensor Platform</title><link>http://blogs.msdn.com/b/jimtravis/archive/2010/02/11/use-your-wii-mote-as-a-sensor-with-the-windows-7-sensor-platform.aspx</link><pubDate>Thu, 11 Feb 2010 22:14:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9962288</guid><dc:creator>jimtravis</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.msdn.com/b/jimtravis/rsscomments.aspx?WeblogPostID=9962288</wfw:commentRss><comments>http://blogs.msdn.com/b/jimtravis/archive/2010/02/11/use-your-wii-mote-as-a-sensor-with-the-windows-7-sensor-platform.aspx#comments</comments><description>&lt;P&gt;A cool Wii-mote driver project on The Code Project:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://www.codeproject.com/KB/system/wiisensor.aspx"&gt;http://www.codeproject.com/KB/system/wiisensor.aspx&lt;/A&gt;&lt;/P&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9962288" width="1" height="1"&gt;</description></item><item><title>Windows Sensors on Channel 9 and Coding4Fun Arduino sensors</title><link>http://blogs.msdn.com/b/jimtravis/archive/2010/01/30/windows-sensors-on-channel-9-and-coding4fun-arduino-sensors.aspx</link><pubDate>Sat, 30 Jan 2010 03:36:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9955621</guid><dc:creator>jimtravis</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.msdn.com/b/jimtravis/rsscomments.aspx?WeblogPostID=9955621</wfw:commentRss><comments>http://blogs.msdn.com/b/jimtravis/archive/2010/01/30/windows-sensors-on-channel-9-and-coding4fun-arduino-sensors.aspx#comments</comments><description>Channel 9 discusses generic sensor driver from O'Reilly: 
&lt;P style="MARGIN: 0in 0in 0pt" class=MsoPlainText&gt;&lt;A href="http://channel9.msdn.com/shows/This+Week+On+Channel+9/TWC9-Hack-Powerwheels-APIs-for-Wikipedia-Smooth-Streaming-Arduinos-and-more/"&gt;&lt;FONT size=3 face=Consolas&gt;http://channel9.msdn.com/shows/This+Week+On+Channel+9/TWC9-Hack-Powerwheels-APIs-for-Wikipedia-Smooth-Streaming-Arduinos-and-more/&lt;/FONT&gt;&lt;/A&gt;&lt;/P&gt;
&lt;P style="MARGIN: 0in 0in 0pt" class=MsoPlainText mce_keep="true"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="MARGIN: 0in 0in 0pt" class=MsoPlainText&gt;Coding4Fun topic about Arduino sensors:&lt;/P&gt;
&lt;P style="MARGIN: 0in 0in 0pt" class=MsoPlainText mce_keep="true"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="MARGIN: 0in 0in 0pt" class=MsoPlainText&gt;&lt;A href="http://blogs.msdn.com/coding4fun/archive/2010/01/15/9949045.aspx"&gt;http://blogs.msdn.com/coding4fun/archive/2010/01/15/9949045.aspx&lt;/A&gt;&lt;/P&gt;
&lt;P style="MARGIN: 0in 0in 0pt" class=MsoPlainText mce_keep="true"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="MARGIN: 0in 0in 0pt" class=MsoPlainText mce_keep="true"&gt;&amp;nbsp;&lt;/P&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9955621" width="1" height="1"&gt;</description></item><item><title>Facebook group for Windows Developers</title><link>http://blogs.msdn.com/b/jimtravis/archive/2010/01/22/facebook-group-for-windows-developers.aspx</link><pubDate>Fri, 22 Jan 2010 01:21:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9951762</guid><dc:creator>jimtravis</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.msdn.com/b/jimtravis/rsscomments.aspx?WeblogPostID=9951762</wfw:commentRss><comments>http://blogs.msdn.com/b/jimtravis/archive/2010/01/22/facebook-group-for-windows-developers.aspx#comments</comments><description>Gus Class has created a Facebook group called "&lt;A href="http://www.facebook.com/search/?ref=search&amp;amp;q=windows%20developers&amp;amp;init=quick#/group.php?gid=241623610955" mce_href="http://www.facebook.com/search/?ref=search&amp;amp;q=windows%20developers&amp;amp;init=quick#/group.php?gid=241623610955"&gt;Windows Developers&lt;/A&gt;." If you use Facebook, come join us.&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9951762" width="1" height="1"&gt;</description></item><item><title>Using Windows 7 to Monitor a Motion Sensor </title><link>http://blogs.msdn.com/b/jimtravis/archive/2009/12/06/using-windows-7-to-monitor-a-motion-sensor.aspx</link><pubDate>Sun, 06 Dec 2009 20:15:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9933194</guid><dc:creator>jimtravis</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.msdn.com/b/jimtravis/rsscomments.aspx?WeblogPostID=9933194</wfw:commentRss><comments>http://blogs.msdn.com/b/jimtravis/archive/2009/12/06/using-windows-7-to-monitor-a-motion-sensor.aspx#comments</comments><description>&lt;P&gt;Donn Morse has posted sample code and a white paper here:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;A href="http://code.msdn.microsoft.com/motionsensor"&gt;http://code.msdn.microsoft.com/motionsensor&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;The whitepaper describes how you can build a simple motion sensor, a Sensor device driver, and a Sensor application that you can use to observe real-time sensor data in Windows 7.&lt;BR&gt;&lt;BR&gt;The sample firmware can be used to program a Parallax BS2 microcontroller.&lt;BR&gt;&lt;/P&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9933194" width="1" height="1"&gt;</description></item><item><title>Learning Pathways for Sensors and Location</title><link>http://blogs.msdn.com/b/jimtravis/archive/2009/10/27/learning-pathways-for-sensors-and-location.aspx</link><pubDate>Tue, 27 Oct 2009 05:41:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9913340</guid><dc:creator>jimtravis</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.msdn.com/b/jimtravis/rsscomments.aspx?WeblogPostID=9913340</wfw:commentRss><comments>http://blogs.msdn.com/b/jimtravis/archive/2009/10/27/learning-pathways-for-sensors-and-location.aspx#comments</comments><description>&lt;P&gt;We've published a new Windows Developer Center on MSDN. Part of the update includes a nice page for learning about Windows 7 sensors and location. Here's the link: &lt;A href="http://msdn.microsoft.com/en-us/windows/ee658252.aspx"&gt;http://msdn.microsoft.com/en-us/windows/ee658252.aspx&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Enjoy!&lt;/P&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9913340" width="1" height="1"&gt;</description></item><item><title>u-blox Releases Windows 7 Driver</title><link>http://blogs.msdn.com/b/jimtravis/archive/2009/09/15/u-blox-releases-windows-7-driver.aspx</link><pubDate>Wed, 16 Sep 2009 01:30:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9895602</guid><dc:creator>jimtravis</dc:creator><slash:comments>1</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.msdn.com/b/jimtravis/rsscomments.aspx?WeblogPostID=9895602</wfw:commentRss><comments>http://blogs.msdn.com/b/jimtravis/archive/2009/09/15/u-blox-releases-windows-7-driver.aspx#comments</comments><description>&lt;P&gt;Press release here: &lt;A href="http://www.u-blox.com/en/press-and-events/press-release-archive/845.html"&gt;http://www.u-blox.com/en/press-and-events/press-release-archive/845.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;If you're looking for GPS hardware to use for developing your Windows 7 location-aware apps, u-blox has a solution available now.&lt;/P&gt;
&lt;P&gt;Driver here:&amp;nbsp; &lt;A href="http://www.u-blox.com/en/usb-drivers/windows-7-driver.html"&gt;http://www.u-blox.com/en/usb-drivers/windows-7-driver.html&lt;/A&gt;&lt;/P&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9895602" width="1" height="1"&gt;</description></item><item><title>Sensor API interop in Windows API Code Pack</title><link>http://blogs.msdn.com/b/jimtravis/archive/2009/08/01/sensor-api-interop-in-windows-api-code-pack.aspx</link><pubDate>Sat, 01 Aug 2009 02:31:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9854809</guid><dc:creator>jimtravis</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.msdn.com/b/jimtravis/rsscomments.aspx?WeblogPostID=9854809</wfw:commentRss><comments>http://blogs.msdn.com/b/jimtravis/archive/2009/08/01/sensor-api-interop-in-windows-api-code-pack.aspx#comments</comments><description>&lt;P&gt;Here's a source code release for .NET interop with Win32 features, including the Sensor API:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://code.msdn.microsoft.com/WindowsAPICodePack"&gt;http://code.msdn.microsoft.com/WindowsAPICodePack&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;The &lt;B&gt;Windows® API Code Pack for Microsoft® .NET Framework&lt;/B&gt; provides a source code library that can be used to access some new Windows 7 features (and some existing features of older versions of Windows operating system) from managed code. These Windows features are not available to developers today in the .NET Framework. &lt;BR&gt;&lt;/P&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9854809" width="1" height="1"&gt;</description></item><item><title>Sensor Constants and VECTOR Types</title><link>http://blogs.msdn.com/b/jimtravis/archive/2009/07/13/sensor-constants-and-vector-types.aspx</link><pubDate>Tue, 14 Jul 2009 01:04:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9832412</guid><dc:creator>jimtravis</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.msdn.com/b/jimtravis/rsscomments.aspx?WeblogPostID=9832412</wfw:commentRss><comments>http://blogs.msdn.com/b/jimtravis/archive/2009/07/13/sensor-constants-and-vector-types.aspx#comments</comments><description>&lt;P&gt;In the Windows 7 Sensor platform, some properties and data fields contain arrays of information. For example, the SENSOR_PROPERTY_LIGHT_RESPONSE_CURVE property contains an array of 4-byte unsigned integers. However, when you receive such arrays through the Sensor API, they&amp;nbsp;will always represented as type VT_VECTOR|UI1, an array of single-byte characters, regardless of the actual type of the data in the array. This requirement&amp;nbsp;arises because the platform uses the WPD serializer when moving data from the sensor class extension to the API layer. The WPD serializer can serialize arrays of data only if the individual data type is UI1.&lt;/P&gt;
&lt;P&gt;From the driver perspective, this means that&amp;nbsp;PROPVARIANT for these array types&amp;nbsp;should be created by using &lt;A class="" title=InitPropVariantFromBuffer href="http://msdn.microsoft.com/en-us/library/bb762289(VS.85).aspx" target=_blank mce_href="http://msdn.microsoft.com/en-us/library/bb762289(VS.85).aspx"&gt;InitPropVariantFromBuffer&lt;/A&gt;. This function creates the PROPVARIANT as type VT_VECTOR|UI1. Here's some example code that creates a light response curve:&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 5.75pt 6pt 0in"&gt;&lt;STRONG&gt;UINT responseCurve[10] = {0}; // Array to contain the response curve data.&lt;?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 5.75pt 6pt 0in"&gt;&lt;STRONG&gt;// ****************************************************************************************&lt;o:p&gt;&lt;/o:p&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 5.75pt 6pt 0in"&gt;&lt;STRONG&gt;// The response curve consists of an array of integer pairs.&lt;o:p&gt;&lt;/o:p&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 5.75pt 6pt 0in"&gt;&lt;STRONG&gt;// The first integer contains the percentage brightness offset to be applied to the display.&lt;o:p&gt;&lt;/o:p&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 5.75pt 6pt 0in"&gt;&lt;STRONG&gt;// The second integer contains the corresponding ambient light value (in LUX).&lt;o:p&gt;&lt;/o:p&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 5.75pt 6pt 0in"&gt;&lt;STRONG&gt;// ****************************************************************************************&lt;o:p&gt;&lt;/o:p&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 5.75pt 6pt 0in"&gt;&lt;STRONG&gt;// (0, 10)&lt;o:p&gt;&lt;/o:p&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 5.75pt 6pt 0in"&gt;&lt;STRONG&gt;responseCurve[0] = 0; responseCurve[1] = 10;&lt;o:p&gt;&lt;/o:p&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 5.75pt 6pt 0in"&gt;&lt;STRONG&gt;// (10, 40)&lt;o:p&gt;&lt;/o:p&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 5.75pt 6pt 0in"&gt;&lt;STRONG&gt;responseCurve[2] = 10; responseCurve[3] = 40;&lt;o:p&gt;&lt;/o:p&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 5.75pt 6pt 0in"&gt;&lt;STRONG&gt;// (40, 80)&lt;o:p&gt;&lt;/o:p&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 5.75pt 6pt 0in"&gt;&lt;STRONG&gt;responseCurve[4] = 40; responseCurve[5] = 80;&lt;o:p&gt;&lt;/o:p&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 5.75pt 6pt 0in"&gt;&lt;STRONG&gt;// (68, 100)&lt;o:p&gt;&lt;/o:p&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 5.75pt 6pt 0in"&gt;&lt;STRONG&gt;responseCurve[6] = 68; responseCurve[7] = 100;&lt;o:p&gt;&lt;/o:p&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 5.75pt 6pt 0in"&gt;&lt;STRONG&gt;// (90, 150)&lt;o:p&gt;&lt;/o:p&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 5.75pt 6pt 0in"&gt;&lt;STRONG&gt;responseCurve[8] = 90; responseCurve[9] = 150;&lt;o:p&gt;&lt;/o:p&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 5.75pt 6pt 0in"&gt;&lt;o:p&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/o:p&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 5.75pt 6pt 0in"&gt;&lt;STRONG&gt;// Create the buffer.&lt;o:p&gt;&lt;/o:p&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 5.75pt 6pt 0in"&gt;&lt;STRONG&gt;PROPVARIANT pvCurve = {0};&lt;o:p&gt;&lt;/o:p&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 5.75pt 6pt 0in"&gt;&lt;STRONG&gt;InitPropVariantFromBuffer(responseCurve, 10 * sizeof (UINT), &amp;amp;pvCurve);&lt;o:p&gt;&lt;/o:p&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 5.75pt 6pt 0in"&gt;&lt;o:p&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/o:p&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 5.75pt 6pt 0in"&gt;&lt;STRONG&gt;// Add the values to the IPortableDeviceValues object.&lt;o:p&gt;&lt;/o:p&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 5.75pt 6pt 0in"&gt;&lt;STRONG&gt;hr = m_pSensorProperties-&amp;gt;SetValue(SENSOR_PROPERTY_LIGHT_RESPONSE_CURVE, &amp;amp;pvCurve);&lt;/STRONG&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 5.75pt 6pt 0in"&gt;&lt;o:p&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/o:p&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 5.75pt 6pt 0in"&gt;&lt;STRONG&gt;PropVariantClear(&amp;amp;pvCurve);&lt;/STRONG&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 5.75pt 6pt 0in"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Arial','sans-serif'; mso-bidi-font-family: 'Times New Roman'; mso-fareast-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA"&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;From the API perspective, you must be careful to cast arrays to the correct data type for the property or data field. Here's an example of how to "unpack" the light response curve data on the API side:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;PROPVARIANT pvCurve;&lt;BR&gt;PropVariantInit(&amp;amp;pvCurve);&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;// Retrieve the property value.&lt;BR&gt;hr = pSensor-&amp;gt;GetProperty(SENSOR_PROPERTY_LIGHT_RESPONSE_CURVE, &amp;amp;pvCurve);&lt;BR&gt;if (SUCCEEDED(hr))&lt;BR&gt;{&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if ((VT_UI1|VT_VECTOR) == V_VT(pvCurve)) // Note actual type of UI1&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Cast the array to UINT, a 4-byte unsigned integer.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Item count for the array.&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; UINT&amp;nbsp; cElement = pvCurve.caub.cElems/sizeof(UINT);&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Array pointer.&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; UINT* pElement = (UINT*)(pvCurve.caub.pElems);&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Use the array.&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;BR&gt;}&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;// Remember to free the PROPVARIANT when done.&lt;BR&gt;PropVariantClear(&amp;amp;pvCurve);&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Earlier documentation for the Sensor API and WDK (or the header, sensors.h) did not call out this re-typing requirement. We've been updating the docs, but the header comments will continue to show the actual data type, without mention of the serialization issue.&lt;/P&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9832412" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/b/jimtravis/archive/tags/sensor+api/">sensor api</category><category domain="http://blogs.msdn.com/b/jimtravis/archive/tags/sensor+WDK/">sensor WDK</category><category domain="http://blogs.msdn.com/b/jimtravis/archive/tags/VT_5F00_VECTOR/">VT_VECTOR</category></item><item><title>New page on Freescale's Web site for the Windows 7 Sensor Development Kit</title><link>http://blogs.msdn.com/b/jimtravis/archive/2009/06/10/new-page-on-freescale-s-web-site-for-the-windows-7-sensor-development-kit.aspx</link><pubDate>Wed, 10 Jun 2009 02:04:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9718668</guid><dc:creator>jimtravis</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.msdn.com/b/jimtravis/rsscomments.aspx?WeblogPostID=9718668</wfw:commentRss><comments>http://blogs.msdn.com/b/jimtravis/archive/2009/06/10/new-page-on-freescale-s-web-site-for-the-windows-7-sensor-development-kit.aspx#comments</comments><description>&lt;P&gt;&lt;A href="http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=JMBADGE2008-B"&gt;http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=JMBADGE2008-B&lt;/A&gt;&lt;/P&gt;
&lt;P mce_keep="true"&gt;&amp;nbsp;&lt;/P&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9718668" width="1" height="1"&gt;</description></item><item><title>Location Sensors Question from a Reader</title><link>http://blogs.msdn.com/b/jimtravis/archive/2009/06/04/location-sensors-question-from-a-reader.aspx</link><pubDate>Thu, 04 Jun 2009 08:29:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9698354</guid><dc:creator>jimtravis</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.msdn.com/b/jimtravis/rsscomments.aspx?WeblogPostID=9698354</wfw:commentRss><comments>http://blogs.msdn.com/b/jimtravis/archive/2009/06/04/location-sensors-question-from-a-reader.aspx#comments</comments><description>&lt;P&gt;A reader asks:&amp;nbsp;&lt;/P&gt;
&lt;P style="MARGIN: 0in 0in 0pt" class=MsoPlainText&gt;&lt;FONT size=3 face=Consolas&gt;&lt;EM&gt;I've searched for information on Internet how to say to Windows 7 that external Bluetooth GPS should be used as the location sensor, but actually I have not found any answers, just the similar questions in forums. Probably it would be a good post in your blog which will explain what is possible and what not. I suspect there should be some driver support for translating information from Bluetooth COM ports to location, but it should be some class driver that is part of Sensor &amp;amp; Location API. I am using Nokia LD-3W BT GPS. It has category Other and from services there is only Serial Port. GPS function works just fine with legacy applications that use COM port directly, but I would like to know how Win7 can utilize this device as Location sensor.&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P style="MARGIN: 0in 0in 0pt" class=MsoPlainText&gt;&lt;EM&gt;&lt;FONT size=3 face=Consolas&gt;&lt;/FONT&gt;&lt;/EM&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="MARGIN: 0in 0in 0pt" class=MsoPlainText&gt;The Sensor and Location platform in Windows 7 does not provide a class driver for location sensors. In this particular instance, Nokia would have to write an updated native driver for the GPS. Alternatively, you could write a COM port-based sensor driver, but this is not a trivial exercise.&lt;/P&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9698354" width="1" height="1"&gt;</description></item></channel></rss>