Naughter Software Logo

CNTService LogoCNTService v1.88 A C++ class framework for developing NT services

Classes includes:

CNTServiceCommandLineInfo

The CNTServiceCommandLineInfo class aids in parsing the command line at application start-up. It is based almost exactly upon the way that the CCommandLineInfo class in MFC works.

CNTEventLogSource

CNTEventLogSource provides a wrapper class for writing events to the NT event log. You could consider this as the server side to the Event log APIs.

CNTService

CNTService is the class which provides a C++ framework upon which you can develop your own C++ based NT services. The class makes heavy use of virtual functions which your service class should override.

CNTScmService

CNTScmService is a class which encapsulates a service as returned from the Service Control Manager, in effect a SC_HANDLE. An instance of a CNTScmService is usually acquired by a call to CNTServiceControlManager::Open. Once retrieved the class allows you to control the service, change its configuration and query a service's state.

CNTServiceControlManager

CNTServiceControlManager is a class which encapsulates a connection to a Service Control Manager (SCM) on some machine. Functionality provided includes enumeration, database locking and service access.

CEventLogRecord

CEventLogRecord is a C++ wrapper class for the EVENTLOGRECORD structure as provided in the SDK. For anyone who has had to use this class using raw SDK calls, you will appreciate the easier access which the class provides.

CNTEventLog

CNTEventLog is a C++ wrapper class for accessing the NT Event Logs. You can consider this as the client side to the Event Log APIs.

 

Features

 

The enclosed zip file contains the classes source code and a sample NT service which beeps the speaker! (at least if you are running a Pre Vista version of Windows. The reason you will hear nothing on Vista or later is because of Session 0 service isolation. Anyway the sample service is just that and your service will hopefully do something more interesting!).

 

Copyright

 

Updates

v1.88 (16 September 2017)

v1.87 (27 April 2017)

v1.86 (16 April 2017)

v1.85 (9 April 2017)

v1.84 (15 November 2016)

v1.83 (1 June 2016)

v1.82 (19 April 2016)

v1.81 (18 December 2015)

v1.80 (1 January 2014)

v1.79 (10 November 2012)

v1.78 (3 September 2010)

v1.77 (1 August 2010)

v1.76 (1 June 2008)

v1.75 (12 January 2008)

v1.74 (19 November 2007)

v1.73 (22 March 2007)

v1.72 (2 February 2007)

20 November 2006

v1.71 (21 September 2006)

v1.70 (1 August 2006)

v1.69 (27 July 2006)

13 July 2006

v1.68 (2 July 2006)

v1.67 (25 June 2006)

v1.66 (24 June 2006)

v1.65 (13 June 2006)

v1.64 (9 June 2006)

v1.63 (7 June 2006)

v1.62 (3 June 2006)

v1.61 (31 May 2006)

v1.60 (18 May 2006)

v1.59 (12 May 2006)

v1.58 (27 April 2006)

v1.57 (13 January 2006)

v1.56 (11 January 2006)

v1.55 (14 August 2005)

v1.54 (31 July 2005)

v1.53 (21 April 2005)

v1.52 (26 March 2005)

v1.51 (11 February 2005)

v1.50 (11 November 2004)

v1.49 (18 October 2004)

v1.48 (15 October 2004)

v1.47 (24 June 2004)

v1.46 (20 June 2004)

v1.45 (20 June 2004)

v1.44 (5 May 2004)

v1.43 (12 April 2004)

v1.42 (9 April 2004)

v1.41 (18 March 2004)

21 February 2004

v1.40 (22 January 2004)

13 January 2004

v1.39 (26 November 2003)

v1.38 (23 November 2003)

v1.37 (19 November 2003)

v1.36 (14 November 2003)

v1.35 (12 November 2003)

v1.34 (5 October 2003)

v1.33 (4 October 2003)

v1.32 (8 September 2003)

v1.31 (15 August 2003)

v1.30 (3 August 2003)

v1.29 (22 May 2003)

v1.28 (17 May 2003)

v1.27 (8 May 2003)

v1.26 (12 March 2003)

v1.25 (20 November 2002)

v1.24 (20 September 2002)

v1.23 (28 August 2002)

v1.22 (27 August 2002)

v1.21 (27 November 2001)

V1.20 (9 August 2001)

V1.19 (18 July 2001)

V1.18 (15 July 2001)

V1.17 (27 May 2001)

V1.16 (16 May 2001)

V1.15 (8 January 2001)

V1.14 (21 December 2000)

V1.13 (28 July 2000)

V1.12 (21 June 2000)

V1.11 (19 June 2000)

V1.1 (21 May 2000)

V1.07 (10 April 2000)

V1.06 (24 January 2000)

V1.05 (10 October 1999)

V1.04 (5 October 1999)

V1.03 (3 October 1999)

V1.02 (5 September 1999)

V1.01 (17 May 1999)

24 August 1998

V1.0 (17 July 1998)