windows-service-detector 0.1.0

A Rust crate that provides Windows Service runtime environment detection.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
cargo build --example service

$name = "testservice"

Get-Service -Name $name -ErrorAction SilentlyContinue | Remove-Service
New-Service -Name $name -BinaryPathName "$(Get-Location)\target\debug\examples\service.exe"
Start-Service -Name $name
Start-Sleep -Milliseconds 500
Stop-Service -Name $name
Remove-Service -Name $name

Get-Content C:\Windows\Temp\test.txt