<?xml version="1.0" encoding="UTF-8"?>
<!-- Generated on Fri, 25 May 2012 09:11:23 -0700 -->
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <atom:link href="http://software.intel.com/en-us/articles/isn/type/code/feed/" rel="self" type="application/rss+xml" />
    <title>Intel Software Network articles Feed</title>
    <link>http://software.intel.com/en-us/articles/isn/type/code/</link>
    <description></description>
    <language>en-us</language>
    <item>
      <title>Accessing an IA-32 DLL from a native Itanium® Architecture Process</title>
      <description><![CDATA[ <div class="sectionBody"><strong>By Clayne Robison, Intel Software Solutions Group, Server ISV Enabling</strong><br />Porting to Itanium architecture: Avoiding dependencies on 3<sup >rd</sup>-party IA32 libraries by using COM or other out-of-process marshalling mechanisms.<br /></div>
<div class="sectionHeading">Abstract/Overview</div>
<div class="sectionBody">Porting an application to the Intel Itanium architecture has many benefits, including the ability to take advantage of 64-bit address space and the architecture's explicit parallelism. However, complex applications often depend on components developed 3rd-party software sources, a dependency that puts the porting project at risk.<br /><br />An analysis of these dependencies may lead to the question: "Is it possible to use an IA32 DLL from within a native Itanium architecture process?" Unfortunately, none of the operating systems currently ported to the Intel Itanium architecture allow this. However, IA32 libraries can be accessed from native Itanium architecture processes provided the IA32 libraries are loaded into a separate process space, and some marshaling mechanism is in place.<br /><br />This source code demonstrates how an IA32 DLL can be used by a native Itanium architecture process using COM.<br /></div>
<div class="sectionHeading">Target Audience</div>
<div class="sectionBody">Enterprise application developers<br /></div>
<div class="sectionHeading">Sample Category:</div>
<div class="sectionBody">Operational Example Code. A complete Microsoft Visual Studio* workspace with three projects.<br /></div>
<div class="sectionHeading">Implementation Language:</div>
<div class="sectionBody">C++/COM<br /></div>
<div class="sectionHeading">Target Hardware &amp; Software Platforms</div>
<div class="sectionBody"><strong>Hardware Systems:</strong> Itanium Architecture<br /><strong>Operating Systems:</strong> Windows*, NET 64.<br /><strong>Compilers:</strong> Microsoft Visual C++ 6.0 SP5 with Microsoft Platform SDK (November 2001)<br /></div>
<div class="sectionHeading">Additional Information</div>
<div class="sectionBody">The project includes instructions on how to build all binaries on a Win32 system using Microsoft Visual C++ 6.0 (SP5) with the November 2001 Platform SDK. Once all binaries are built, they can be run on a Win64 system. All binaries can also be run on a Win32 system (with the exception of the native Itanium architecture test application.)<br /><br /><a href="http://software.intel.com/en-us/articles/code-samples-license?target=http%3A%2F%2Fwww.intel.com%2Fcd%2Fids%2Fdeveloper%2Fasmo-na%2Feng%2F40522.htm">Download Code Sample</a></div>
<!--page break-->
<hr /> ]]></description>
      <link>http://software.intel.com/en-us/articles/accessing-an-ia-32-dll-from-a-native-itaniumr-architecture-process/</link>
      <pubDate>Wed, 08 Jul 2009 00:00:00 -0700</pubDate>
      <comments>http://software.intel.com/en-us/articles/accessing-an-ia-32-dll-from-a-native-itaniumr-architecture-process/#comments</comments>
      <guid isPermaLink="true">http://software.intel.com/en-us/articles/accessing-an-ia-32-dll-from-a-native-itaniumr-architecture-process/</guid>
      <category>ISN General</category>
      <category>Itanium</category>
    </item>
    <item>
      <title>Windows* WM_POWERBROADCAST code sample</title>
      <description><![CDATA[ <!--page break-->
<hr />
<div class="sectionHeading">Why Should I Care About This Code Sample?</div>
<p>As a supplement to the whitepaper, Windows* WM_POWERBROADCAST Messages in a Mobilized Environment, the following source code demonstrates the way an application would handle the WM_POWERBROADCAST message from the Windows operating system.  The application is a standard GUI application with a message pump.  The key area is the switch statement in WndProc() where the WM_POWERBROADCAST case is handled (i.e. line 171).</p>
<p><strong>Target Audience</strong><br />General interest, general application developer for mobile devices interested in handling power messages from Windows.</p>
<p><strong>Sample Category</strong><br />GUI-based application demonstrating the use of WM_POWERBROADCAST</p>
<p><strong>Implementation Language</strong><br />C</p>
<p><strong>Target Hardware &amp; Software Platforms</strong></p>
<p >Hardware Systems: IA-32 platforms<br />Operating Systems: Microsoft Windows* 2000, and Windows* XP<br />Compilers: Microsoft Visual Studio* 6.0 and .Net</p>
<!--page break-->
<hr />
<div class="sectionHeading"><a id="free_download_1" class="filedownload" title="download_1" onclick="show_file_download(1,true,'http://software.intel.com/file/14419')" href="http://software.intel.com/file/14419">Download the source code</a></div>
<div class="sectionHeading">Whitepaper: <a href="http://software.intel.com/en-us/articles/windows-wm_powerbroadcast-messages-in-a-mobilized-environment">Windows* WM_POWERBROADCAST Messages in a Mobilized Environment</a></div>
<p> </p> ]]></description>
      <link>http://software.intel.com/en-us/articles/windows-wm_powerbroadcast-code-sample/</link>
      <pubDate>Thu, 26 Feb 2009 00:00:00 -0800</pubDate>
      <comments>http://software.intel.com/en-us/articles/windows-wm_powerbroadcast-code-sample/#comments</comments>
      <guid isPermaLink="true">http://software.intel.com/en-us/articles/windows-wm_powerbroadcast-code-sample/</guid>
      <category>ISN General</category>
    </item>
    <item>
      <title>Code Samples License</title>
      <description><![CDATA[ <div class="sectionBody"><strong>IMPORTANT - READ BEFORE COPYING, INSTALLING, OR USING.</strong><br /> <br /> Do not copy, install, or use the "Materials" provided under this license agreement ("Agreement"), until you have carefully read the following terms and conditions.<br /> <br /> By copying, installing, or otherwise using the Materials, you agree to be bound by the terms of this Agreement. If you do not agree to the terms of this Agreement, do not copy, install, or use the Materials.<br /></div>
<div class="sectionHeading">Intel® Product License Agreementr</div>
<div class="sectionHeading">LICENSE GRANT:</div>
<div class="sectionBody">Subject to the License Restrictions below, Intel Corporation ("Intel") grants to you the following non-exclusive, non-assignable royalty-free copyright licenses in the "Materials" below, which are identified specifically in License Definitions, and in any updates thereto that Intel may offer in the future.<br /> <br /></div>
<div class="sectionHeading">LICENSE DEFINITIONS:</div>
<div class="sectionBody">Materials are defined as consisting of Sample Source, Redistributables, and End-User Documentation.<br /> <br /> <strong>Sample Source</strong>: may include example interface or application source code. You may copy, modify, and compile the Sample Source and distribute it in your own products in binary and source code form.<br /> <br /> <strong>Redistributables</strong>: include header, library, and dynamically linkable library files. You may copy and distribute Redistributables with your product.<br /> <br /> <strong>End-User Documentation</strong>: includes textual materials intended for end users. You may copy, modify, and distribute them.<br /> <br /></div>
<div class="sectionHeading">LICENSE RESTRICTIONS:</div>
<div class="sectionBody">You may not reverse-assemble, reverse-compile, or otherwise reverse-engineer any software provided solely in binary form.<br /> <br /> Upon Intel's release of an update, upgrade, or new version of the Materials, you will make reasonable efforts to discontinue distribution of the enclosed Materials and you will make reasonable efforts to distribute such updates, upgrades, or new versions to your customers who have received the Materials herein.<br /> <br /> Distribution of the Materials is also subject to the following limitations: You (i) shall be solely responsible to your customers for any update or support obligation or other liability which may arise from the distribution, (ii) do not make any statement that your product is "certified," or that its performance is guaranteed, by Intel, (iii) do not use Intel's name or trademarks to market your product without written permission, (iv) shall prohibit disassembly and reverse engineering, (v) shall not publish reviews of Materials designated herein as beta without written permission by Intel, and (vi) shall indemnify, hold harmless, and defend Intel and its suppliers from and against any claims or lawsuits, including attorney's fees, that arise or result from your distribution of any product.<br /> <br /></div>
<div class="sectionHeading">COPYRIGHT:</div>
<div class="sectionBody">Title to the Materials and all copies thereof remain with Intel or its suppliers. The Materials are copyrighted and are protected by United States copyright laws and international treaty provisions. You will not remove any copyright notice from the Mater ials. You agree to prevent unauthorized copying of the Materials. Except as expressly provided herein, Intel does not grant any express or implied right to you under Intel patents, copyrights, trademarks, or trade secret information.<br /> <br /></div>
<div class="sectionHeading">REPLACEMENTS:</div>
<div class="sectionBody">The Materials are provided "AS IS" without warranty of any kind.<br /> <br /></div>
<div class="sectionHeading">USER SUBMISSIONS:</div>
<div class="sectionBody">You agree that any material, information, or other communication, including all data, images, sounds, text, and other things embodied therein, you transmit or post to an Intel website will be considered non-confidential ("Communications"). Intel will have no confidentiality obligations with respect to the Communications. You agree that Intel and its designees will be free to copy, modify, create derivative works, publicly display, disclose, distribute, license and sublicense through multiple tiers of distribution and licensees, incorporate, and otherwise use the Communications, including derivative works thereto, for any and all commercial or non-commercial purposes.<br /> <br /></div>
<div class="sectionHeading">LIMITATION OF LIABILITY:</div>
<div class="sectionBody">THE ABOVE REPLACEMENT PROVISION IS THE ONLY WARRANTY OF ANY KIND. INTEL OFFERS NO OTHER WARRANTY EITHER EXPRESS OR IMPLIED INCLUDING THOSE OF MERCHANTABILITY, NONINFRINGEMENT OF THIRD-PARTY INTELLECTUAL PROPERTY, OR FITNESS FOR A PARTICULAR PURPOSE. NEITHER INTEL NOR ITS SUPPLIERS SHALL BE LIABLE FOR ANY DAMAGES WHATSOEVER (INCLUDING, WITHOUT LIMITATION, DAMAGES FOR LOSS OF BUSINESS PROFITS, BUSINESS INTERRUPTION, LOSS OF BUSINESS INFORMATION, OR OTHER LOSS) ARISING OUT OF THE USE OF OR INABILITY TO USE THE SOFTWARE, EVEN IF INTEL HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. BECAUSE SOME JURISDICTIONS PROHIBIT THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES, THE ABOVE LIMITATION MAY NOT APPLY TO YOU.<br /> <br /></div>
<div class="sectionHeading">TERMINATION OF THIS LICENSE:</div>
<div class="sectionBody">Intel may terminate this license at any time if you are in breach of any of its terms and conditions. Upon termination, you will immediately destroy the Materials or return all copies of the Materials to Intel along with any copies you have made.<br /> <br /></div>
<div class="sectionHeading">U.S. GOVERNMENT RESTRICTED RIGHTS:</div>
<div class="sectionBody">The Materials are provided with "RESTRICTED RIGHTS." Use, duplication, or disclosure by the Government is subject to restrictions set forth in FAR52.227-14 and DFAR252.227-7013 et. seq. or its successor. Use of the Materials by the Government constitutes acknowledgement of Intel's rights in them.<br /> <br /></div>
<div class="sectionHeading">APPLICABLE LAWS:</div>
<div class="sectionBody">Any claim arising under or relating to this Agreement shall be governed by the internal substantive laws of the State of Delaware or federal courts located in Delaware, without regard to principles of conflict of laws. You may not export the Materials in violation of applicable export laws.<br /> <br /> <br /> <a onclick="ndownload('http://www.intel.com/cd/ids/developer/asmo-na/eng/335377.htm')" href="http://software.intel.comjavascript:void(0)"><strong>Accept</strong></a> <a href="http://software.intel.com/en-us/articles/platform-topology-enumeration-sample-cache-levels-sizes-associativity-on-windows"><strong>Decline</strong></a></div>
<!--page break--> 
<hr /> ]]></description>
      <link>http://software.intel.com/en-us/articles/code-samples-license-4/</link>
      <pubDate>Thu, 16 Oct 2008 00:00:00 -0700</pubDate>
      <comments>http://software.intel.com/en-us/articles/code-samples-license-4/#comments</comments>
      <guid isPermaLink="true">http://software.intel.com/en-us/articles/code-samples-license-4/</guid>
      <category>ISN General</category>
    </item>
    <item>
      <title>Code Samples License</title>
      <description><![CDATA[ <div class="sectionBody"><strong>IMPORTANT - READ BEFORE COPYING, INSTALLING, OR USING.</strong><br /><br />Do not copy, install, or use the "Materials" provided under this license agreement ("Agreement"), until you have carefully read the following terms and conditions.<br /><br />By copying, installing, or otherwise using the Materials, you agree to be bound by the terms of this Agreement. If you do not agree to the terms of this Agreement, do not copy, install, or use the Materials.<br /></div>
<div class="sectionHeading">Intel® Product License Agreementr</div>
<div class="sectionHeading">LICENSE GRANT:</div>
<div class="sectionBody">Subject to the License Restrictions below, Intel Corporation ("Intel") grants to you the following non-exclusive, non-assignable royalty-free copyright licenses in the "Materials" below, which are identified specifically in License Definitions, and in any updates thereto that Intel may offer in the future.<br /><br /></div>
<div class="sectionHeading">LICENSE DEFINITIONS:</div>
<div class="sectionBody">Materials are defined as consisting of Sample Source, Redistributables, and End-User Documentation.<br /><br /><strong>Sample Source</strong>: may include example interface or application source code. You may copy, modify, and compile the Sample Source and distribute it in your own products in binary and source code form.<br /><br /><strong>Redistributables</strong>: include header, library, and dynamically linkable library files. You may copy and distribute Redistributables with your product.<br /><br /><strong>End-User Documentation</strong>: includes textual materials intended for end users. You may copy, modify, and distribute them.<br /><br /></div>
<div class="sectionHeading">LICENSE RESTRICTIONS:</div>
<div class="sectionBody">You may not reverse-assemble, reverse-compile, or otherwise reverse-engineer any software provided solely in binary form.<br /><br />Upon Intel's release of an update, upgrade, or new version of the Materials, you will make reasonable efforts to discontinue distribution of the enclosed Materials and you will make reasonable efforts to distribute such updates, upgrades, or new versions to your customers who have received the Materials herein.<br /><br />Distribution of the Materials is also subject to the following limitations: You (i) shall be solely responsible to your customers for any update or support obligation or other liability which may arise from the distribution, (ii) do not make any statement that your product is "certified," or that its performance is guaranteed, by Intel, (iii) do not use Intel's name or trademarks to market your product without written permission, (iv) shall prohibit disassembly and reverse engineering, (v) shall not publish reviews of Materials designated herein as beta without written permission by Intel, and (vi) shall indemnify, hold harmless, and defend Intel and its suppliers from and against any claims or lawsuits, including attorney's fees, that arise or result from your distribution of any product.<br /><br /></div>
<div class="sectionHeading">COPYRIGHT:</div>
<div class="sectionBody">Title to the Materials and all copies thereof remain with Intel or its suppliers. The Materials are copyrighted and are protected by United States copyright laws and international treaty provisions. You will not remove any copyright notice from the Mater ials. You agree to prevent unauthorized copying of the Materials. Except as expressly provided herein, Intel does not grant any express or implied right to you under Intel patents, copyrights, trademarks, or trade secret information.<br /><br /></div>
<div class="sectionHeading">REPLACEMENTS:</div>
<div class="sectionBody">The Materials are provided "AS IS" without warranty of any kind.<br /><br /></div>
<div class="sectionHeading">USER SUBMISSIONS:</div>
<div class="sectionBody">You agree that any material, information, or other communication, including all data, images, sounds, text, and other things embodied therein, you transmit or post to an Intel website will be considered non-confidential ("Communications"). Intel will have no confidentiality obligations with respect to the Communications. You agree that Intel and its designees will be free to copy, modify, create derivative works, publicly display, disclose, distribute, license and sublicense through multiple tiers of distribution and licensees, incorporate, and otherwise use the Communications, including derivative works thereto, for any and all commercial or non-commercial purposes.<br /><br /></div>
<div class="sectionHeading">LIMITATION OF LIABILITY:</div>
<div class="sectionBody">THE ABOVE REPLACEMENT PROVISION IS THE ONLY WARRANTY OF ANY KIND. INTEL OFFERS NO OTHER WARRANTY EITHER EXPRESS OR IMPLIED INCLUDING THOSE OF MERCHANTABILITY, NONINFRINGEMENT OF THIRD-PARTY INTELLECTUAL PROPERTY, OR FITNESS FOR A PARTICULAR PURPOSE. NEITHER INTEL NOR ITS SUPPLIERS SHALL BE LIABLE FOR ANY DAMAGES WHATSOEVER (INCLUDING, WITHOUT LIMITATION, DAMAGES FOR LOSS OF BUSINESS PROFITS, BUSINESS INTERRUPTION, LOSS OF BUSINESS INFORMATION, OR OTHER LOSS) ARISING OUT OF THE USE OF OR INABILITY TO USE THE SOFTWARE, EVEN IF INTEL HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. BECAUSE SOME JURISDICTIONS PROHIBIT THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES, THE ABOVE LIMITATION MAY NOT APPLY TO YOU.<br /><br /></div>
<div class="sectionHeading">TERMINATION OF THIS LICENSE:</div>
<div class="sectionBody">Intel may terminate this license at any time if you are in breach of any of its terms and conditions. Upon termination, you will immediately destroy the Materials or return all copies of the Materials to Intel along with any copies you have made.<br /><br /></div>
<div class="sectionHeading">U.S. GOVERNMENT RESTRICTED RIGHTS:</div>
<div class="sectionBody">The Materials are provided with "RESTRICTED RIGHTS." Use, duplication, or disclosure by the Government is subject to restrictions set forth in FAR52.227-14 and DFAR252.227-7013 et. seq. or its successor. Use of the Materials by the Government constitutes acknowledgement of Intel's rights in them.<br /><br /></div>
<div class="sectionHeading">APPLICABLE LAWS:</div>
<div class="sectionBody">Any claim arising under or relating to this Agreement shall be governed by the internal substantive laws of the State of Delaware or federal courts located in Delaware, without regard to principles of conflict of laws. You may not export the Materials in violation of applicable export laws.<br /><br /><br /><a onclick="ndownload('http://www.intel.com/cd/ids/developer/asmo-na/eng/148550.htm')" href="http://software.intel.comjavascript:void(0)"><strong>Accept</strong></a> <a href="http://software.intel.com/en-us/articles/enabling-power-event-interception-notification-and-control-in-microsoft-windows-xp"><strong>Decline</strong></a></div>
<!--page break--> 
<hr /> ]]></description>
      <link>http://software.intel.com/en-us/articles/code-samples-license-5/</link>
      <pubDate>Thu, 16 Oct 2008 00:00:00 -0700</pubDate>
      <comments>http://software.intel.com/en-us/articles/code-samples-license-5/#comments</comments>
      <guid isPermaLink="true">http://software.intel.com/en-us/articles/code-samples-license-5/</guid>
      <category>ISN General</category>
    </item>
  </channel></rss>
