<html> <head> <!-- Place this tag in your head or just before your close body tag. --> <script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script> <style type="text/css"> @import url(http://www.google.com/cse/api/branding.css); </style> <meta http-equiv="Content-Type" content="text/html; charset=unicode"> <meta http-equiv="Content-Language" content="en-us"> <meta name="keywords" content="Win32 programming, tutorials, C, C++, codes, samples, examples, programs, errors, problems, software, hardware, tools, lectures, download, notes, OS, Operating System"> <meta name="description" content="The Win32 Windows system programming tutorials using Visual Studio with C and C++ source codes, samples and examples"> <title>Win32 programming tutorial with working code and program examples extracted from MSDN</title> <script type="text/javascript">var switchTo5x=true;</script> <script type="text/javascript" id="st_insights_js" src="http://w.sharethis.com/button/buttons.js?publisher=27f636ed-462a-4d90-b6d1-ca1a0aa7c51a"></script> <script type="text/javascript">stLight.options({publisher: "27f636ed-462a-4d90-b6d1-ca1a0aa7c51a", doNotHash: false, doNotCopy: false, hashAddressBar: true});</script> </head> <body topmargin="20" leftmargin="20" rightmargin="20" bottommargin="20"> <script> (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) })(window,document,'script','//www.google-analytics.com/analytics.js','ga'); ga('create', 'UA-42443033-1', 'installsetupconfig.com'); ga('send', 'pageview'); </script> <table border="0" width="100%"> <tr> <td colspan="2" bgcolor="#808080"> <h1 align="center" style="margin-top: 0; margin-bottom: 0"> <font face="Blue Highway Linocut" size="7"> <span style="font-weight: 400">The Win32 Programming Tutorials For Fun (and funny too)</span></font></h1> <p align="center" style="margin-top: 0; margin-bottom: 0"><i> <font face="Blue Highway Linocut" size="4">What you build is what you get...</font></i></td> </tr> <tr> <td colspan="2" bgcolor="#000000"> <p align="center" style="margin-top: 0; margin-bottom: 0">&nbsp;<p align="center" style="margin-top: 0; margin-bottom: 0"> <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 align="center" style="margin-top: 0; margin-bottom: 0">&nbsp;</td> </tr> <tr> <td width="15%" bgcolor="#000000" height="1290"> <p align="center" style="margin-top: 0; margin-bottom: 0">&nbsp;<script type="text/javascript"><!-- google_ad_client = "pub-8089415323104206"; /* 160x600created2/16/10side */ google_ad_slot = "3614899554"; google_ad_width = 160; google_ad_height = 600; //--> </script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script> <p align="center" style="margin-top: 0; margin-bottom: 0">&nbsp;<p align="center" style="margin-top: 0; margin-bottom: 0">&nbsp;<p align="center" style="margin-top: 0; margin-bottom: 0">&nbsp;<p align="center" style="margin-top: 0; margin-bottom: 0">&nbsp;<p align="center" style="margin-top: 0; margin-bottom: 0">&nbsp;<!-- Place this tag where you want the +1 button to render. --> <centre><div class="g-plusone" data-href="http://www.installsetupconfig.com/win32programming/"></div></centre></td> <td width="84%" height="1290"> <h3 style="margin-top: 0; margin-bottom: 0; " align="justify"> <span style="font-weight: 400"><font face="Arial">The following topics contains the working (<i>but unverified an unedited!</i>) Win32 program examples used in our class for Win32 programming subject. Those notes and program examples were extracted from the MSDN, removing a lot of cross references and more focused. We are more concerned on the code samples. Hence, step-by-step is presented for all the code recompilation and instructors have tried their best to make sure those programs have output samples. For any missing information, please refer to <a title="The MSDN online documentation" href="http://msdn.microsoft.com/"> MSDN online documentation</a>. Take note that, the slides used in your class just an entry level. You must study the code samples to grasp the skills. The fundamental of C programming skills should be required and you can have a &#39;refreshment&#39; at <a title="The best and complete C hands-on programming pratice" target="_blank" href="http://www.tenouk.com/clabworksheet/clabworksheet.html"> C hands-on programming zone</a>.</font></span></h3> <h3 style="margin-top: 0; margin-bottom: 0; " align="justify"> <span style="font-weight: 400"><font face="Arial">This is Windows system programming from users pov. The computer used to build the code samples is Windows XP Pro SP2 using <a title="Visual Studio Express Edition" target="_blank" href="http://www.microsoft.com/exPress/"> Visual Studio Express (free)</a> and <a title="Visual Studio Full Version free trial download" target="_blank" href="http://www.microsoft.com/visualstudio/en-us/default.mspx"> Full versions (free trial)</a> with <a title="Windows Platform Software Development Kit (PSDK)" target="_blank" href="http://msdn.microsoft.com/en-us/windows/bb980924.aspx">PSDK installed</a>. What you compile is what you get. Those code examples compiled as Unicode and the previous/ANSI version can be found at <a title="The Win32 programming from the source using ANSI" target="_blank" href="http://www.tenouk.com/cnwin32tutorials.html"> Win32 ANSI version</a>. Be nice to Win32 and enjoy coding!</font></span></h3> <ol> <li> <h3 style="margin-top: 0; margin-bottom: 0; line-height:150%"> <font face="Arial"> <span style="font-weight: 400"> <a title="The Win32 Windows Volume Programming" href="windowsvolumeapis1index.html">The Win32 Windows Volume Programming</a></span></font></h3> </li> <li> <h3 style="margin-top: 0; margin-bottom: 0; line-height:150%"><font face="Arial"> <span style="font-weight: 400"> <a title="The Win32 Windows Disk Programming" href="windowsdiskapis2index.html">The Win32 Windows Disk Programming</a></span></font></h3> </li> <li> <h3 style="margin-top: 0; margin-bottom: 0; line-height:150%"><font face="Arial"> <span style="font-weight: 400"> <a title="The Win32 Windows Directory Programming" href="windowsdirectoryapis3index.html">The Win32 Windows Directory Programming</a></span></font></h3> </li> <li> <h3 style="margin-top: 0; margin-bottom: 0; line-height:150%"><font face="Arial"> <span style="font-weight: 400"> <a title="The Windows Win32 File Management Programming" href="windowsfileapis4index.html">The Windows Win32 File Management Programming</a></span></font></h3> </li> <li> <h3 style="margin-top: 0; margin-bottom: 0; line-height:150%"><font face="Arial"> <span style="font-weight: 400"> <a title="The Windows Services Win32 Programming" href="windowsservicesapis5index.html">The Windows Services Win32 Programming</a></span></font></h3> </li> <li> <h3 style="margin-top: 0; margin-bottom: 0; line-height:150%"><font face="Arial"> <span style="font-weight: 400"> <a title="Some Things About Exceptions in Windows Win32 Programming" href="windowsexceptionhandling5a.html">Some Things About Exceptions Handling in Windows Win32 Programming</a></span></font></h3> </li> <li> <h3 style="margin-top: 0; margin-bottom: 0; line-height:150%"><font face="Arial"> <span style="font-weight: 400"> <a title="The Windows Registry Win32 Programming" href="windowsregistryapis6index.html">The Windows Registry Win32 Programming</a></span></font></h3> </li> <li> <h3 style="margin-top: 0; margin-bottom: 0; line-height:150%"><font face="Arial"> <span style="font-weight: 400"> <a title="The Windows Processes and Threads" href="windowsthreadsprocessapis7index.html">The Windows Processes and Threads</a></span></font></h3> </li> <li> <h3 style="margin-top: 0; margin-bottom: 0; line-height:150%"><font face="Arial"> <span style="font-weight: 400"> <a title="The Windows Character Mode Application Win32 Programming" href="winconsolecharapplication8index.html">The Windows Character Mode Application Win32 Programming</a></span></font></h3> </li> </ol> <p style="margin-top: 0; margin-bottom: 0; line-height:150%">&nbsp;</p> <p align="center" style="margin-top: 0; margin-bottom: 0"> <script type="text/javascript"><!-- google_ad_client = "pub-8089415323104206"; /* 728x90created2/16/10top */ google_ad_slot = "0761177910"; google_ad_width = 728; google_ad_height = 90; //--> </script> &nbsp;<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script></p> <p style="margin-top: 0; margin-bottom: 0; line-height:150%">&nbsp;</p> <ol start="10"> <li> <h3 style="margin-top: 0; margin-bottom: 0; line-height:150%"> <font face="Arial"> <span style="font-weight: 400"> <a title="The Windows Dynamic Link Library (DLL) Win32 Programming" href="dynamiclinklibrarydll9index.html">The Windows Dynamic Link Library (DLL) Win32 Programming</a></span></font></h3> </li> <li> <h3 style="margin-top: 0; margin-bottom: 0; line-height:150%"><font face="Arial"> <span style="font-weight: 400"> <a title="The Windows Process Status Helpers APIs Programming" href="processstatushelperapis10index.html">The Windows Process Status Helpers APIs Programming</a></span></font></h3> </li> <li> <h3 style="margin-top: 0; margin-bottom: 0; line-height:150%"><font face="Arial"> <span style="font-weight: 400"> <a title="The Windows Thread Synchronization Win32 Programming" href="threadprocesssynchronizationapis11index.html">The Windows Thread Synchronization Win32 Programming</a></span></font></h3> </li> <li> <h3 style="margin-top: 0; margin-bottom: 0; line-height:150%"><font face="Arial"> <span style="font-weight: 400"> <a title="The Windows Process Tool Help Library Win32 Programming" href="processtoolhelpapis12index.html">The Windows Process Tool Help Library Win32 Programming</a></span></font></h3> </li> <li> <h3 style="margin-top: 0; margin-bottom: 0; line-height:150%"><font face="Arial"> <span style="font-weight: 400"> <a title="The Windows Station &amp; Desktop Win32 Programming" href="windowstationsdesktops13index.html">The Windows Station &amp; Desktop Win32 Programming</a></span></font></h3> </li> <li> <h3 style="margin-top: 0; margin-bottom: 0; line-height:150%"><font face="Arial"> <span style="font-weight: 400"> <a title="The Windows Socket 2 (Winsock2) Programming" href="windowsocketwinsock214index.html"> An Intro to Windows Socket 2 (Winsock2) Programming</a></span></font></h3> </li> <li> <h3 style="margin-top: 0; margin-bottom: 0; line-height:150%"><font face="Arial"> <span style="font-weight: 400"> <a title="An Intro to Windows Driver Kit (WDK) Programming" href="windowsdriverkitswdk15index.html">An Intro to Windows Driver Kit (WDK) Programming</a></span></font></h3> </li> <li> <h3 style="margin-top: 0; margin-bottom: 0; line-height:150%"><font face="Arial"> <span style="font-weight: 400"> <a title="The Win32 Network Management APIs Programming" href="networkmanagementapis16index.html">The Win32 Network Management APIs Programming</a></span></font></h3> </li> <li> <h3 style="margin-top: 0; margin-bottom: 0; "><font face="Arial"> <span style="font-weight: 400"> <a title="The Windows Security: Access Control List (ACL) Programming" href="accesscontrollistaclindex.html">The Windows Security: Access Control List (ACL) Programming</a></span></font></h3> </li> </ol> <p style="margin-top: 0; margin-bottom: 0; " align="justify">&nbsp; </p> <p style="margin-top: 0; margin-bottom: 0; " align="justify">&nbsp; </p> <p style="margin-top: 0; margin-bottom: 0; " align="justify"> &nbsp;<div style="text-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><p></p> <p style="margin-top: 0; margin-bottom: 0; " align="justify">&nbsp; </p> <p style="margin-top: 0; margin-bottom: 0; " align="justify">&nbsp; </p> <h3 style="margin-top: 0; margin-bottom: 0; " align="justify"> <span style="font-weight: 400"><font face="Arial">The content of this hands-on tutorial concentrates on three parts:</font></span></h3> <ol> <li> <h3 style="margin-top: 0; margin-bottom: 0; " align="justify"> <span style="font-weight: 400"><font face="Arial">The Windows system programming from user point of view.</font></span></h3></li> <li> <h3 style="margin-top: 0; margin-bottom: 0; " align="justify"> <span style="font-weight: 400"><font face="Arial">The Windows socket (an introduction and a complete tutorial can be found at <a title="A complete Windows network sample code and programs using C" target="_blank" href="http://www.winsocketdotnetworkprogramming.com/winsock2programming/">Windows network programming with C</a> and <a title="A complete hands-on Windows network programming" target="_blank" href="http://www.winsocketdotnetworkprogramming.com/"> C++/VB .NET/C#</a>) and</font></span></h3></li> <li> <h3 style="margin-top: 0; margin-bottom: 0; " align="justify"> <span style="font-weight: 400"><font face="Arial">Windows driver development - WDK (an introduction).</font></span></h3></li> </ol> <h3 style="margin-top: 0; margin-bottom: 0; " align="justify"> <span style="font-weight: 400"><font face="Arial">The following links provide the completed Visual C++ sample projects used in this tutorial for all sessions to be downloaded as guides for your practice. Take note for the Visual Studio/C++ project environment settings for those project to be built and run successfully. Please ask your labs&#39; instructors for any clarification.</font></span></h3> <p style="margin-top: 0; margin-bottom: 0; line-height:150%" align="left">&nbsp;</p> <h3 style="margin-top: 0; margin-bottom: 0; line-height:150%" align="center"> <font face="Arial" size="5"> <span style="font-weight: 400; background-color:#FFFFFF"> <a title="The Visual C++ Win32 sample completed project provided as is basis" href="download.html"> Completed Sample Project Page 1 (zip)</a> | <a title="The Win32 Windows system Visual C++ completed sample project for users download" href="downloadwin32example2.html"> Completed Sample Project Page 2&nbsp; (zip)</a> | <a title="The Win32 Windows security hacking through program provided as users practise" href="downloadwin32example3.html"> Completed Sample Project Page 3&nbsp; (zip)</a></span></font></h3> <div align="left">&nbsp;</div></td> </tr> <tr> <td colspan="2" bgcolor="#000000"> <p align="left" style="margin-top: 0; margin-bottom: 0">&nbsp;<h1 align="center" style="margin-top: 0; margin-bottom: 0"> <font face="Arial"><span style="font-weight: 400"> <font size="5" color="#FFFFFF">All the program examples (in HTML) can be downloaded at </font> <a title="The Win32 developer page using Visual C++ program example index page" href="Win32codesampleindexpage.html"> <font size="5">Win32 Working Program Example Index Page</font></a></span></font></h1> <p align="center" style="margin-top: 0; margin-bottom: 0"> <font face="Arial"><span style="font-weight: 400"> <font size="5" color="#FFFFFF">The pdf version can be downloaded at <a title="The Win32 Programming Tutorials (pdf)" href="http://www.installsetupconfig.com/win32programming/thewindowswin32programmingtutorials.html"> Win32 Programming Tutorials</a> </font> </span></font></p> <p align="center" style="margin-top: 0; margin-bottom: 0">&nbsp; </p> <p align="center" style="margin-top: 0; margin-bottom: 0"> <font face="DejaVu Sans Condensed" size="2"><script type="text/javascript" language="javascript"> var sc_project=443642; var sc_partition=2; var sc_security=""; var sc_invisible=1; </script><script type="text/javascript" language="javascript" src="http://www.statcounter.com/counter/counter.js"></script><noscript><a href="http://www.statcounter.com/" target="_blank"> <img src="http://c3.statcounter.com/counter.php?sc_project=443642&java=0&security=&invisible=1" alt="web page hit counter" border="0" /> </a> </noscript></font></p> <p align="left" style="margin-top: 0; margin-bottom: 0">&nbsp;</td> </tr> <tr> <td bgcolor="#FFFF99"> <h3 style="margin-top: 0; margin-bottom: 0" align="center"><font face="Arial"> <span style="font-weight: 400"> <a title="The ReactOS: The Windows OS Binary Compatible Open Source Project in the making" href="http://www.reactos.org/"> The Windows OS Binary Compatible Open Source Project: ReactOS</a>&nbsp; (external)</span></font></h3> </td> <td> <p style="margin-top: 0; margin-bottom: 0">&nbsp;<style type="text/css"> @import url(http://www.google.com/cse/api/branding.css); </style> </p> <div class="cse-branding-right" style="background-color:#FFFFFF;color:#000000"> <div class="cse-branding-form"> <form action="http://www.google.com/cse" id="cse-search-box"> <div> <input type="hidden" name="cx" value="partner-pub-8089415323104206:6tl3bj-ku3c" /> <input type="hidden" name="ie" value="UTF-8" /> <p style="margin-top: 0; margin-bottom: 0"> <input type="text" name="q" size="31" /> <input type="submit" name="sa" value="Search" /> </div> </form> </div> <div class="cse-branding-logo"> <p style="margin-top: 0; margin-bottom: 0"> <img src="http://www.google.com/images/poweredby_transparent/poweredby_FFFFFF.gif" alt="Google" /> </div> <div class="cse-branding-text"> <p style="margin-top: 0; margin-bottom: 0"> <i>Custom Search</i> </div> </div></td> </tr> <tr> <td bgcolor="#FFFF99"> <p style="margin-top: 0; margin-bottom: 0">&nbsp;</td> <td> <p style="margin-top: 0; margin-bottom: 0">&nbsp;</p> <h1 style="margin-top: 0; margin-bottom: 0" align="center"> <font face="Arial"><span style="font-weight: 400"> <a title="Install, Build and Debug ReactOS: A Hands-on Practice" target="_top" href="http://www.installsetupconfig.com/win32programming/installbuilddebugreactos.html"> Install, Build and Debug ReactOS: A Hands-on Practice</a></span></font></h1> <p style="margin-top: 0; margin-bottom: 0">&nbsp;</td> </tr> <tr> <td colspan="2" align="center" height="131"> <p style="margin-top: 0; margin-bottom: 0"> <font size="4" face="Arial">Translate, email to friends and share:</font></p> <p style="margin-top: 0; margin-bottom: 0"><span class='st_googleplus' displayText='Google +'></span> <span class='st_sharethis' displayText='ShareThis'></span> <span class='st_facebook' displayText='Facebook'></span> <span class='st_fbrec' displayText='Facebook Recommend'></span> <span class='st_twitter' displayText='Tweet'></span> <span class='st_pinterest' displayText='Pinterest'></span> <span class='st_blogger' displayText='Blogger'></span> <span class='st_digg' displayText='Digg'></span> <span class='st_delicious' displayText='Delicious'></span> <span class='st_blinklist' displayText='Blinklist'></span> <span class='st_linkedin' displayText='LinkedIn'></span> <span class='st_allvoices' displayText='Allvoices'></span> <span class='st_print' displayText='Print'></span> <span class='st_newsvine' displayText='Newsvine'></span> <span class='st_google_reader' displayText='Google Reader'></span> <span class='st_google' displayText='Google'></span> <span class='st_email' displayText='Email'></span> <span class='st_stumbleupon' displayText='StumbleUpon'></span> <span class='st_reddit' displayText='Reddit'></span> </p> </td> </tr> <tr> <td colspan="2" bgcolor="#000000"> <h1 style="margin-top: 0; margin-bottom: 0;" align="center"> <span style="font-weight: 400;"> <font size="2" face="Arial"><font color="#808080">|&nbsp; </font><span style="text-decoration: none;"> <a title="windows programming win32 disclaimer" target="_top" style="color: blue; text-decoration: none" href="http://www.installsetupconfig.com/win32programming/disclaimer.html"> <font color="#808080">DISCLAIMER</font></a></span><font color="#808080">&nbsp; |&nbsp; </font><span style="text-decoration: none;"> <a title="windows programming win32 privacy" target="_top" style="color: blue; text-decoration: none" href="http://www.installsetupconfig.com/win32programming/privacy.html"> <font color="#808080">PRIVACY</font></a></span><font color="#808080"> | </font></font><font size="2"> <font face="Arial"> <span style="margin: 1pt; font-family: DejaVu Sans Condensed; text-align: center; text-decoration: none;" align="center"> <a title="windows programming win32 contact" style="color: rgb(128, 128, 128); text-decoration: none" href="mailto:contact@installsetupconfig.com?subject=feedback to installsetupconfig.com"> CONTACT</a></span></font><span style="margin: 1pt; text-align: center;" align="center"><font color="#808080" face="Arial"> |</font></span></font></span></h1> <p style="margin-top: 0; margin-bottom: 0;" align="center"> <font color="#FFFFFF" face="Arial">Excellent hosting powered by: Mochahost.com -</font><font color="#FFFFFF" size="4" face="Arial"> </font>&nbsp;<a href="http://www.mochahost.com/216-0-3-60.html" target="_blank">Windows/Linux Reseller Plans starting at $9.97/month ! </a> </p> </td> </tr> </table> </body> </html>