Trait winsafe::prelude::kernel_Hsc
source · pub trait kernel_Hsc: Handle {
// Provided methods
fn CreateService(
&self,
service_name: &str,
display_name: Option<&str>,
desired_access: SERVICE,
service_type: SERVICE_TYPE,
start_type: SERVICE_START,
error_control: SERVICE_ERROR,
binary_path_name: Option<&str>,
load_order_group: Option<&[impl AsRef<str>]>,
tag_id: Option<&mut u32>,
dependencies: Option<&[impl AsRef<str>]>,
service_start_name: Option<&str>,
password: Option<&str>
) -> SysResult<CloseServiceHandleSvcGuard> { ... }
fn OpenSCManager(
machine_name: Option<&str>,
desired_access: SC_MANAGER
) -> SysResult<CloseServiceHandleGuard> { ... }
fn OpenService(
&self,
service_name: &str,
desired_access: SERVICE
) -> SysResult<CloseServiceHandleSvcGuard> { ... }
}
Available on crate feature
kernel
only.Expand description
This trait is enabled with the kernel
feature, and provides methods for
HSC
.
Prefer importing this trait through the prelude:
use winsafe::prelude::*;
Provided Methods§
sourcefn CreateService(
&self,
service_name: &str,
display_name: Option<&str>,
desired_access: SERVICE,
service_type: SERVICE_TYPE,
start_type: SERVICE_START,
error_control: SERVICE_ERROR,
binary_path_name: Option<&str>,
load_order_group: Option<&[impl AsRef<str>]>,
tag_id: Option<&mut u32>,
dependencies: Option<&[impl AsRef<str>]>,
service_start_name: Option<&str>,
password: Option<&str>
) -> SysResult<CloseServiceHandleSvcGuard>
fn CreateService( &self, service_name: &str, display_name: Option<&str>, desired_access: SERVICE, service_type: SERVICE_TYPE, start_type: SERVICE_START, error_control: SERVICE_ERROR, binary_path_name: Option<&str>, load_order_group: Option<&[impl AsRef<str>]>, tag_id: Option<&mut u32>, dependencies: Option<&[impl AsRef<str>]>, service_start_name: Option<&str>, password: Option<&str> ) -> SysResult<CloseServiceHandleSvcGuard>
CreateService
function.
sourcefn OpenSCManager(
machine_name: Option<&str>,
desired_access: SC_MANAGER
) -> SysResult<CloseServiceHandleGuard>
fn OpenSCManager( machine_name: Option<&str>, desired_access: SC_MANAGER ) -> SysResult<CloseServiceHandleGuard>
OpenSCManager
function.
sourcefn OpenService(
&self,
service_name: &str,
desired_access: SERVICE
) -> SysResult<CloseServiceHandleSvcGuard>
fn OpenService( &self, service_name: &str, desired_access: SERVICE ) -> SysResult<CloseServiceHandleSvcGuard>
OpenService
function.
Object Safety§
This trait is not object safe.