Releases: mullvad/windows-service-rs
Releases · mullvad/windows-service-rs
v0.8.1
v0.3.1
v0.3.0
Added
- Add support for configuring the service SID info.
- Add support for changing mandatory configuration settings on service.
- Add support for service failure actions. (See:
ServiceFailureActions,
Service::update_failure_actions,Service::get_failure_actions,
Service::set_failure_actions_on_non_crash_failures,
Service::get_failure_actions_on_non_crash_failures) - Add support to pause and continue services. (See:
Service::pauseandService::resume) - Use
QueryServiceStatusExwhen querying service status. Allows getting the process ID of a
running service
Changed
- Bumped the MSRV to 1.34, because of err-derive upgrade which depend on quote, to use
Duration::as_millis()and theTryFromtrait. - Breaking:
ServiceManager::create_service()now expects a borrowedServiceInfoargument.
v0.2.0
Added
- A
ServiceExitCode::NO_ERRORconstant for easy access to the success value. - Add
Service::startfor starting services programmatically. - Add
Service::query_configfor getting the config of the service. - Add
ServiceInfo::dependenciesfor specifying service dependencies.
Changed
- Changed
service_control_handler::registerto accept anFnMutrather than just anFnfor the
event_handlerclosure. - Upgrade to Rust 2018. This raises the minimum required Rust version to 1.31.0.
- Replace error-chain error library with err-derive. So all error types are changed.
- Change
ServiceTypeimplementation to use thebitflags!macro.
Fixed
- Fix invalid pointer manipulations in service creation routine in ServiceManager.
- Fix memory leak in
service_control_handler::registerthat did not releaseevent_handlerin
the case of an error. - Treat FFI return code 0 as error, instead of treating 1 as success.