dcomp.h and Presentation.h are missing some _COM_Outptr_ annotations, turning these functions in windows-rs to take a meaningless *mut *mut c_void. With this annotation the functions return a generic T: Interfaceand automatically pass its &T::IID to the riid parameter resulting in a much more ergonomic API.
Also annotate some return-only functions with RetVal to make it easier to retrieve these objects.
…position`
dcomp.h
andPresentation.h
are missing some_COM_Outptr_
annotations, turning these functions inwindows-rs
to take a meaningless*mut *mut c_void
. With this annotation the functions return a genericT: Interface
and automatically pass its&T::IID
to theriid
parameter resulting in a much more ergonomic API.Also annotate some return-only functions with
RetVal
to make it easier to retrieve these objects.