locked
Hidden Interface

    Question

  • SwapChainBackgroundPanel and SurfaceImageSource have hidden interfaces

    (which are ISwapChainBackgroundPanelNative ISurfaceImageSourceNative)

    how could I create such hidden interface on my own C++/Cx components?

    I'm wrapping DirectX in a reusable library (C++/Cx component) for C#.

    But when I reuse it from C++ I would like to access the native interfaces!

    Tuesday, February 05, 2013 2:52 AM

Answers

  • You can't. WinRT components can only publically expose interfaces that comply with the WinRT ABI. The OS can expose such things because it is the OS. They carefully define and validate the interfaces and strictly limit Win32 APIs that are usable in a Windows Store application.

    XNA/DirectX MVP | Website | Blog | @mikebmcl

    • Marked as answer by Lloyd Wednesday, February 06, 2013 9:48 AM
    Wednesday, February 06, 2013 2:15 AM

All replies

  • You can't. WinRT components can only publically expose interfaces that comply with the WinRT ABI. The OS can expose such things because it is the OS. They carefully define and validate the interfaces and strictly limit Win32 APIs that are usable in a Windows Store application.

    XNA/DirectX MVP | Website | Blog | @mikebmcl

    • Marked as answer by Lloyd Wednesday, February 06, 2013 9:48 AM
    Wednesday, February 06, 2013 2:15 AM
  • I did think it might be the sad reality.. Thanks for confirming!! 
    Ho, well...
    Wednesday, February 06, 2013 9:49 AM