- 8
- 0
- 约9.24千字
- 约 9页
- 2017-10-07 发布于河南
- 举报
用c语言编写windows服务器(Using C language to write Windows Server)
用c语言编写windows服务器(Using C language to write Windows Server)
Some time ago I wrote an article written by the form of service to achieve the purpose of some inspectionprograms articles, as to how to write service I have introduced in the windows today, lets take a look at how to write the service program.
Windows services are designed for applications that need to run in the background, and for tasks that do not interact with the user. In order to learn the basics of this console application, C (not C++) is the best choice. This article will establish and implement a simple service program that is designed to query the amount of physical memory available in the system, and then write the results to a text file. Finally, you can write your own Windows service using what youve learned.
When I was writing my first NT service, I went to MSDN to look for examples. There I found an article written by Nigel Thompson: Creating a Simple Win32 Service in C++. This article is accompanied by a C++ example. Although this article explains the service development process very well, I still feel the lack of important information I need. I want to understand what framework, what functions to call, and when to call, but C++ doesnt make me so relaxed about it. The object-oriented approach is convenient, but it is not conducive to learning the basic knowledge of the service program because it encapsulates the underlying Win32 function calls. Thats why I think C is better suited for writing primary services or services for simple background tasks. After you have a thorough understanding of the service process, you can write it with C++. When I left my former job and had to transfer my knowledge to another person, it was very easy to explain the NT service by using the examples I wrote with C.
A service is a console program that runs in the background and implements tasks that do not require user interaction. The Windows NT/2000/XP operating system provides specialized support for service p
您可能关注的文档
- 浅谈施工单位工程造价管理及成本控制(Discussion on construction cost management and cost control of construction unit).doc
- 浅谈服装工厂的技术经济发展(Technical and economic development of garment factories).doc
- 浅谈每个人的多面性格(On each person's multifaceted personality).doc
- 浅谈排球运动中一攻与防反的地位与作用(The status and role of anti attack and prevention of Volleyball).doc
- 浅谈演讲的入题、破题、点题公众演讲(The speech into the title, essay topic, public speaking).doc
- 浅谈物理实验教学中的演示实验和分组实验_初中物理在线_论文中心(In physics experimental teaching demonstration experiment and the group experiment in junior middle school physics _ online _ paper center).doc
- 浅谈服刑人员投改初期的特征及改造对策(Characteristics and Reform Countermeasures of prisoners in the early stage of reform).doc
- 浅谈施工企业安全生产投入与经济效益的关系(Discussion on the relationship between safety production input and economic benefit of construction enterprises).doc
- 浅谈秘书应具备的能力(On the ability of a secretary).doc
- 浅谈继续教育营销模式创新(Discussion on innovation of marketing mode of Continuing Education).doc
- 2026年及未来5年内中国液体氩气行业投资前景及策略咨询研究报告.docx
- 2026年及未来5年内中国黄铜合页行业投资前景及策略咨询研究报告.docx
- 2026年及未来5年内中国竹工艺家具行业投资前景及策略咨询研究报告.docx
- 2025年中国微机数显自动分析仪市场调查研究报告.docx
- 2026年及未来5年内中国微尘白色粉笔行业投资前景及策略咨询研究报告.docx
- 2025年中国微电脑型压胶机市场调查研究报告.docx
- 2026年及未来5年内中国数字化等功游泳训练测试系统行业投资前景及策略咨询研究报告.docx
- 2025年中国圆形花瓶市场调查研究报告.docx
- 2026年及未来5年内中国植物纤维静淀过滤器行业投资前景及策略咨询研究报告.docx
- 2025年中国超音波手套机市场调查研究报告.docx
原创力文档

文档评论(0)