Microsoft grants to you a royalty-free right to use and modify the source code version and to reproduce and distribute the object code version of the sample code, icons, cursors, and bitmaps provided within the Sample Code bin/folder on the SOFTWARE ("Sample Code") provided that you:

distribute the Sample Code only in conjunction with and as a part of your software product that adds primary and significant functionality to the sample code;

do not use Microsoft's name, logo, or trademarks to market your software product; and

agree to indemnify, hold harmless, and defend Microsoft and its suppliers from and against any claims or lawsuits, including attorneys' fees, that arise or result from your distribution of your software product and 

all Microsoft Systems Journal (MSJ) code used within your program(s) must be flagged: 
Copyright {year of publication}, Microsoft Systems Journal.

MSJ does not make any representation or warranty, express or implied with respect to any code or other information herein. 

MSJ disclaims any liability whatsoever for any use of such code or other information.