Skip to content

Commit

Permalink
Apply review's suggestion.
Browse files Browse the repository at this point in the history
  • Loading branch information
vsrs committed Nov 20, 2023
1 parent 2f67a22 commit fd05d90
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/notify_service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ fn main() -> windows_service::Result<()> {

let service = service_manager.open_service(
&service_name,
ServiceAccess::PAUSE_CONTINUE | ServiceAccess::NOTIFY,
ServiceAccess::PAUSE_CONTINUE | ServiceAccess::USER_DEFINED_CONTROL,
)?;

const NO_OP: UserEventCode = unsafe { UserEventCode::from_unchecked(128) };
Expand Down
2 changes: 1 addition & 1 deletion src/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ bitflags::bitflags! {
const CHANGE_CONFIG = Services::SERVICE_CHANGE_CONFIG;

/// Can use user-defined control codes
const NOTIFY = Services::SERVICE_USER_DEFINED_CONTROL;
const USER_DEFINED_CONTROL = Services::SERVICE_USER_DEFINED_CONTROL;
}
}

Expand Down

0 comments on commit fd05d90

Please sign in to comment.