Skip to content

Commit

Permalink
feat: ✨ Use better variable names and add better descriptions
Browse files Browse the repository at this point in the history
  • Loading branch information
AntwortEinesLebens committed Oct 20, 2024
1 parent e5a6b60 commit 5caee54
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/actions/drivers/byovd.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ use windows::{

#[derive(Debug, Parser)]
pub struct Byovd {
#[clap(required = true, help = "Internal Name of the service")]
internal: String,
#[clap(required = true, help = "Displayed Name of the service")]
display: String,
#[clap(required = true, help = "Full path to the driver eg: c:\\temp...")]
#[clap(required = true, help = "Name of the service")]
service_name: String,
#[clap(required = true, help = "Displayed name of the service")]
displayed_name: String,
#[clap(required = true, help = "Path to the driver")]
path: PathBuf,
}

Expand All @@ -38,8 +38,8 @@ impl Runnable for Byovd {

let service: Owned<SC_HANDLE> = Owned::new(CreateServiceW(
*service_manager,
&HSTRING::from(self.internal.as_str()),
&HSTRING::from(self.display.as_str()),
&HSTRING::from(self.service_name.as_str()),
&HSTRING::from(self.displayed_name.as_str()),
SC_MANAGER_ALL_ACCESS,
SERVICE_KERNEL_DRIVER,
SERVICE_AUTO_START,
Expand Down

0 comments on commit 5caee54

Please sign in to comment.