项目作者: flowerinthenight

项目描述 :
Skeleton service for Windows.
高级语言: C
项目地址: git://github.com/flowerinthenight/win32-base-service.git
创建时间: 2016-08-20T18:02:12Z
项目社区:https://github.com/flowerinthenight/win32-base-service

开源协议:MIT License

下载


Build status

Skeleton Win32 service

ETW trace

This project uses the ETW setup here.

To install the service

An installer project svcsetup is included.

  1. svcsetup.exe install

Open Services management console. A service with the name win32basesvc should now be installed. If it’s not started, start it.

Test service installation

Using sc.exe control

Open command prompt and execute the command

  1. sc.exe control win32basesvc 128

The control code will be logged using ETW.

Valid user custom control codes are from 128 - 255. More information here.aspx).

Using Win+Lock/Unlock

While the service is running, perform a system lock (Win + L) and an unlock. Lock and unlock control codes will be logged using ETW as well.

To uninstall the service

Stop the service from the Services management control. Then uninstall it using svcsetup.

  1. svcsetup.exe uninstall

License

The MIT License