windows-bindgen
The windows-bindgen crate generates Rust bindings from Windows metadata.
Add the generator as a build dependency and the generated code's runtime dependency:
[]
= "0.100"
[]
= "0.100"
Generate bindings from build.rs:
let args = ;
bindgen;
And then use the bindings as follows:
unsafe