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

We're currently generating all the necessary parametric interface GUIDs ahead of time in the code generator (C#). At least those that are necessary to compile the library. User code might...

We need to figure out whether running the code generator should be part of building the library. If so, we should have a Cargo build script to run it as...

question

Hi there, I’m trying to use the `Windows.Gaming.Input` methods to get Gamepad access. I’m having a lot of trouble figuring out how to implement the event handlers! I’ve gotten as...

needs documentation

(Maybe this should be put into the Wiki, but it can be moved later.) - https://blogs.msdn.microsoft.com/vcblog/2012/08/29/ccx-part-0-of-n-an-introduction/ - Explanations about C++/CX, but also about WRL (5 parts) - http://www.codeproject.com/Articles/14183/COM-in-plain-C-Part - How...

Using the [wstr crate](https://github.com/nitric1/wstr-rs) for UTF16 literals, we can now provide a macro that enables `HString` literals without any heap allocation. Fixes #30

We currently call `RoGetActivationFactory()` on every single (wrapped) constructor or static function call. This should be optimized by caching activation factories. An explanation of what's done in the modern C++...

See https://msdn.microsoft.com/de-de/library/windows/desktop/mt695951(v=vs.85).aspx. Probably the APIs that don't have the `DualApiPartition` attribute should be disabled by default, and enabled only via a feature flag. Currently they won't be of much use...

Panics should generally never cross FFI boundaries (it's undefined behavior according to https://static.rust-lang.org/doc/master/std/panic/fn.catch_unwind.html). Catch the panic using `catch_unwind`, and convert it into an appropriate `HRESULT` value (possibly `E_FAIL`).

We can use this issue to track the current compile time (and memory usage) by posting the output of `cargo rustc --features all -- -Z time-passes`. Also don't forget to...