diff --git a/Cargo.toml b/Cargo.toml index c2181ed..4fe1637 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -20,7 +20,7 @@ bitflags = "2.3" widestring = "1" [target.'cfg(windows)'.dependencies.windows-sys] -version = "0.59.0" +version = "0.60" features = [ "Win32_Foundation", "Win32_Storage_FileSystem", diff --git a/examples/notify_service.rs b/examples/notify_service.rs index 7d380e1..e72fe87 100644 --- a/examples/notify_service.rs +++ b/examples/notify_service.rs @@ -1,11 +1,11 @@ -/// This is an example program that demonstrates how to send a user-defined control code to a given service. -/// -/// Run in command prompt as admin: -/// -/// `notify_service.exe SERVICE_NAME` -/// -/// Replace the `SERVICE_NAME` placeholder above with the name of the service that the program -/// should notify. +//! This is an example program that demonstrates how to send a user-defined control code to a given service. +//! +//! Run in command prompt as admin: +//! +//! `notify_service.exe SERVICE_NAME` +//! +//! Replace the `SERVICE_NAME` placeholder above with the name of the service that the program +//! should notify. #[cfg(windows)] fn main() -> windows_service::Result<()> { diff --git a/examples/pause_continue.rs b/examples/pause_continue.rs index 0057d84..637c3c5 100644 --- a/examples/pause_continue.rs +++ b/examples/pause_continue.rs @@ -1,12 +1,12 @@ -/// This is an example program that demonstrates how to pause and resume a given service. -/// -/// Run in command prompt as admin: -/// -/// `pause_continue.exe SERVICE_NAME` -/// -/// Replace the `SERVICE_NAME` placeholder above with the name of the service that the program -/// should manipulate. By default the program manipulates a WMI system service (Winmgmt) when the -/// first argument is omitted. +//! This is an example program that demonstrates how to pause and resume a given service. +//! +//! Run in command prompt as admin: +//! +//! `pause_continue.exe SERVICE_NAME` +//! +//! Replace the `SERVICE_NAME` placeholder above with the name of the service that the program +//! should manipulate. By default the program manipulates a WMI system service (Winmgmt) when the +//! first argument is omitted. #[cfg(windows)] fn main() -> windows_service::Result<()> {