<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=unicode" /> <meta http-equiv="Content-Language" content="en-us" /> <style> <!-- p.MsoNormal, li.MsoNormal {margin-top:0mm; margin-right:0mm; margin-bottom:10.0pt; margin-left:0mm; line-height:115%; font-size:11.0pt; font-family:"Calibri","sans-serif";} a:link {color:blue; text-decoration:underline;} a:visited {color:purple; text-decoration:underline;} p {margin-right:0mm; margin-left:0mm; font-size:12.0pt; font-family:"Times New Roman","serif";} ol {margin-bottom:0mm;} --> </style> <title>The Win32 volume/storage Visual Studio programming environment setup </title> <meta name="keywords" content="compiler, build, run, linker, project, Visual Studio, computer, programming, tutorials" /> <meta name="description" content="Steps on how to setup the Win32 programming environment using Visual Studio with C and C++ codes" /> </head> <body lang="EN-US" link="#0000FF" vlink="#800080" topmargin="20" leftmargin="20" rightmargin="20" bottommargin="20"> <div class="Section1"> <h1 align="center" style="margin-bottom:0mm;margin-bottom:.0001pt; text-align:center"><font size="5" face="Times New Roman"> <span style="line-height:115%;font-family:&quot;Arial&quot;; font-weight:400"> Win32 Windows Volume Program and Code Example 1</span></font></h1> <p class="MsoNormal" style="margin-bottom:0mm;margin-bottom:.0001pt">&nbsp;</p> <p class="MsoNormal" style="margin-bottom:0mm;margin-bottom:.0001pt">&nbsp;</p> <p class="MsoNormal" style="margin-bottom:0mm;margin-bottom:.0001pt" align="center"> <font size="3" face="Times New Roman"> <span style="font-size:12.0pt;line-height:115%; font-family:&quot;Arial&quot;">&nbsp;</span></font><script type="text/javascript"> <!-- google_ad_client = "pub-8089415323104206"; google_ad_slot = "0761177910"; google_ad_width = 728; google_ad_height = 90; //--> </script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script> </p> <p class="MsoNormal" style="margin-bottom:0mm;margin-bottom:.0001pt">&nbsp;</p> <p class="MsoNormal" style="margin-bottom:0mm;margin-bottom:.0001pt">&nbsp;</p> <p class="MsoNormal" style="margin-bottom:0mm;margin-bottom:.0001pt"><b> <font size="3" face="Times New Roman"> <span style="font-size:12.0pt;line-height:115%; font-family:&quot;Arial&quot;;font-weight:bold">Some Notes to Students</span></font></b></p> <p class="MsoNormal" style="margin-bottom:0mm;margin-bottom:.0001pt"> <font size="3" face="Times New Roman"> <span style="font-size:12.0pt;line-height:115%; font-family:&quot;Arial&quot;">&nbsp;</span></font></p> <p class="MsoNormal" style="margin-bottom:0mm;margin-bottom:.0001pt"> <font size="3" face="Times New Roman"> <span style="font-size:12.0pt;line-height:115%; font-family:&quot;Arial&quot;">The knowledge and skill that you are supposed to acquire are several C/C++ programming language constructs such as:</span></font></p> <p class="MsoNormal" style="margin-bottom:0mm;margin-bottom:.0001pt"> <font size="3" face="Times New Roman"> <span style="font-size:12.0pt;line-height:115%; font-family:&quot;Arial&quot;">&nbsp;</span></font></p> <ol style="margin-top:0mm" start="1" type="1"> <li class="MsoNormal" style="margin-bottom:0mm;margin-bottom:.0001pt"> <font size="3" face="Times New Roman"> <span style="font-size:12.0pt;line-height: 115%;font-family:&quot;Arial&quot;">(C/C++) Windows Data Types.</span></font></li> <li class="MsoNormal" style="margin-bottom:0mm;margin-bottom:.0001pt"> <font size="3" face="Times New Roman"> <span style="font-size:12.0pt;line-height: 115%;font-family:&quot;Arial&quot;">Typedef.</span></font></li> <li class="MsoNormal" style="margin-bottom:0mm;margin-bottom:.0001pt"> <font size="3" face="Times New Roman"> <span style="font-size:12.0pt;line-height: 115%;font-family:&quot;Arial&quot;">Enumerations.</span></font></li> <li class="MsoNormal" style="margin-bottom:0mm;margin-bottom:.0001pt"> <font size="3" face="Times New Roman"> <span style="font-size:12.0pt;line-height: 115%;font-family:&quot;Arial&quot;">Functions.</span></font></li> <li class="MsoNormal" style="margin-bottom:0mm;margin-bottom:.0001pt"> <font size="3" face="Times New Roman"> <span style="font-size:12.0pt;line-height: 115%;font-family:&quot;Arial&quot;">Structures.</span></font></li> <li class="MsoNormal" style="margin-bottom:0mm;margin-bottom:.0001pt"> <font size="3" face="Times New Roman"> <span style="font-size:12.0pt;line-height: 115%;font-family:&quot;Arial&quot;">Constants (such as used in Control Codes).</span></font></li> <li class="MsoNormal" style="margin-bottom:0mm;margin-bottom:.0001pt"> <font size="3" face="Times New Roman"> <span style="font-size:12.0pt;line-height: 115%;font-family:&quot;Arial&quot;">Macros.</span></font></li> <li class="MsoNormal" style="margin-bottom:0mm;margin-bottom:.0001pt"> <font size="3" face="Times New Roman"> <span style="font-size:12.0pt;line-height: 115%;font-family:&quot;Arial&quot;">The related header files to be included in the program.</span></font></li> <li class="MsoNormal" style="margin-bottom:0mm;margin-bottom:.0001pt"> <font size="3" face="Times New Roman"> <span style="font-size:12.0pt;line-height: 115%;font-family:&quot;Arial&quot;">The related libraries to be linked.</span></font></li> <li class="MsoNormal" style="margin-bottom:0mm;margin-bottom:.0001pt"> <font size="3" face="Times New Roman"> <span style="font-size:12.0pt;line-height: 115%;font-family:&quot;Arial&quot;">Familiarization with <a href="http://www.microsoft.com/exPress/" target="_blank" title="Visual Studio 2008 Express Edition download page"> Visual Studio 2008 Express Edition</a>/Visual Studio 2008</span></font></li> </ol> <p class="MsoNormal" style="margin-bottom:0mm;margin-bottom:.0001pt"> <font size="3" face="Times New Roman"> <span style="font-size:12.0pt;line-height:115%; font-family:&quot;Arial&quot;">&nbsp;</span></font></p> <p class="MsoNormal" style="margin-bottom:0mm;margin-bottom:.0001pt"><b> <font size="3" face="Times New Roman"> <span style="font-size:12.0pt;line-height:115%; font-family:&quot;Arial&quot;;font-weight:bold">Environment for the Program Example (Build and Run)</span></font></b></p> <p class="MsoNormal" style="margin-bottom:0mm;margin-bottom:.0001pt"> <font size="3" face="Times New Roman"> <span style="font-size:12.0pt;line-height:115%; font-family:&quot;Arial&quot;">&nbsp;</span></font></p> <p class="MsoNormal" style="margin-bottom:0mm;margin-bottom:.0001pt"> <font size="3" face="Times New Roman"> <span style="font-size:12.0pt;line-height:115%; font-family:&quot;Arial&quot;">All the program examples build using Visual Studio 2008 with SP/<a href="http://www.microsoft.com/exPress/" target="_blank" title="Visual Studio 2008 Express Edition (free) download page">Visual Studio 2008 Express Edition (free)</a> with SP (C/C++) with <a href="http://msdn.microsoft.com/en-us/windows/bb980924.aspx" target="_blank" title="The Windows PSDK installed download page"> PSDK installed</a> and run on Windows XP Pro SP2. All the projects are Win32 console mode applications, using default settings and source codes are in C/C++. The Visual Studio and PSDK versions are shown in the following screenshots.</span></font></p> <p class="MsoNormal" style="margin-bottom:0mm;margin-bottom:.0001pt"> <font size="3" face="Times New Roman"> <span style="font-size:12.0pt;line-height:115%; font-family:&quot;Arial&quot;">&nbsp;</span></font></p> <p class="MsoNormal" align="center" style="margin-bottom:0mm;margin-bottom:.0001pt; text-align:center"><font size="3" face="Times New Roman"> <span style="font-size: 12.0pt;line-height:115%;font-family:&quot;Arial&quot;"> <img border="0" width="549" height="433" src="windowsvolumeapis1_files/win32volume001.png" alt="Win32 Windows Volume Program and Code Example - Visual Studio version" /></span></font></p> <p class="MsoNormal" style="margin-bottom:0mm;margin-bottom:.0001pt"> <font size="3" face="Times New Roman"> <span style="font-size:12.0pt;line-height:115%; font-family:&quot;Arial&quot;">&nbsp;</span></font></p> <p class="MsoNormal" align="center" style="margin-bottom:0mm;margin-bottom:.0001pt; text-align:center"><font size="3" face="Times New Roman"> <span style="font-size: 12.0pt;line-height:115%;font-family:&quot;Arial&quot;"> <img border="0" width="742" height="339" src="windowsvolumeapis1_files/win32volume002.png" alt="Win32 Windows Volume Program and Code Example - SDK version" /></span></font></p> <p class="MsoNormal" style="margin-bottom:0mm;margin-bottom:.0001pt"> <font size="3" face="Times New Roman"> <span style="font-size:12.0pt;line-height:115%; font-family:&quot;Arial&quot;">&nbsp;</span></font></p> <p class="MsoNormal" align="center" style="margin-bottom:0mm;margin-bottom:.0001pt; text-align:center"><font size="3" face="Times New Roman"> <span style="font-size: 12.0pt;line-height:115%;font-family:&quot;Arial&quot;"> <img border="0" width="549" height="433" src="windowsvolumeapis1_files/win32volume003.png" alt="Win32 Windows Volume Program and Code Example - visual C++ express 2008" /></span></font></p> <p class="MsoNormal" style="margin-bottom:0mm;margin-bottom:.0001pt"> <font size="3" face="Times New Roman"> <span style="font-size:12.0pt;line-height:115%; font-family:&quot;Arial&quot;">&nbsp;</span></font></p> <p class="MsoNormal" align="center" style="margin-bottom:0mm;margin-bottom:.0001pt; text-align:center"><font size="3" face="Times New Roman"> <span style="font-size: 12.0pt;line-height:115%;font-family:&quot;Arial&quot;"> <img border="0" width="777" height="340" src="windowsvolumeapis1_files/win32volume004.png" alt="Win32 Windows Volume Program and Code Example - PSDK version" /></span></font></p> <p class="MsoNormal" style="margin-bottom:0mm;margin-bottom:.0001pt">&nbsp;</p> <p class="MsoNormal" style="margin-bottom:0mm;margin-bottom:.0001pt">&nbsp;</p> <p class="MsoNormal" style="margin-bottom:0mm;margin-bottom:.0001pt" align="center"> <script type="text/javascript"><!-- google_ad_client = "pub-8089415323104206"; google_ad_slot = "2156170134"; google_ad_width = 728; google_ad_height = 15; //--> </script> &nbsp;<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script></p> <h3 align="center" style="margin-top: 0; margin-bottom: 0"> <font face="Byington"><span style="font-weight: 400">&nbsp;&lt; <a title="Windows storage/volume programming tutorials" href="windowsvolumeapis1index.html"> Windows Volume Index</a> | <a title="The Win32 programming tutorial using Visual Studio, C and C++ languages" href="index.html"> Win32 Programming Index</a> | <a title="Win32 File System recognition programming tutorial" href="windowsvolumeapis1_1.html"> Windows Volume 2</a> &gt;</span></font></h3> <div align="center"> <script src="http://tag.contextweb.com/TagPublish/getjs.aspx?action=VIEWAD&cwrun=200&cwadformat=728X90&cwpid=527221&cwwidth=728&cwheight=90&cwpnet=1&cwtagid=82740"></script> </div> </div> </body> </html>