登录
首页 » Windows开发 » windows服务管理类

windows服务管理类

于 2023-08-19 发布 文件大小:2.00 kB
0 105
下载积分: 2 下载次数: 1

代码说明:

压缩包包含两个文件ServiceManager.h、ServiceManager.cpp可以直接使用 CServiceManager提供接口如下: BOOL  IsActive();       // 查下服务是否开启 BOOL  StopService(SC_HANDLE hService);   // 关闭服务 BOOL  StartService();  // 开启服务 BOOL  ReStartService();  // 重启服务 BOOL  GetDependentServices(SC_HANDLE hscService, std::vector& vecServiceStatus); // 获取服务依赖服务

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

发表评论

0 个回复

  • 粘贴数据比复制更加复杂,因为你需要选择粘贴的格式。
    粘贴数据比复制更加复杂,因为你需要选择粘贴的格式。 ---- 1. 在你的视中,实现OnEditPaste来处理用户从编辑菜单选择粘贴命令的操作。 ---- 2. 在OnEditPaste函数中,建立一个COleDataObject对象并且访问它的AttachClipboard成员函数来将这个对象绑定到剪贴板。 ---- 3. 访问COleDataObject::IsDataAvailable函数来检查是否可以使用特殊的格式。当然,你也可以通过循环使用COleDataObject::BeginEnumFormats来寻找其它格式直到你找到了最适合的格式。 ---- 4. 粘贴数据。 -paste data replication more complicated than that because you need to choose paste format.---- 1. Depending on your, and realize OnEditPaste to users from the edit menu select paste ordered the operation.---- 2. In OnEditPaste function, the establishment of a visit COleDataObject object and its function AttachClipboard members will be bundled with the object to the clipboard.---- 3. Visit COleDataObject : : IsDataAvailable function can be used to check whether a special format. Of course, you can also cycle through the use of COleDataObject : : BeginEnumFormats to find other formats until you find the most suitable format.---- 4. Pasting data.
    2023-04-03 21:55:03下载
    积分:1
  • 该程序,实现了MemRepair类,可以对.exe文件的内存进行修改,也可以用于游戏修改内存。...
    该程序,实现了MemRepair类,可以对.exe文件的内存进行修改,也可以用于游戏修改内存。-the program, achieving MemRepair category, right. Exe files in memory changes can also be used to amend the memory game.
    2023-09-08 10:10:03下载
    积分:1
  • 一个模拟的COM的改进(一个win32的控制台程序)
    一个模拟的COM的改进(一个win32的控制台程序)-a simulated COM improvements (a win32 the Console)
    2022-07-09 23:37:13下载
    积分:1
  • winmain封装
    应用背景通过学习,自己动手写了一个window下的窗口函数,一大堆的窗口类的初始化和注册,让人很烦,看了各位大牛的一些参考代码后,自己就动手写一个一个封装,用c++面向对象的方法封装出了自己的winmain,在此分享给大家关键技术windows下的编程,窗口的初始化和定义,创建窗口,注册窗口,显示窗口,最后也是最总要的事件的循环机制,根据需要进行了一下封装。
    2022-03-11 10:23:19下载
    积分:1
  • 随机数的应用vb.
    随机数的应用vb.-Random Number of vb.
    2022-01-29 01:55:07下载
    积分:1
  • sing the Perceptron Learning Law design a classifier for theproblem:
    sing the Perceptron Learning Law design a classifier for theproblem:
    2022-06-27 20:44:45下载
    积分:1
  • calculator, a simple calculation functions, vc programming reflects the benefits...
    计算器,实现简单的计算功能,体现vc编程的好处!-calculator, a simple calculation functions, vc programming reflects the benefits!
    2022-07-04 15:45:25下载
    积分:1
  • this rar file for the developers of projects
    this rar file for the developers of projects-this is rar file for the developers of projects
    2022-03-19 21:51:11下载
    积分:1
  • 程序使用VC来扫描端口!!程序简单适用于VC的初学者
    程序使用VC来扫描端口!!程序简单适用于VC的初学者-VC uses to scan the port!! Procedures are simple and applies to VC beginner!!
    2022-05-07 11:40:17下载
    积分:1
  • 用.net编写的编译原理中所用到的词法分析器。是编译器的最基本功能!...
    用.net编写的编译原理中所用到的词法分析器。是编译器的最基本功能!-The accidence analysiser for compile principles using .net. It is the fondation of compiler
    2022-10-21 05:10:03下载
    积分:1
  • 696518资源总数
  • 105885会员总数
  • 31今日下载