TService - A Windows NT Service Class

Version: 1.02
Written by: Christopher Kohlhoff (chris at tenermerx dot com)
Last updated: 22 February 1998

View Header File
Download Code
View Example 1
View Example 2

Overview

TService is a class that encapsulates most of the work needed to implement a Win32 service. At a minimum you have to override just 3 functions from the TService class, only one of which performs the "work" of the service. This simplicity is especially useful when porting UNIX daemons or other console applications to run as services. TService also provides functions for installing and removing the service, and includes a basic wrapper around the event log API (since this is normally the only way a service can communicate with the user).

Using TService

Examples

Changes

22 February 1998 - Added SetStop method to TService class and updated README.
27 January 1998 - Created.