microsoft / com-rs

A Rust crate for creating and consuming COM APIs
MIT License
599 stars 52 forks source link

Add Windows COM Examples #100

Open motorsports360 opened 4 years ago

motorsports360 commented 4 years ago

Any plans to add windows com examples?

Context menu perhaps https://code.msdn.microsoft.com/windowsapps/CppShellExtContextMenuHandl-410a709a https://docs.microsoft.com/en-us/windows/win32/ad/implementing-the-context-menu-com-object

rylev commented 4 years ago

Thanks for reporting this. It definitely would be a good idea to have real world examples of COM APIs. Of course, pull requests are also very welcome! 😀

Ciantic commented 4 years ago

I have fairly many interfaces in my Virtual Desktops binding repo:

https://github.com/Ciantic/VirtualDesktopAccessor/blob/rust/src/interfaces.rs

It contains various input and output types, and works as a good example.

However, I'm not sure at all am I using this com crate correctly.