win_run
Run any executable as User, Admin or Local System from a Windows Service.
Usage
To use this crate, add win_run
as a dependency to your project's Cargo.toml
:
[]
= "0.2.1"
Important
In order for any of the functions offered by the library to work they must be run from a Windows Service!
Examples
Start a process as Admin on the Default desktop:
use ;
win
.args
.directory
.desktop
.elevation
.run?;
Start a process as Local System on the Secure desktop:
use ;
win
.args
.directory
.desktop
.elevation
.run?;
License
Licensed under MIT license.