Naughter Software Logo

CNTService LogoCNTService v2.09 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

v2.09 (28 March 2024)

v2.08 (23 September 2023)

v2.07 (10 May 2023)

v2.06 (5 February 2022)

v2.05 (15 January 2022)

v2.04 (9 January 2022)

30 July 2021

v2.03 (26 July 2020)

v2.02 (12 April 2020)

v2.01 (5 January 2020)

v2.0 (28 December 2019)

v1.99 (6 November 2019)

v1.98 (3 November 2019)

v1.97 (26 October 2019)

v1.96 (17 September 2019)

v1.95 (13 August 2019)

v1.94 (28 July 2019)

v1.93 (2 June 2019)

v1.92 (1 September 2018)

v1.91 (29 August 2018)

v1.90 (2 June 2018)

v1.89 (26 May 2018)

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)