-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9cbf4fd
commit 0bd50dd
Showing
4 changed files
with
131 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,4 +3,6 @@ obj/ | |
.vs/ | ||
Debug/* | ||
Release/* | ||
*.user | ||
*.user | ||
mldas_app/target/* | ||
mldas_app/.idea/* |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
[package] | ||
name = "mldas_app" | ||
version = "0.1.0" | ||
edition = "2021" | ||
|
||
[dependencies] | ||
windows-service = "0.7.0" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#[macro_use] | ||
extern crate windows_service; | ||
|
||
use std::ffi::OsString; | ||
use windows_service::{Result, service_dispatcher}; | ||
|
||
define_windows_service!(ffi_service_main, my_service_main); | ||
|
||
fn my_service_main(arguments: Vec<OsString>) { | ||
} | ||
|
||
fn main() -> Result<()> { | ||
service_dispatcher::start("mldas", ffi_service_main)?; | ||
Ok(()) | ||
} |