ÿþ<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=unicode" /> <meta http-equiv="Content-Language" content="en-us" /> <title>The Windows Win32 Services programming tutorials</title> <meta name="keywords" content="Windows services, Win32 services, Windows systems, programs, examples, code samples, security, data, management, coding, projects, tools, technology" /> <meta name="description" content="The Windows Services Win32 programming references: notes, tutorials and program examples with code samples using Visual Studio" /> </head> <body topmargin="20" leftmargin="20" rightmargin="20" bottommargin="20"> <table border="0" width="100%"> <tr> <td colspan="2"> <h1 align="center" style="margin-top:0; margin-bottom:0"> <font face="Batang"><span style="font-weight: 400">The Windows Services Win32 Programming</span></font></h1> </td> </tr> <tr> <td colspan="2"> <p 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> </td> </tr> <tr> <td width="7%" align="center"> <h3> <font face="Byington"><span style="font-weight: 400"> <a title="The Win32 programming tutorial using Visual Studio, C and C++ languages" target="_top" href="index.html"> HOME</a></span></font></h3> <p>&nbsp;</p> <p>&nbsp;</p> <p> <script type="text/javascript"><!-- google_ad_client = "pub-8089415323104206"; google_ad_slot = "3614899554"; google_ad_width = 160; google_ad_height = 600; //--> </script> &nbsp;<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script></td> <td width="92%"> <h1 style="margin-bottom:0mm;margin-bottom:0; margin-top:0"> <font size="5" face="Times New Roman"> <span style="line-height:115%; font-family:&quot;Arial&quot;; font-weight:400">What do we have in this session?</span></font></h1> <p style="margin-bottom:0mm;margin-bottom:0; margin-top:0"> &nbsp;</p> <p style="margin-bottom:0mm;margin-bottom:0; margin-top:0"> <font face="Arial">Windows service is another way on how to run Windows executable. In this tutorial we will learn how to create, initialize, start, stop, pause and delete Windows service. We will also learn how to modify and control Windows services...</font></p> <ol> <li> <h3 style="margin-bottom:0mm;margin-bottom:0; margin-top:0"> <font face="Byington"><span style="font-weight: 400"> <a href="windowsservicesapis5.html">Brief Introduction</a></span></font></h3> </li> <li> <h3 style="margin-bottom:0mm;margin-bottom:0; margin-top:0"> <font face="Byington"><span style="font-weight: 400">Service Changes for Windows Vista</span></font></h3> </li> <li> <h3 style="margin-bottom:0mm;margin-bottom:0; margin-top:0"> <font face="Byington"><span style="font-weight: 400"> <a href="windowsservicesapis5_1.html">Introduction on Windows Services</a></span></font></h3> </li> <li> <h3 style="margin-bottom:0mm;margin-bottom:0;line-height: normal; margin-top:0"><font face="Byington"><span style="font-weight: 400">Service Control Manager</span></font></h3> </li> <li> <h3 style="margin-bottom:0mm;margin-bottom:0;line-height: normal; margin-top:0"><font face="Byington"><span style="font-weight: 400">Database of Installed Services</span></font></h3> </li> <li> <h3 style="margin-bottom:0mm;margin-bottom:0;line-height: normal; margin-top:0"><font face="Byington"><span style="font-weight: 400"> <a href="windowsservicesapis5_2.html">Automatically Starting Services</a></span></font></h3> </li> <li> <h3 style="margin-bottom:0mm;margin-bottom:0; margin-top:0"> <font face="Byington"><span style="font-weight: 400"> <a href="windowsservicesapis5_3.html">Starting Services on Demand</a></span></font></h3> </li> <li> <h3 style="margin-bottom:0mm;margin-bottom:0;line-height: normal; margin-top:0"><font face="Byington"><span style="font-weight: 400">Service Record List</span></font></h3> </li> <li> <h3 style="margin-bottom:0mm;margin-bottom:0;line-height: normal; margin-top:0"><font face="Byington"><span style="font-weight: 400">SCM Handles</span></font></h3> </li> <li> <h3 style="margin-bottom:0mm;margin-bottom:0;line-height: normal; margin-top:0"><font face="Byington"><span style="font-weight: 400">Service Programs</span></font></h3> </li> <li> <h3 style="margin-bottom:0mm;margin-bottom:0; margin-top:0"> <font face="Byington"><span style="font-weight: 400">Service Entry Point</span></font></h3> </li> <li> <h3 style="margin-bottom:0mm;margin-bottom:0; margin-top:0"> <font face="Byington"><span style="font-weight: 400">Service ServiceMain Function</span></font></h3> </li> <li> <h3 style="margin-bottom:0;line-height: normal; margin-top:0"><font face="Byington"><span style="font-weight: 400">Service Control Handler Function</span></font></h3> </li> <li> <h3 style="margin-bottom:0mm;margin-bottom:0; margin-top:0"> <font face="Byington"><span style="font-weight: 400"> <a href="windowsservicesapis5_4.html">Receiving Events in a Service</a></span></font></h3> </li> <li> <h3 style="margin-bottom:0mm;margin-bottom:0; margin-top:0"> <font face="Byington"><span style="font-weight: 400">Multithreaded Services</span></font></h3> </li> <li> <h3 style="margin-bottom:0mm;margin-bottom:0;line-height: normal; margin-top:0"><font face="Byington"><span style="font-weight: 400">Services and the Registry</span></font></h3> </li> <li> <h3 style="margin-bottom:0mm;margin-bottom:0;line-height: normal; margin-top:0"><font face="Byington"><span style="font-weight: 400">Services and Redirected Drives</span></font></h3> </li> <li> <h3 style="margin-bottom:0mm;margin-bottom:0; margin-top:0"> <font face="Byington"><span style="font-weight: 400">Redirected Drives on Windows 2000</span></font></h3> </li> <li> <h3 style="margin-bottom:0mm;margin-bottom:0;line-height: normal; margin-top:0"><font face="Byington"><span style="font-weight: 400">Service Trigger Events</span></font></h3> </li> <li> <h3 style="margin-bottom:0mm;margin-bottom:0; margin-top:0"> <font face="Byington"><span style="font-weight: 400"> <a href="windowsservicesapis5_5.html">Service Configuration Programs</a></span></font></h3> </li> <li> <h3 style="margin-bottom:0mm;margin-bottom:0; margin-top:0"> <font face="Byington"><span style="font-weight: 400">Service Installation, Removal, and Enumeration</span></font></h3> </li> <li> <h3 style="margin-bottom:0mm;margin-bottom:0; margin-top:0"> <font face="Byington"><span style="font-weight: 400">Service Configuration</span></font></h3> </li> <li> <h3 style="margin-bottom:0mm;margin-bottom:0; margin-top:0"> <font face="Byington"><span style="font-weight: 400">Configuring a Service Using SC</span></font></h3> </li> </ol> <p style="margin-bottom:0mm;margin-bottom:0; margin-top:0">&nbsp;</p> <p style="margin-bottom:0mm;margin-bottom:0; margin-top:0">&nbsp;</p> <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> <p style="margin-top: 0; margin-bottom: 0"></p> <p style="margin-bottom:0mm;margin-bottom:0; margin-top:0">&nbsp;</p> <ol start="24"> <li> <h3 style="margin-bottom:0mm;margin-bottom:0;line-height: normal; margin-top:0"><font face="Byington"><span style="font-weight: 400"> <a href="windowsservicesapis5_6.html">Service Control Programs</a></span></font></h3> </li> <li> <h3 style="margin-bottom:0mm;margin-bottom:0;line-height: normal; margin-top:0"><font face="Byington"><span style="font-weight: 400">Service Startup</span></font></h3> </li> <li> <h3 style="margin-bottom:0mm;margin-bottom:0;line-height: normal; margin-top:0"><font face="Byington"><span style="font-weight: 400">Service Control Requests</span></font></h3> </li> <li> <h3 style="margin-bottom:0mm;margin-bottom:0;line-height: normal; margin-top:0"><font face="Byington"><span style="font-weight: 400">Service User Accounts (SUA)</span></font></h3> </li> <li> <h3 style="margin-bottom:0mm;margin-bottom:0;line-height: normal; margin-top:0"><font face="Byington"><span style="font-weight: 400">LocalService Account</span></font></h3> </li> <li> <h3 style="margin-bottom:0mm;margin-bottom:0;line-height: normal; margin-top:0"><font face="Byington"><span style="font-weight: 400">NetworkService Account</span></font></h3> </li> <li> <h3 style="margin-bottom:0mm;margin-bottom:0;line-height: normal; margin-top:0"><font face="Byington"><span style="font-weight: 400">LocalSystem Account</span></font></h3> </li> <li> <h3 style="margin-bottom:0mm;margin-bottom:0; margin-top:0"> <font face="Byington"><span style="font-weight: 400"> <a href="windowsservicesapis5_7.html">Interactive Services</a></span></font></h3> </li> <li> <h3 style="margin-bottom:0mm;margin-bottom:0; margin-top:0"> <font face="Byington"><span style="font-weight: 400">Interacting with a User from a Service Indirectly</span></font></h3> </li> <li> <h3 style="margin-bottom:0mm;margin-bottom:0; margin-top:0"> <font face="Byington"><span style="font-weight: 400">Using an Interactive Service</span></font></h3> </li> <li> <h3 style="margin-bottom:0mm;margin-bottom:0;line-height: normal; margin-top:0"><font face="Byington"><span style="font-weight: 400">Service Security and Access Rights</span></font></h3> </li> <li> <h3 style="margin-bottom:0mm;margin-bottom:0; margin-top:0"> <font face="Byington"><span style="font-weight: 400">Access Rights for the Service Control Manager</span></font></h3> </li> <li> <h3 style="margin-bottom:0mm;margin-bottom:0; margin-top:0"> <font face="Byington"><span style="font-weight: 400">Access Rights for a Service</span></font></h3> </li> <li> <h3 style="margin-bottom:0mm;margin-bottom:0;line-height: normal; margin-top:0"><font face="Byington"><span style="font-weight: 400"> <a href="windowsservicesapis5_8.html">Debugging a Service</a></span></font></h3> </li> <li> <h3 style="margin-bottom:0mm;margin-bottom:0; margin-top:0"> <font face="Byington"><span style="font-weight: 400"> <a href="windowsservicesapis5_9.html">Using Services: Program Examples</a></span></font></h3> </li> <li> <h3 style="margin-bottom:0mm;margin-bottom:0; margin-top:0"> <font face="Byington"><span style="font-weight: 400">Service Program Tasks</span></font></h3> </li> <li> <h3 style="margin-bottom:0mm;margin-bottom:0; margin-top:0"> <font face="Byington"><span style="font-weight: 400">Service Configuration Program Tasks</span></font></h3> </li> <li> <h3 style="margin-bottom:0mm;margin-bottom:0; margin-top:0"> <font face="Byington"><span style="font-weight: 400">Service Control Program Tasks</span></font></h3> </li> <li> <h3 style="margin-bottom:0mm;margin-bottom:0; margin-top:0"> <font face="Byington"><span style="font-weight: 400">Writing a Service Program&#39;s main Function Example</span></font></h3> </li> <li> <h3 style="margin-bottom:0mm;margin-bottom:0; margin-top:0"> <font face="Byington"><span style="font-weight: 400"> <a href="windowsservicesapis5_10.html">Writing a ServiceMain Function Example</a></span></font></h3> </li> <li> <h3 style="margin-bottom:0mm;margin-bottom:0;line-height: normal; margin-top:0"><font face="Byington"><span style="font-weight: 400"> <a href="windowsservicesapis5_11.html">Writing a Control Handler Function Example</a></span></font></h3> </li> <li> <h3 style="margin-bottom:0mm;margin-bottom:0;line-height: normal; margin-top:0"><font face="Byington"><span style="font-weight: 400">Installing a Service Example</span></font></h3> </li> <li> <h3 style="margin-bottom:0mm;margin-bottom:0;line-height: normal; margin-top:0"><font face="Byington"><span style="font-weight: 400"> <a href="windowsservicesapis5_12.html">Deleting a Service Example</a></span></font></h3> </li> <li> <h3 style="margin-bottom:0mm;margin-bottom:0;line-height: normal; margin-top:0"><font face="Byington"><span style="font-weight: 400">Changing a Service&#39;s Configuration example</span></font></h3> </li> <li> <h3 style="margin-bottom:0mm;margin-bottom:0;line-height: normal; margin-top:0"><font face="Byington"><span style="font-weight: 400"> <a href="windowsservicesapis5_13.html">Querying a Service&#39;s Configuration Example</a></span></font></h3> </li> <li> <h3 style="margin-bottom:0mm;margin-bottom:0;line-height: normal; margin-top:0"><font face="Byington"><span style="font-weight: 400"> <a href="windowsservicesapis5_14.html">Starting a Windows Service Example</a></span></font></h3> </li> <li> <h3 style="margin-bottom:0mm;margin-bottom:0;line-height: normal; margin-top:0"><font face="Byington"><span style="font-weight: 400"> <a href="windowsservicesapis5_15.html">Stopping a Windows Service Example</a></span></font></h3> </li> <li> <h3 style="margin-bottom:0mm;margin-bottom:0; margin-top:0"> <font face="Byington"><span style="font-weight: 400"> <a href="windowsservicesapis5_16.html">Modifying the DACL for a Windows Service Example</a></span></font></h3> </li> <li> <h3 style="margin-bottom:0mm;margin-bottom:0; margin-top:0"> <font face="Byington"><span style="font-weight: 400"> <a href="windowsservicesapis5_17.html">A Complete Windows Service Working Program Example</a></span></font></h3> </li> <li> <h3 style="margin-bottom:0mm;margin-bottom:0; margin-top:0"> <font face="Byington"><span style="font-weight: 400">Creating a New Console Application</span></font></h3> </li> <li> <h3 style="margin-bottom:0mm;margin-bottom:0; margin-top:0"> <font face="Byington"><span style="font-weight: 400">Creating a Message File (Generating DLL, Headers and Other Files)</span></font></h3> </li> <li> <h3 style="margin-bottom:0mm;margin-bottom:0; margin-top:0"> <font face="Byington"><span style="font-weight: 400"> <a href="windowsservicesapis5_18.html">Linking the DLL File</a></span></font></h3> </li> <li> <h3 style="margin-bottom:0mm;margin-bottom:0; margin-top:0"> <font face="Byington"><span style="font-weight: 400">Adding the C++ Source File</span></font></h3> </li> <li> <h3 style="margin-bottom:0mm;margin-bottom:0; margin-top:0"> <font face="Byington"><span style="font-weight: 400"> <a href="windowsservicesapis5_19.html">Building the Project</a></span></font></h3> </li> <li> <h3 style="margin-bottom:0mm;margin-bottom:0; margin-top:0"> <font face="Byington"><span style="font-weight: 400">Adding New Project for Windows Service Configuration Application</span></font></h3> </li> <li> <h3 style="margin-bottom:0mm;margin-bottom:0; margin-top:0"> <font face="Byington"><span style="font-weight: 400"> <a href="windowsservicesapis5_20.html">Running and Testing the Windows Service Configuration Application</a></span></font></h3> </li> <li> <h3 style="margin-bottom:0mm;margin-bottom:0; margin-top:0"> <font face="Byington"><span style="font-weight: 400"> <a href="windowsservicesapis5_21.html">Adding New Project for Windows Service Control Application</a></span></font></h3> </li> <li> <h3 style="margin-bottom:0mm;margin-bottom:0; margin-top:0"> <font face="Byington"><span style="font-weight: 400"> <a href="windowsservicesapis5_22.html">Running and Testing the Windows Service Control Application</a></span></font></h3> </li> <li> <h3 style="margin-bottom:0mm;margin-bottom:0; margin-top:0"> <font face="Byington"><span style="font-weight: 400"> <a href="windowsservicesapis5_23.html">Another Program Example on How to Stop Windows Service</a></span></font></h3> </li> </ol> </td> </tr> <tr> <td colspan="2"> <p align="center"> <script type="text/javascript"><!-- google_ad_client = "pub-8089415323104206"; 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> </td> </tr> <tr> <td colspan="2"> <h3 align="center" style="margin-top: 0; margin-bottom: 0"> <font face="Byington"><span style="font-weight: 400">&lt; <a title="The Win32 Windows files programming: notes, tutorials, source codes, program examples and code samples" style="color: blue; text-decoration: underline" href="windowsfileapis4index.html"> Windows Files Programming</a> | <a title="The Win32 programming tutorial using Visual Studio, C and C++ languages" style="color: blue; text-decoration: underline" href="index.html"> Win32 Programming</a> | <a title="The Windows services programming in Vista, some changes" style="color: blue; text-decoration: underline" href="windowsservicesapis5.html"> Windows Services 1</a> &gt;</span></font></h3> </td> </tr> </table> </body> </html>