Skeleton service for Windows.
This project uses the ETW setup here.
An installer project svcsetup
is included.
svcsetup.exe install
Open Services
management console. A service with the name win32basesvc
should now be installed. If it’s not started, start it.
Open command prompt and execute the command
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).
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.
Stop the service from the Services
management control. Then uninstall it using svcsetup
.
svcsetup.exe uninstall