Zero-overhead raw bindings (externs, structs, constants) for Windows APIs.
- 馃摝 crates.io
- 馃摉 docs.rs
- 馃殌 Getting started
- 馃З Samples
- 馃搧 Source
windows-sys contains raw Windows API declarations, structs, and constants without wrapper traits.
APIs are gated by Cargo features, such as combaseapi.
Use windows-sys when raw pointers and unsafe calls are appropriate. Use
windows for COM and WinRT wrappers, or
windows-bindgen to generate a smaller binding set.
The remainder of this page covers how the crate is built and maintained. It is for contributors and
is not needed to use windows-sys.
Generated by tool_package (driving windows-bindgen in --package mode) from
crates/tools/package/src/sys.txt. As with windows, src/lib.rs is hand-maintained and the
docs.rs page is an intentional stub.
Run cargo test -p windows-sys; see also the workspace test crates.