3 ms·
Interesting. In my experience, a lot of Win32 messaging required converting pointers to structs and reading values from that. I don't see how that works with Ru
by jeroenhd 6y ago
Interesting. In my experience, a lot of Win32 messaging required converting pointers to structs and reading values from that. I don't see how that works with Rust? I suppose you can add a load of unsafe code but that would make the whole thing a lot more complex as you now need to deal with pointer ownership and (de)allocation.
- steveklabnik 6y agoYes, because it is FFI you have to use unsafe to do so. Almost 20 million all time downloads: https://crates.io/crates/winapi https://crates.io/crates/winapi And the other bindings I was talking about https://github.com/microsoft/winrt-rs https://github.com/microsoft/winrt-rs