Windows Service编程

Abstract

  本文主要介绍 Windows service 的编程模式和 SCM 的相关功能。

Content

基础知识

What_is_Windows_Service

关于 Windows Service 的定义,可以参考 Wiki: Windows Service ,总结如下:

  1. Windows Services 类似 Unix Daemon (守护进程),它是一种常驻内存的后台进程
  2. Windows Services 运行在专用账户上下文中,可以先于用户登录前运行。
  3. Windows Services 分别运行在三类用户账户:System, Network and Local 。它们的权限各不相同。
  4. Windows Services 需要符合 SCM 的接口规范和协议。
  5. SCM 负责管理 Windows Services,包括:查看状态、启动、停止等。

参考 MSDN - About Services 可知,Windows Services 包括以下几个主要知识点:

  • Service Control Manager
  • Service program
  • Service configuration program
  • Service control program
SCM

SCM - Service Control Manager,是一个特殊的系统进程,负责管理 Windows Services 。

The SCM executable, Services.exe, runs as a Windows console program and is launched by the Wininit process early during

  • 2
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值