mullvad / windows-service-rs

Windows services in Rust
Apache License 2.0
525 stars 85 forks source link

Implement new Service method to retrieve its SID type info #112

Closed PaulDance closed 11 months ago

PaulDance commented 11 months ago

Dear maintainers,

The Service struct supports modifying the underlying system resource's SID type information through the Service::set_config_service_sid_info method. However, there is currently no way to easily retrieve the value from the service manager, for example to check if a call to set_config_service_sid_info actually worked.

This PR therefore adds a new small Service::get_config_service_sid_info method that does just that. Also, some other minor bonus changes are included.

Cheers, Paul.


This change is Reviewable

PaulDance commented 11 months ago

Yes, indeed!

Thanks a bunch!