winrt-rust icon indicating copy to clipboard operation
winrt-rust copied to clipboard

Use and (eventually) make Windows Runtime APIs with Rust

Results 33 winrt-rust issues
Sort by recently updated
recently updated
newest added

I get a panic at runtime(!) in https://github.com/GuillaumeGomez/sysinfo/pull/287 because we can't check beforehand if we can use an interface or not. I think this is not great and added this...

I saw the comment in your `lib.rs` file so here you go! PS: to enforce this even more, I'd recommend you to run `cargo test` in your appveyor CI (didn't...

Hello. I stumbled across [a project](https://github.com/microsoft/com-rs.git) to make it possible to consume and create COM libraries in Rust. Article on the project [here](https://msrc-blog.microsoft.com/2019/10/08/designing-a-com-library-for-rust/).

This would allow us to run code generation as part of build.rs (also see #21), and get rid of the C#/.NET dependency. Blocked on having a suitable replacement for `Mono.Cecil`...

Starting with Windows 10 1903 the C#-based generator can't access the metadata files in `C:\Windows\System32\WinMetadata` (at least when run from inside VS), because of the problem described in https://developercommunity.visualstudio.com/content/problem/446490/visual-studio-cant-see-winmetadatadirectory-in-cwi.html (i.e....

Depends on (i.e. includes) #74

... and then use `?` instead of `unwrap` everywhere.

Many classes implement other interfaces besides their main interface. For example, `Windows.System.LauncherOptions` implements `ILauncherOptions`, but also `ILauncherViewOptions`, `ILauncherOptions2` and `ILauncherOptions3`. `QueryInterface` can be used to get implementations of these other...

This requires adding definitions of the `IWeakReference` and `IWeakReferenceSource` interfaces, and maybe adding some nice wrapper types or `impl`s. See also https://kennykerr.ca/2018/03/15/cppwinrt-understanding-weak-references-dispose-pattern/

I just stumbled upon the fact that `HttpProgress` seems to be the only `struct` that contains reference types as members (`Windows.Foundation.IReference`). Currently this is projected as `*mut windows::foundation::IReference`, but we...