contextfree / winrt-rust

Use and (eventually) make Windows Runtime APIs with Rust
Apache License 2.0
142 stars 10 forks source link

Make sure that correct calling convention is used #16

Closed Boddlnagg closed 5 years ago

Boddlnagg commented 7 years ago

stdcall methods use a slightly different calling convention than normal stdcall functions. This probably breaks some WinRT methods. See https://github.com/rust-lang/rfcs/issues/1342.

Boddlnagg commented 7 years ago

I just stumbled upon this comment by retep998 where it says that "returning HRESULT [...] is the same for both methods and functions". So as long as WinRT methods always return HRESULT (which I think they do), everything should be correct.

Boddlnagg commented 5 years ago

Yes, I check again and all raw method declarations return HRESULT, so I'm closing this.