I do not want to switch between APIs. I made some Windows Runtime Components in C++ using WRL and I want to expose them to desktop apps.

I do know that I must mark my components with the DualApiPartitionAttribute (Windows.Foundation.Metadata.DualApiPartitionAttribute). I don't know how to do that in the IDL. WinRT IDL lacks documentation. for example: