Registry / other / windows-service

windows-service

JSON →
library0.8.1rscratesunverified

Provides facilities for management and implementation of Windows services.

# Cargo.toml [dependencies] windows-service = "0.8.1"
INSTALL
IMPORT
SIG · WINDOWS-SERVICE
W
windows-service
otherrustv0.8.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

ServiceManager
use windows_service::service_manager::ServiceManager;

Connect to the Windows Service Control Manager.

use windows_service::service_manager::{ServiceManager, ServiceManagerAccess}; fn main() -> windows_service::Result<()> { let manager = ServiceManager::new( None::<&str>, ServiceManagerAccess::CONNECT )?; println!("Connected to service manager"); Ok(()) }
Debug
Known issues
breakingThis crate is Windows-only; it will not compile on other platforms.
fix
Use conditional compilation with #[cfg(target_os = "windows")].
affects: *
Upgrade
Version history
0.8.1latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
10 hits · last 30 days
node
10
Resources
windows-service — cargo add windows-service · libregistry