pub struct HSC(/* private fields */);
Available on crate feature
kernel
only.Expand description
Handle to a
Service Control Manager.
Originally SC_HANDLE
.
Trait Implementations§
source§impl Handle for HSC
impl Handle for HSC
source§unsafe fn from_ptr(p: *mut c_void) -> Self
unsafe fn from_ptr(p: *mut c_void) -> Self
Creates a new handle object by wrapping a pointer. Read more
source§unsafe fn as_mut(&mut self) -> &mut *mut c_void
unsafe fn as_mut(&mut self) -> &mut *mut c_void
Returns a mutable reference to the underlying raw pointer. Read more
source§impl kernel_Hsc for HSC
impl kernel_Hsc for HSC
source§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 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.source§fn 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.source§fn OpenService(
&self,
service_name: &str,
desired_access: SERVICE
) -> SysResult<CloseServiceHandleSvcGuard>
fn OpenService( &self, service_name: &str, desired_access: SERVICE ) -> SysResult<CloseServiceHandleSvcGuard>
OpenService
function.impl Eq for HSC
impl Send for HSC
impl StructuralPartialEq for HSC
Auto Trait Implementations§
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more