一个C++开发的服务驻留程序源代码

上传者: yuanmaqaz | 上传时间: 2019-12-21 22:13:53 | 文件大小: 4.2MB | 文件类型: zip
本文共涉及3个工程:beep、install、uninstall。 1) beep工程用于新服务的实现,工程中包含beep.cpp。编译并生成beep.exe,将其拷贝至c:\目录下,供安装程序调用。当安装完毕后,SCM也将调用beep.exe来执行该服务。 2) install工程用于新服务的安装,工程中包含install.cpp。编译并生成install.exe,将其拷贝至:c:\目录中,然后在Windows NT中单击“开始”,再单击“运行”,使用“运行”命令执行带3个参数的installl.exe程序。输入以下命令行进行安装:c:\install.exe BeepService "Beeper" c:\Beep.exe 。其中BeepService是供SCM内部使用的服务名,Beeper是显示在控制面板的服务程序中的名称,"c:\Beep.exe"是服务所在的可执行文件的路径。安装完毕后,你可以在控制面板的服务程序中看到新增的服务Beeper,点击右键选择“属性”,你就可以设置服务的启动类型、服务的状态和启动参数。 3) uninstall工程用于新服务的卸载,工程中包含uninstall.cpp。编译并生成uninstall.exe,将其拷贝至:c:\目录中,然后在Windows NT中单击“开始”,再单击“运行”,使用“运行”命令执行带1个参数的uninstall.exe程序。输入以下命令行进行卸载:c:\uninstall.exe BeepService。其中BeepService就是在安装服务是生成的供SCM内部使用的服务名。

文件下载

资源详情

[{"title":"( 41 个子文件 4.2MB ) 一个C++开发的服务驻留程序源代码","children":[{"title":"Service","children":[{"title":"install","children":[{"title":"install.cpp <span style='color:#111;'> 1.04KB </span>","children":null,"spread":false},{"title":"install.ncb <span style='color:#111;'> 41.00KB </span>","children":null,"spread":false},{"title":"install.opt <span style='color:#111;'> 47.50KB </span>","children":null,"spread":false},{"title":"install.plg <span style='color:#111;'> 751B </span>","children":null,"spread":false},{"title":"Debug","children":[{"title":"install.obj <span style='color:#111;'> 11.49KB </span>","children":null,"spread":false},{"title":"vc60.idb <span style='color:#111;'> 145.00KB </span>","children":null,"spread":false},{"title":"install.pdb <span style='color:#111;'> 393.00KB </span>","children":null,"spread":false},{"title":"install.exe <span style='color:#111;'> 148.09KB </span>","children":null,"spread":false},{"title":"install.ilk <span style='color:#111;'> 159.08KB </span>","children":null,"spread":false},{"title":"vc60.pdb <span style='color:#111;'> 84.00KB </span>","children":null,"spread":false},{"title":"install.pch <span style='color:#111;'> 3.44MB </span>","children":null,"spread":false}],"spread":true},{"title":"install.dsp <span style='color:#111;'> 4.20KB </span>","children":null,"spread":false},{"title":"install.dsw <span style='color:#111;'> 537B </span>","children":null,"spread":false}],"spread":true},{"title":"源码使用说明.doc <span style='color:#111;'> 19.50KB </span>","children":null,"spread":false},{"title":"beep","children":[{"title":"beep.dsw <span style='color:#111;'> 531B </span>","children":null,"spread":false},{"title":"yewu.cpp <span style='color:#111;'> 6.38KB </span>","children":null,"spread":false},{"title":"beep.plg <span style='color:#111;'> 734B </span>","children":null,"spread":false},{"title":"beep.opt <span style='color:#111;'> 47.50KB </span>","children":null,"spread":false},{"title":"beep.dsp <span style='color:#111;'> 4.16KB </span>","children":null,"spread":false},{"title":"beep.cpp <span style='color:#111;'> 5.69KB </span>","children":null,"spread":false},{"title":"Debug","children":[{"title":"beep.exe <span style='color:#111;'> 152.09KB </span>","children":null,"spread":false},{"title":"beep.ilk <span style='color:#111;'> 172.97KB </span>","children":null,"spread":false},{"title":"beep.pdb <span style='color:#111;'> 553.00KB </span>","children":null,"spread":false},{"title":"vc60.idb <span style='color:#111;'> 361.00KB </span>","children":null,"spread":false},{"title":"beep.pch <span style='color:#111;'> 3.46MB </span>","children":null,"spread":false},{"title":"beep.obj <span style='color:#111;'> 17.15KB </span>","children":null,"spread":false},{"title":"vc60.pdb <span style='color:#111;'> 268.00KB </span>","children":null,"spread":false}],"spread":true},{"title":"beep.ncb <span style='color:#111;'> 49.00KB </span>","children":null,"spread":false}],"spread":true},{"title":"uninstall","children":[{"title":"uninstall.dsw <span style='color:#111;'> 541B </span>","children":null,"spread":false},{"title":"uninstall.cpp <span style='color:#111;'> 922B </span>","children":null,"spread":false},{"title":"uninstall.ncb <span style='color:#111;'> 33.00KB </span>","children":null,"spread":false},{"title":"uninstall.opt <span style='color:#111;'> 47.50KB </span>","children":null,"spread":false},{"title":"uninstall.plg <span style='color:#111;'> 761B </span>","children":null,"spread":false},{"title":"Debug","children":[{"title":"uninstall.pch <span style='color:#111;'> 3.44MB </span>","children":null,"spread":false},{"title":"uninstall.obj <span style='color:#111;'> 11.70KB </span>","children":null,"spread":false},{"title":"uninstall.exe <span style='color:#111;'> 148.10KB </span>","children":null,"spread":false},{"title":"vc60.idb <span style='color:#111;'> 145.00KB </span>","children":null,"spread":false},{"title":"vc60.pdb <span style='color:#111;'> 84.00KB </span>","children":null,"spread":false},{"title":"uninstall.pdb <span style='color:#111;'> 313.00KB </span>","children":null,"spread":false},{"title":"uninstall.ilk <span style='color:#111;'> 161.69KB </span>","children":null,"spread":false}],"spread":true},{"title":"uninstall.dsp <span style='color:#111;'> 4.22KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}]

评论信息

  • wu_wenyang :
    很详细的代码, 很不错
    2018-01-10
  • mxllcy :
    不错,下载学习一下,文件中还是源码的使用说明,对下载者帮助很大。
    2017-11-20
  • zxzy2010 :
    代码简洁,注释很多,非常实用
    2017-07-06
  • next2008 :
    很详细的代码, 很不错
    2016-10-05
  • gocn :
    非常实用,代码也简洁!谢谢!
    2016-04-18

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明