WinRT/MIDLRT Interface Definition Language RRS feed

  • Question

  • Anyone knows where to find updated documentation for WinRT IDL? Example: Where is the equivalent for DualApiPartitionAttribute in IDL?
    Tuesday, February 19, 2013 4:32 PM

All replies

  • If you look at one of the OS idl files, such as dxgi1_2.idl, you'll see that the WINAPIFAMILY macros are a manual addition.

    Tuesday, February 19, 2013 9:51 PM
  • Hi Jesse!

    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:

    interface IWinRTClass : IInspectable
        HRESULT SomeMethod([in] int x, [in] int y, [out, retval] int* result);
    //[dualapi] ???
    //[dual_api_partition] ???
    //[dualapipartition] ???
    //[dualapipartitionattribute] ???
    // What is the name for Windows.Foundation.Metadata.DualApiPartitionAttribute in IDL???
    [activatable(IWinRTClassFactory, 1.0)]
    [static(MyWindowsRuntimeLib.IWinRTClassStatics, 1.0)]
    runtimeclass WinRTClass
        [default] interface IWinRTClass;

    Thursday, August 21, 2014 9:19 PM