projfs_sys/
lib.rs

1#![cfg(windows)]
2
3#[allow(non_camel_case_types, non_snake_case)]
4mod bindings {
5  #[cfg(not(feature = "bindgen"))]
6  include!("bindings.rs");
7
8  #[cfg(feature = "bindgen")]
9  include!(concat!(env!("OUT_DIR"), "/bindings.rs"));
10}
11pub use bindings::*;
12
13impl From<i64> for LARGE_INTEGER {
14  fn from(i: i64) -> Self {
15    Self { QuadPart: i }
16  }
17}
18
19impl Into<i64> for LARGE_INTEGER {
20  fn into(self) -> i64 {
21    unsafe { self.QuadPart }
22  }
23}