登录
首页 » 界面开发 » 用 C++ 创建简单的 Win32 服务程序(NTServCtrl) 详细信息 < NT服务 > 《用 C++ 创建简单的 Win32 服务程序》一...

用 C++ 创建简单的 Win32 服务程序(NTServCtrl) 详细信息 < NT服务 > 《用 C++ 创建简单的 Win32 服务程序》一...

于 2022-12-15 发布 文件大小:68.62 kB
0 141
下载积分: 2 下载次数: 1

代码说明:

用 C++ 创建简单的 Win32 服务程序(NTServCtrl) 详细信息 < NT服务 > 《用 C++ 创建简单的 Win32 服务程序》一文的例子代码。描述如何用 Visual C++ 创建 Windows NT 服务程序。创建该服务仅用到一个 C++ 类,这个类提供服务与操作系统之间一个简单的接口。使用这个类实现自己的服务非常简单,只要改写少数几个基类中的虚拟函数即可。文中有三个源代码参考例子:这是其中之一―― NTServCtrl:是一个独立的程序例子,用它可以监控某个 Win32 服务; 其余两个分别为: NTService:是一个简单的 Win32 服务,它就是用本文所描述的方法建立的; NTServCpl:是一个控制面版程序,用来控制 NTService 服务;-create simple Win32 services (NTServCtrl) detailed information lt; NT services gt; "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 servi

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • 微信淘宝客系统
    应用背景微信淘宝客系统,是微信公众平台下的淘宝客系统,可以根据发送的文字,推荐您喜欢的淘宝商品。淘宝客新的时代来临了!关键技术1.在conf文件夹中config.php文件中参考设置您的pid等相关信息 2.在tpl下的index文件夹中,修改phoneindex.html页面,打造你自己喜欢的页面
    2023-02-25 02:25:03下载
    积分:1
  • MFC创建进程、打进程、终止进程
    资源描述 创建进程、打开进程、终止进程 *两个函数 CreateProcess、openProcess、TerminateProcess *获得进程句柄 *获得进程号 *提升进程权限 *Microsoft Spy++ 操作平台:win10+vs2013 pro 操作步骤: 1、创建进程 PROCESS_INFORMATION pi;//进程信息结构 STARTUPINFO si;//启动信息结构 memset(&si, 0, sizeof(si)); si.cb = sizeof(si); si.wShowWindow = SW_SHOW; si.dwFlags = STARTF_USESHOWWINDOW; TCHAR szPath[] = TEXT("c:windowssystem32 otepad.exe E:c++MFCa.txt"); BOOL bRet = ::CreateProcess(NULL, szPath, NULL, FALSE, NULL, NULL, NULL, NULL, &si, &pi); int error = GetLastError(); if (bRet) { ::CloseHandle(pi.hThread); ::CloseHandle(pi.hProcess); AfxMessageBox(TEXT("创建进程成功")); } else { AfxMessageBox(TEXT("创建进程失败")); } 2、打开进程 DWORD pid; //若有指定窗口类和窗口名称则表示成功返回一个窗口的句柄 HWND hCalc = ::FindWindow(TEXT("Note
    2022-03-25 15:36:01下载
    积分:1
  • 基于labVIEW的温度监测设计
    本源代码是基于基于labVIEW的温度监测界面设计开发,将下位机采集到的温度实时通过串口实时显示在上位机的主机界面中,以便监控人员实时查看监理,系统调试需要搭架上位机通过串口RS232与下位机相连。
    2022-08-18 17:40:43下载
    积分:1
  • 这是一个对mfc各种控件详细介绍的源文件,很好很全,希望对大家有帮助...
    这是一个对mfc各种控件详细介绍的源文件,很好很全面,希望对大家有帮助-This is a mfc details of various control, the source files, a very good very comprehensive, we want to help
    2023-07-03 04:40:04下载
    积分:1
  • 一种应用VC爱好者对树形控件的理解的应用
    一种应用VC爱好者对树形控件的理解的应用-An application for tree lovers VC understanding of application controls
    2022-06-11 14:41:45下载
    积分:1
  • 用VC 编写的不需要DocView的带 隔阂按钮的分割窗口框架
    用VC 编写的不需要DocView的带 隔阂按钮的分割窗口界面框架-prepared by the VC not DocView estrangement with the buttons of a split window interface framework
    2022-04-29 22:27:28下载
    积分:1
  • 颜色拾取器增强版源代码,推荐下载
    颜色拾取器增强版源代码,推荐下载-Pick up the color enhanced version of the source code browser to download
    2022-03-04 09:06:14下载
    积分:1
  • 这几种类基本上都是容器,所以没有什么复杂的操作。 比较复杂的应该是Splitter了,因为时间有限,我只展示了她最基本的用法。写的仓卒,可能会有些错误,大家凑合...
    这几种类基本上都是容器,所以没有什么复杂的操作。 比较复杂的应该是Splitter了,因为时间有限,我只展示了她最基本的用法。写的仓卒,可能会有些错误,大家凑合着看看吧。-this category are basically containers, nothing complicated operation. The complex should be Splitter, because time is limited, I only display her most basic usage. Hastily written, there might be some mistakes, we make do with a look at it.
    2022-01-26 05:51:15下载
    积分:1
  • 我的一个记事本,如打、关闭、新建、剪切、复制、粘贴等基本功能已实现!...
    我的一个记事本,如打开、关闭、新建、剪切、复制、粘贴等基本功能已实现!-I am a notebook, such as open, closed, new, cut, copy, paste and other basic functions have been achieved!
    2022-07-17 04:50:53下载
    积分:1
  • 使用EVC";家庭理财助手";,小…
    使用EVC开发“家庭理财助手”,程序教小,使用了数据库操作,适用于EVC下数据库开发的学习-use EVC development "family financial management assistant", the small procedures, the use of the database operation, EVC under applicable to the study database development
    2022-06-15 05:42:05下载
    积分:1
  • 696518资源总数
  • 106161会员总数
  • 5今日下载