且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何制作启动操作系统时启动的启动程序

更新时间:2023-12-05 23:03:04

听起来您想创建一个 Windows服务

在这里查看更多信息:

http://msdn.microsoft.com/en-us/library/zt39148a(v=VS.80).aspx

http://www.codeproject.com/Articles/14353/Creating-a-Basic-Windows-Service-in-C

http://www.c-sharpcorner.com/UploadFile/mahesh/window_service11262005045007AM/window_service.aspx

值得注意的是Windows不允许您创建用户无法终止的服务.这是由于安全性和性能.至少据我所知,唯一无法停止的服务类型是系统驱动程序.

It is worth noting that Windows will not let you create a service that the user cannot terminate. This is due to security and performance. The only types of services that cannot be stopped, at least to my knowledge, are system drivers.