You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Provide COM_INTERFACE macro to support COM interop; export dependencies
The implementation of the macro mostly closely mirrors RT_INTERFACE!;
I started with a copy of that macro, removed support for WinRT-specific features (generics, statics, IInspectable special case) and Rt* trait impls,
then added the method impls directly in the macro expansion since we can't rely on generated code here.
The other major difference for the user is that those method impls are all marked unsafe and expose an unrefined direct translation of
the ABI with raw pointers, exposed HRESULTs, out pointers for returns, PascalCasing, etc.
The idea is that our COM interop support is intended to be purely a low-level FFI rather than
a higher-level "projection," reflecting that projections are mostly a WinRT-specific concept.
0 commit comments