Skip to content

Commit

Permalink
Added: Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
jcapellman committed Jun 28, 2024
1 parent 9cbf4fd commit 0bd50dd
Showing 4 changed files with 131 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .gitignore
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/*
106 changes: 106 additions & 0 deletions mldas_app/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions mldas_app/Cargo.toml
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"
15 changes: 15 additions & 0 deletions mldas_app/src/main.rs
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(())
}

0 comments on commit 0bd50dd

Please sign in to comment.