retep998 / wio-rs

Windows things for Rust
Apache License 2.0
52 stars 14 forks source link

Add ComPtr::new_class #22

Open Osspial opened 4 years ago

Osspial commented 4 years ago

Adds a type-based convenience function to ComPtr for creating instances of a COM class. This is a relatively common pattern, so I think it's worth exposing through wio's API.