windows-rs
windows-rs copied to clipboard
Rust for Windows
Inspired by [tests/implement/tests/generic_default.rs](https://github.com/microsoft/windows-rs/blob/d1a697339c2590186184415bd19d0546eb61561d/tests/implement/tests/generic_default.rs), I was trying to implement a simple `IVectorView`. The `GetMany` function inside `IVectorView` has a out param [`items`](tests/implement/tests/generic_default.rs), which is an WinRT array. The generated shim code...
Using a tool lime TryBuild we can test that certain code does not build and that the diagnostics the end user gets are what we expect.
Many APIs assume the caller will provide a collection of values. This should integrate with `winrt::Param` to allow regular Rust collections and iterators to bind to WinRT input parameters of...
Implementations (e.g. WinRT delegates and those created with the `implement` macro) support `IAgileObject` but `IMarshal` is also required for some languages.
Hello! First of all thanks for this project :) I've been writing a Webview app with this crate and it works great! I'm trying to write a `IUriToStreamResolver` implementation and...
Opening this issue as a continuation of #322. While it is now possible to call `poll` on winrt futures more than once, consecutive `poll` calls will not update the `Waker`....
Delegate types require a closure with type `impl FnMut` to construct. The following demo fails to compile. ```rust winrt::import!( dependencies os types windows::ui::core::{CoreDispatcher, IdleDispatchedHandler} ); use windows::ui::core::*; #[allow(unused)] fn dispatch(dispatcher:...
WinRT uses `IReference` parameter and field types to indicate that a given argument/value is optional. This should be expressed in Rust using `Option`. In particular, we should add `Param` specializations...
I've run into an issue with `ID3D11DeviceContext::OMSetRenderTargets()` where the [original](https://learn.microsoft.com/en-us/windows/win32/api/d3d11/nf-d3d11-id3d11devicecontext-omsetrendertargets) takes a pointer to an array of const pointers to `ID3D11RenderTargetView`, but the Rust version takes an `Option`. As best...
Hello, the last couple of days I tried to migrate my XAudio2 project from C++ to Rust and was simply unable to implement the **IXAudio2VoiceCallback** interface. I am quite new...