How to: Create Windows Services (C++ Programming)
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here. ArchiveDisclaimer

How to: Create Windows Services (C++ Programming)

To create a Windows service, use the Windows Service template, which is available from the New Project dialog box.


The appearance of features in the IDE can depend on your active settings or edition, and might differ from those described in Help. To change your settings, choose Import and Export Settings on the Tools menu. For more information, see Visual Studio Settings.

To create a Windows Service

  1. On the File menu, click New, and then click Project.

    The New Project dialog box appears.

  2. In the Project Types pane, click the Visual C++ Projects node. In the Templates pane, click the Windows Service icon.

  3. In the Name box, enter a unique name for your application.


    You can also specify other project and solution settings from the New Project dialog box, but these settings are not required.

  4. Click OK.

© 2015 Microsoft