From 06cc1a1ba6ccff2611e780a2fcc516a4792c41db Mon Sep 17 00:00:00 2001 From: Kenny Kerr Date: Tue, 27 Sep 2022 08:48:10 -0500 Subject: [PATCH] Version 0.42.0 (#2069) --- crates/libs/bindgen/Cargo.toml | 6 ++--- crates/libs/implement/Cargo.toml | 2 +- crates/libs/interface/Cargo.toml | 2 +- crates/libs/metadata/Cargo.toml | 2 +- crates/libs/sys/Cargo.toml | 26 ++++++++++---------- crates/libs/tokens/Cargo.toml | 2 +- crates/libs/windows/Cargo.toml | 30 +++++++++++------------ crates/targets/aarch64_gnullvm/Cargo.toml | 2 +- crates/targets/aarch64_msvc/Cargo.toml | 2 +- crates/targets/i686_gnu/Cargo.toml | 2 +- crates/targets/i686_msvc/Cargo.toml | 2 +- crates/targets/x86_64_gnu/Cargo.toml | 2 +- crates/targets/x86_64_gnullvm/Cargo.toml | 2 +- crates/targets/x86_64_msvc/Cargo.toml | 2 +- crates/tools/sys/src/main.rs | 26 ++++++++++---------- crates/tools/windows/src/main.rs | 30 +++++++++++------------ docs/publish.cmd | 1 + docs/readme.md | 15 ++++++------ 18 files changed, 78 insertions(+), 78 deletions(-) diff --git a/crates/libs/bindgen/Cargo.toml b/crates/libs/bindgen/Cargo.toml index 4f39e5406e..fbeebd3b6c 100644 --- a/crates/libs/bindgen/Cargo.toml +++ b/crates/libs/bindgen/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "windows-bindgen" -version = "0.41.0" +version = "0.42.0" authors = ["Microsoft"] edition = "2018" license = "MIT OR Apache-2.0" @@ -12,5 +12,5 @@ default-target = "x86_64-pc-windows-msvc" targets = [] [dependencies] -tokens = { package = "windows-tokens", path = "../tokens", version = "0.41.0" } -metadata = { package = "windows-metadata", path = "../metadata", version = "0.41.0" } +tokens = { package = "windows-tokens", path = "../tokens", version = "0.42.0" } +metadata = { package = "windows-metadata", path = "../metadata", version = "0.42.0" } diff --git a/crates/libs/implement/Cargo.toml b/crates/libs/implement/Cargo.toml index c08689b630..c1f1e93a81 100644 --- a/crates/libs/implement/Cargo.toml +++ b/crates/libs/implement/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "windows-implement" -version = "0.41.0" +version = "0.42.0" authors = ["Microsoft"] edition = "2018" license = "MIT OR Apache-2.0" diff --git a/crates/libs/interface/Cargo.toml b/crates/libs/interface/Cargo.toml index 142e1901b3..abbe87e6aa 100644 --- a/crates/libs/interface/Cargo.toml +++ b/crates/libs/interface/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "windows-interface" -version = "0.41.0" +version = "0.42.0" edition = "2018" authors = ["Microsoft"] license = "MIT OR Apache-2.0" diff --git a/crates/libs/metadata/Cargo.toml b/crates/libs/metadata/Cargo.toml index c86dcec88d..14beadbb8b 100644 --- a/crates/libs/metadata/Cargo.toml +++ b/crates/libs/metadata/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "windows-metadata" -version = "0.41.0" +version = "0.42.0" authors = ["Microsoft"] edition = "2018" license = "MIT OR Apache-2.0" diff --git a/crates/libs/sys/Cargo.toml b/crates/libs/sys/Cargo.toml index d05ce66792..6a0934d357 100644 --- a/crates/libs/sys/Cargo.toml +++ b/crates/libs/sys/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "windows-sys" -version = "0.41.0" +version = "0.42.0" authors = ["Microsoft"] edition = "2018" license = "MIT OR Apache-2.0" @@ -16,40 +16,40 @@ targets = [] all-features = true [target.i686-pc-windows-msvc.dependencies] -windows_i686_msvc = { path = "../../targets/i686_msvc", version = "0.41.0" } +windows_i686_msvc = { path = "../../targets/i686_msvc", version = "0.42.0" } [target.i686-uwp-windows-msvc.dependencies] -windows_i686_msvc = { path = "../../targets/i686_msvc", version = "0.41.0" } +windows_i686_msvc = { path = "../../targets/i686_msvc", version = "0.42.0" } [target.x86_64-pc-windows-msvc.dependencies] -windows_x86_64_msvc = { path = "../../targets/x86_64_msvc", version = "0.41.0" } +windows_x86_64_msvc = { path = "../../targets/x86_64_msvc", version = "0.42.0" } [target.x86_64-uwp-windows-msvc.dependencies] -windows_x86_64_msvc = { path = "../../targets/x86_64_msvc", version = "0.41.0" } +windows_x86_64_msvc = { path = "../../targets/x86_64_msvc", version = "0.42.0" } [target.aarch64-pc-windows-msvc.dependencies] -windows_aarch64_msvc = { path = "../../targets/aarch64_msvc", version = "0.41.0" } +windows_aarch64_msvc = { path = "../../targets/aarch64_msvc", version = "0.42.0" } [target.aarch64-uwp-windows-msvc.dependencies] -windows_aarch64_msvc = { path = "../../targets/aarch64_msvc", version = "0.41.0" } +windows_aarch64_msvc = { path = "../../targets/aarch64_msvc", version = "0.42.0" } [target.aarch64-pc-windows-gnullvm.dependencies] -windows_aarch64_gnullvm = { path = "../../targets/aarch64_gnullvm", version = "0.41.0" } +windows_aarch64_gnullvm = { path = "../../targets/aarch64_gnullvm", version = "0.42.0" } [target.i686-pc-windows-gnu.dependencies] -windows_i686_gnu = { path = "../../targets/i686_gnu", version = "0.41.0" } +windows_i686_gnu = { path = "../../targets/i686_gnu", version = "0.42.0" } [target.i686-uwp-windows-gnu.dependencies] -windows_i686_gnu = { path = "../../targets/i686_gnu", version = "0.41.0" } +windows_i686_gnu = { path = "../../targets/i686_gnu", version = "0.42.0" } [target.x86_64-pc-windows-gnu.dependencies] -windows_x86_64_gnu = { path = "../../targets/x86_64_gnu", version = "0.41.0" } +windows_x86_64_gnu = { path = "../../targets/x86_64_gnu", version = "0.42.0" } [target.x86_64-uwp-windows-gnu.dependencies] -windows_x86_64_gnu = { path = "../../targets/x86_64_gnu", version = "0.41.0" } +windows_x86_64_gnu = { path = "../../targets/x86_64_gnu", version = "0.42.0" } [target.x86_64-pc-windows-gnullvm.dependencies] -windows_x86_64_gnullvm = { path = "../../targets/x86_64_gnullvm", version = "0.41.0" } +windows_x86_64_gnullvm = { path = "../../targets/x86_64_gnullvm", version = "0.42.0" } [features] default = [] diff --git a/crates/libs/tokens/Cargo.toml b/crates/libs/tokens/Cargo.toml index 489b4c944d..4e1f4b272b 100644 --- a/crates/libs/tokens/Cargo.toml +++ b/crates/libs/tokens/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "windows-tokens" -version = "0.41.0" +version = "0.42.0" authors = ["Microsoft"] edition = "2018" license = "MIT OR Apache-2.0" diff --git a/crates/libs/windows/Cargo.toml b/crates/libs/windows/Cargo.toml index c0e6682bd8..80eb654018 100644 --- a/crates/libs/windows/Cargo.toml +++ b/crates/libs/windows/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "windows" -version = "0.41.0" +version = "0.42.0" authors = ["Microsoft"] edition = "2018" license = "MIT OR Apache-2.0" @@ -16,44 +16,44 @@ default-target = "x86_64-pc-windows-msvc" targets = [] [target.i686-pc-windows-msvc.dependencies] -windows_i686_msvc = { path = "../../targets/i686_msvc", version = "0.41.0" } +windows_i686_msvc = { path = "../../targets/i686_msvc", version = "0.42.0" } [target.i686-uwp-windows-msvc.dependencies] -windows_i686_msvc = { path = "../../targets/i686_msvc", version = "0.41.0" } +windows_i686_msvc = { path = "../../targets/i686_msvc", version = "0.42.0" } [target.x86_64-pc-windows-msvc.dependencies] -windows_x86_64_msvc = { path = "../../targets/x86_64_msvc", version = "0.41.0" } +windows_x86_64_msvc = { path = "../../targets/x86_64_msvc", version = "0.42.0" } [target.x86_64-uwp-windows-msvc.dependencies] -windows_x86_64_msvc = { path = "../../targets/x86_64_msvc", version = "0.41.0" } +windows_x86_64_msvc = { path = "../../targets/x86_64_msvc", version = "0.42.0" } [target.aarch64-pc-windows-msvc.dependencies] -windows_aarch64_msvc = { path = "../../targets/aarch64_msvc", version = "0.41.0" } +windows_aarch64_msvc = { path = "../../targets/aarch64_msvc", version = "0.42.0" } [target.aarch64-uwp-windows-msvc.dependencies] -windows_aarch64_msvc = { path = "../../targets/aarch64_msvc", version = "0.41.0" } +windows_aarch64_msvc = { path = "../../targets/aarch64_msvc", version = "0.42.0" } [target.aarch64-pc-windows-gnullvm.dependencies] -windows_aarch64_gnullvm = { path = "../../targets/aarch64_gnullvm", version = "0.41.0" } +windows_aarch64_gnullvm = { path = "../../targets/aarch64_gnullvm", version = "0.42.0" } [target.i686-pc-windows-gnu.dependencies] -windows_i686_gnu = { path = "../../targets/i686_gnu", version = "0.41.0" } +windows_i686_gnu = { path = "../../targets/i686_gnu", version = "0.42.0" } [target.i686-uwp-windows-gnu.dependencies] -windows_i686_gnu = { path = "../../targets/i686_gnu", version = "0.41.0" } +windows_i686_gnu = { path = "../../targets/i686_gnu", version = "0.42.0" } [target.x86_64-pc-windows-gnu.dependencies] -windows_x86_64_gnu = { path = "../../targets/x86_64_gnu", version = "0.41.0" } +windows_x86_64_gnu = { path = "../../targets/x86_64_gnu", version = "0.42.0" } [target.x86_64-uwp-windows-gnu.dependencies] -windows_x86_64_gnu = { path = "../../targets/x86_64_gnu", version = "0.41.0" } +windows_x86_64_gnu = { path = "../../targets/x86_64_gnu", version = "0.42.0" } [target.x86_64-pc-windows-gnullvm.dependencies] -windows_x86_64_gnullvm = { path = "../../targets/x86_64_gnullvm", version = "0.41.0" } +windows_x86_64_gnullvm = { path = "../../targets/x86_64_gnullvm", version = "0.42.0" } [dependencies] -windows-implement = { path = "../implement", version = "0.41.0", optional = true } -windows-interface = { path = "../interface", version = "0.41.0", optional = true } +windows-implement = { path = "../implement", version = "0.42.0", optional = true } +windows-interface = { path = "../interface", version = "0.42.0", optional = true } [features] default = [] diff --git a/crates/targets/aarch64_gnullvm/Cargo.toml b/crates/targets/aarch64_gnullvm/Cargo.toml index 6227fedeb0..aef2ec777a 100644 --- a/crates/targets/aarch64_gnullvm/Cargo.toml +++ b/crates/targets/aarch64_gnullvm/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "windows_aarch64_gnullvm" -version = "0.41.0" +version = "0.42.0" authors = ["Microsoft"] edition = "2018" license = "MIT OR Apache-2.0" diff --git a/crates/targets/aarch64_msvc/Cargo.toml b/crates/targets/aarch64_msvc/Cargo.toml index c27ff676d8..51b56d547f 100644 --- a/crates/targets/aarch64_msvc/Cargo.toml +++ b/crates/targets/aarch64_msvc/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "windows_aarch64_msvc" -version = "0.41.0" +version = "0.42.0" authors = ["Microsoft"] edition = "2018" license = "MIT OR Apache-2.0" diff --git a/crates/targets/i686_gnu/Cargo.toml b/crates/targets/i686_gnu/Cargo.toml index a315085bed..f04c3576bc 100644 --- a/crates/targets/i686_gnu/Cargo.toml +++ b/crates/targets/i686_gnu/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "windows_i686_gnu" -version = "0.41.0" +version = "0.42.0" authors = ["Microsoft"] edition = "2018" license = "MIT OR Apache-2.0" diff --git a/crates/targets/i686_msvc/Cargo.toml b/crates/targets/i686_msvc/Cargo.toml index 7e4281aaca..9dfe7da573 100644 --- a/crates/targets/i686_msvc/Cargo.toml +++ b/crates/targets/i686_msvc/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "windows_i686_msvc" -version = "0.41.0" +version = "0.42.0" authors = ["Microsoft"] edition = "2018" license = "MIT OR Apache-2.0" diff --git a/crates/targets/x86_64_gnu/Cargo.toml b/crates/targets/x86_64_gnu/Cargo.toml index 6fc053954e..07d95b63f7 100644 --- a/crates/targets/x86_64_gnu/Cargo.toml +++ b/crates/targets/x86_64_gnu/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "windows_x86_64_gnu" -version = "0.41.0" +version = "0.42.0" authors = ["Microsoft"] edition = "2018" license = "MIT OR Apache-2.0" diff --git a/crates/targets/x86_64_gnullvm/Cargo.toml b/crates/targets/x86_64_gnullvm/Cargo.toml index 5bd6a0ee3a..ef36e75787 100644 --- a/crates/targets/x86_64_gnullvm/Cargo.toml +++ b/crates/targets/x86_64_gnullvm/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "windows_x86_64_gnullvm" -version = "0.41.0" +version = "0.42.0" authors = ["Microsoft"] edition = "2018" license = "MIT OR Apache-2.0" diff --git a/crates/targets/x86_64_msvc/Cargo.toml b/crates/targets/x86_64_msvc/Cargo.toml index 18d4d8e988..b658ac037a 100644 --- a/crates/targets/x86_64_msvc/Cargo.toml +++ b/crates/targets/x86_64_msvc/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "windows_x86_64_msvc" -version = "0.41.0" +version = "0.42.0" authors = ["Microsoft"] edition = "2018" license = "MIT OR Apache-2.0" diff --git a/crates/tools/sys/src/main.rs b/crates/tools/sys/src/main.rs index cc8092d51e..7eec078f44 100644 --- a/crates/tools/sys/src/main.rs +++ b/crates/tools/sys/src/main.rs @@ -41,7 +41,7 @@ fn main() { r#" [package] name = "windows-sys" -version = "0.41.0" +version = "0.42.0" authors = ["Microsoft"] edition = "2018" license = "MIT OR Apache-2.0" @@ -56,40 +56,40 @@ targets = [] all-features = true [target.i686-pc-windows-msvc.dependencies] -windows_i686_msvc = { path = "../../targets/i686_msvc", version = "0.41.0" } +windows_i686_msvc = { path = "../../targets/i686_msvc", version = "0.42.0" } [target.i686-uwp-windows-msvc.dependencies] -windows_i686_msvc = { path = "../../targets/i686_msvc", version = "0.41.0" } +windows_i686_msvc = { path = "../../targets/i686_msvc", version = "0.42.0" } [target.x86_64-pc-windows-msvc.dependencies] -windows_x86_64_msvc = { path = "../../targets/x86_64_msvc", version = "0.41.0" } +windows_x86_64_msvc = { path = "../../targets/x86_64_msvc", version = "0.42.0" } [target.x86_64-uwp-windows-msvc.dependencies] -windows_x86_64_msvc = { path = "../../targets/x86_64_msvc", version = "0.41.0" } +windows_x86_64_msvc = { path = "../../targets/x86_64_msvc", version = "0.42.0" } [target.aarch64-pc-windows-msvc.dependencies] -windows_aarch64_msvc = { path = "../../targets/aarch64_msvc", version = "0.41.0" } +windows_aarch64_msvc = { path = "../../targets/aarch64_msvc", version = "0.42.0" } [target.aarch64-uwp-windows-msvc.dependencies] -windows_aarch64_msvc = { path = "../../targets/aarch64_msvc", version = "0.41.0" } +windows_aarch64_msvc = { path = "../../targets/aarch64_msvc", version = "0.42.0" } [target.aarch64-pc-windows-gnullvm.dependencies] -windows_aarch64_gnullvm = { path = "../../targets/aarch64_gnullvm", version = "0.41.0" } +windows_aarch64_gnullvm = { path = "../../targets/aarch64_gnullvm", version = "0.42.0" } [target.i686-pc-windows-gnu.dependencies] -windows_i686_gnu = { path = "../../targets/i686_gnu", version = "0.41.0" } +windows_i686_gnu = { path = "../../targets/i686_gnu", version = "0.42.0" } [target.i686-uwp-windows-gnu.dependencies] -windows_i686_gnu = { path = "../../targets/i686_gnu", version = "0.41.0" } +windows_i686_gnu = { path = "../../targets/i686_gnu", version = "0.42.0" } [target.x86_64-pc-windows-gnu.dependencies] -windows_x86_64_gnu = { path = "../../targets/x86_64_gnu", version = "0.41.0" } +windows_x86_64_gnu = { path = "../../targets/x86_64_gnu", version = "0.42.0" } [target.x86_64-uwp-windows-gnu.dependencies] -windows_x86_64_gnu = { path = "../../targets/x86_64_gnu", version = "0.41.0" } +windows_x86_64_gnu = { path = "../../targets/x86_64_gnu", version = "0.42.0" } [target.x86_64-pc-windows-gnullvm.dependencies] -windows_x86_64_gnullvm = { path = "../../targets/x86_64_gnullvm", version = "0.41.0" } +windows_x86_64_gnullvm = { path = "../../targets/x86_64_gnullvm", version = "0.42.0" } [features] default = [] diff --git a/crates/tools/windows/src/main.rs b/crates/tools/windows/src/main.rs index e5f56637ad..087ef1ca7f 100644 --- a/crates/tools/windows/src/main.rs +++ b/crates/tools/windows/src/main.rs @@ -39,7 +39,7 @@ fn main() { r#" [package] name = "windows" -version = "0.41.0" +version = "0.42.0" authors = ["Microsoft"] edition = "2018" license = "MIT OR Apache-2.0" @@ -54,44 +54,44 @@ default-target = "x86_64-pc-windows-msvc" targets = [] [target.i686-pc-windows-msvc.dependencies] -windows_i686_msvc = { path = "../../targets/i686_msvc", version = "0.41.0" } +windows_i686_msvc = { path = "../../targets/i686_msvc", version = "0.42.0" } [target.i686-uwp-windows-msvc.dependencies] -windows_i686_msvc = { path = "../../targets/i686_msvc", version = "0.41.0" } +windows_i686_msvc = { path = "../../targets/i686_msvc", version = "0.42.0" } [target.x86_64-pc-windows-msvc.dependencies] -windows_x86_64_msvc = { path = "../../targets/x86_64_msvc", version = "0.41.0" } +windows_x86_64_msvc = { path = "../../targets/x86_64_msvc", version = "0.42.0" } [target.x86_64-uwp-windows-msvc.dependencies] -windows_x86_64_msvc = { path = "../../targets/x86_64_msvc", version = "0.41.0" } +windows_x86_64_msvc = { path = "../../targets/x86_64_msvc", version = "0.42.0" } [target.aarch64-pc-windows-msvc.dependencies] -windows_aarch64_msvc = { path = "../../targets/aarch64_msvc", version = "0.41.0" } +windows_aarch64_msvc = { path = "../../targets/aarch64_msvc", version = "0.42.0" } [target.aarch64-uwp-windows-msvc.dependencies] -windows_aarch64_msvc = { path = "../../targets/aarch64_msvc", version = "0.41.0" } +windows_aarch64_msvc = { path = "../../targets/aarch64_msvc", version = "0.42.0" } [target.aarch64-pc-windows-gnullvm.dependencies] -windows_aarch64_gnullvm = { path = "../../targets/aarch64_gnullvm", version = "0.41.0" } +windows_aarch64_gnullvm = { path = "../../targets/aarch64_gnullvm", version = "0.42.0" } [target.i686-pc-windows-gnu.dependencies] -windows_i686_gnu = { path = "../../targets/i686_gnu", version = "0.41.0" } +windows_i686_gnu = { path = "../../targets/i686_gnu", version = "0.42.0" } [target.i686-uwp-windows-gnu.dependencies] -windows_i686_gnu = { path = "../../targets/i686_gnu", version = "0.41.0" } +windows_i686_gnu = { path = "../../targets/i686_gnu", version = "0.42.0" } [target.x86_64-pc-windows-gnu.dependencies] -windows_x86_64_gnu = { path = "../../targets/x86_64_gnu", version = "0.41.0" } +windows_x86_64_gnu = { path = "../../targets/x86_64_gnu", version = "0.42.0" } [target.x86_64-uwp-windows-gnu.dependencies] -windows_x86_64_gnu = { path = "../../targets/x86_64_gnu", version = "0.41.0" } +windows_x86_64_gnu = { path = "../../targets/x86_64_gnu", version = "0.42.0" } [target.x86_64-pc-windows-gnullvm.dependencies] -windows_x86_64_gnullvm = { path = "../../targets/x86_64_gnullvm", version = "0.41.0" } +windows_x86_64_gnullvm = { path = "../../targets/x86_64_gnullvm", version = "0.42.0" } [dependencies] -windows-implement = { path = "../implement", version = "0.41.0", optional = true } -windows-interface = { path = "../interface", version = "0.41.0", optional = true } +windows-implement = { path = "../implement", version = "0.42.0", optional = true } +windows-interface = { path = "../interface", version = "0.42.0", optional = true } [features] default = [] diff --git a/docs/publish.cmd b/docs/publish.cmd index 82e5cea883..a33874a63c 100644 --- a/docs/publish.cmd +++ b/docs/publish.cmd @@ -11,3 +11,4 @@ cargo publish -p windows-interface cargo publish -p windows-implement cargo publish -p windows-bindgen cargo publish -p windows +cargo publish -p windows-sys diff --git a/docs/readme.md b/docs/readme.md index 97de776a53..f4d62243d9 100644 --- a/docs/readme.md +++ b/docs/readme.md @@ -1,8 +1,6 @@ -[![crates.io](https://img.shields.io/crates/v/windows.svg)](https://crates.io/crates/windows) [![build](https://github.com/microsoft/windows-rs/workflows/build/badge.svg?event=push)](https://github.com/microsoft/windows-rs/actions) - ## Rust for Windows -The `windows` crate lets you call any Windows API past, present, and future using code generated on the fly directly from the [metadata describing the API](https://github.com/microsoft/win32metadata) and right into your Rust package where you can call them as if they were just another Rust module. The Rust language projection follows in the tradition established by [C++/WinRT](https://github.com/microsoft/cppwinrt) of building language projections for Windows using standard languages and compilers, providing a natural and idiomatic way for Rust developers to call Windows APIs. +The `windows` and `windows-sys` crates let you call any Windows API past, present, and future using code generated on the fly directly from the [metadata describing the API](https://github.com/microsoft/windows-rs/tree/master/crates/libs/metadata/default) and right into your Rust package where you can call them as if they were just another Rust module. The Rust language projection follows in the tradition established by [C++/WinRT](https://github.com/microsoft/cppwinrt) of building language projections for Windows using standard languages and compilers, providing a natural and idiomatic way for Rust developers to call Windows APIs. * Crate documentation * [windows](https://microsoft.github.io/windows-docs-rs/) @@ -15,7 +13,7 @@ Start by adding the following to your Cargo.toml file: ```toml [dependencies.windows] -version = "0.41.0" +version = "0.42.0" features = [ "Data_Xml_Dom", "Win32_Foundation", @@ -63,8 +61,8 @@ Start by adding the following to your Cargo.toml file: ```toml [dependencies.windows-sys] -version = "0.36.1" -features = [ +version = "0.42.0" +6features = [ "Win32_Foundation", "Win32_Security", "Win32_System_Threading", @@ -76,7 +74,7 @@ Make use of any Windows APIs as needed. ```rust use windows_sys::{ - Win32::Foundation::*, Win32::System::Threading::*, Win32::UI::WindowsAndMessaging::*, + core::*, Win32::Foundation::*, Win32::System::Threading::*, Win32::UI::WindowsAndMessaging::*, }; fn main() { @@ -86,7 +84,8 @@ fn main() { WaitForSingleObject(event, 0); CloseHandle(event); - MessageBoxA(0, b"Text\0".as_ptr(), b"Caption\0".as_ptr(), MB_OK); + MessageBoxA(0, s!("Ansi"), s!("Caption"), MB_OK); + MessageBoxW(0, w!("Wide"), w!("Caption"), MB_OK); } } ```