everything_sdk_sys/lib.rs
1//! Native Rust bindings to the Everything-SDK
2#![cfg(windows)]
3
4// use manual bindings instead of automatically generated by rust-bindgen
5mod bindings;
6pub use bindings::*;
7
8#[cfg(not(feature = "vendored"))]
9#[allow(non_snake_case)]
10mod dummy_msi {
11 use bindings::UINT;
12
13 pub unsafe fn Everything_MSIExitAndStopService(_msihandle: *const std::ffi::c_void) -> UINT {
14 1 // dummy function always fails
15 }
16
17 pub unsafe fn Everything_MSIStartService(_msihandle: *const std::ffi::c_void) -> UINT {
18 1 // dummy function always fails
19 }
20}
21
22#[cfg(not(feature = "vendored"))]
23pub use dummy_msi::*;