windows-service-rs
windows-service-rs copied to clipboard
Windows services in Rust
I don't know if we should provide all combination flags like `GENERIC_READ` listed in https://learn.microsoft.com/en-us/windows/win32/services/service-security-and-access-rights#access-rights-for-a-service, but at least we need to have `READ_CONTROL`, `WRITE_DAC`, `WRITE_OWNER` for modifying security descriptors, this...
Need this for a call to change a DACL where admins only have WRITE_DAC access. - - - This change is [](https://reviewable.io/reviews/mullvad/windows-service-rs/121)
I am trying to create a service with logging, but logging is working correctly when we run the exe file. But not logging any thing when service is running. Also...
i'm attempting to use this library to make a long-running gRPC service. I'm really struggling to get this working. I've got a minimal reproduction here - https://github.com/danieleades/grpc-service i'm struggling to...
i'm finding the development loop pretty challenging while creating a service. That's probably on me for the most part- i'm very new to this framework. Here's what i'm doing now-...
I make custom Windows Service from example, register by "sc" cmd, run it. Then when trying to stop this, Windows raise error message "failed to stop service ... this service...
I write a quick test application to learn about your crate (I've never used it before). It worked great for a local computer. However, when using a remote computer it...
All of the examples are sami-dependent and it is impossible to know how to combine them. Please make one working example that you can just copy and run.
According to [the Microsoft documentation regarding valid state transitions in services](https://learn.microsoft.com/en-us/windows/win32/services/service-status-transitions), the transition from `RUNNING` to `STOP_PENDING` and the transition from `STOP_PENDING` to `STOPPED` can both be initiated by the...
`ServiceConfig::executable_path` (a `PathBuf`) is just a copy of `lpBinaryPathName` from `QUERY_SERVICE_CONFIGW`. It would make sense to [parse](https://docs.microsoft.com/en-us/windows/win32/api/shellapi/nf-shellapi-commandlinetoargvw) `lpBinaryPathName` first, as it may contain arguments.