资 源 简 介
《用 C++ 创建简单的 Win32 服务程序》一文的例子代码。描述如何用 Visual C++ 创建 Windows NT 服务程序。创建该服务仅用到一个 C++ 类,这个类提供服务与操作系统之间一个简单的接口。使用这个类实现自己的服务非常简单,只要改写少数几个基类中的虚拟函数即可。文中有三个源代码参考例子:这是其中之一―― NTServCtrl:是一个独立的程序例子,用它可以监控某个 Win32 服务;-"C create simple Win32 service procedures," a text of the code examples. Describe how to use Visual C create Windows NT service procedures. Creation of the service only to a category C, the category of services provided between an operating system with a simple interface. Use this category to realize their services are very simple, as long as rewriting a few of the base class function can be virtual. The text has three reference source code example : This is one of them-- NTServCtrl : an independent process example, it can monitor with a Win32 services;