locked
Use regular win32/win64 COM from WinRT

    Question

  • Hi, All:

    Could I use regular/existing win32/win64 COM component from WinRT? Can I directly use window C/C++ winsock APIs as well as completion port APIs within WinRT native environment?

    Thanks.

    Friday, June 8, 2012 2:07 PM

Answers

All replies

  • Metro style apps can call registration-free COM components which they include in their app package, so long as the COM components don't use any API which aren't available to Metro style apps. Metro style apps cannot call arbitrary COM components registered on the system.

    You can find the list of available API at Win32 and COM for Metro style apps or by looking at the documentation for the specific API to see if it applies to Metro style apps or desktop apps.

    Winsock and completion ports are available only to desktop apps.

    --Rob

    Friday, June 8, 2012 3:24 PM
    Owner
  • Hi, Rob:

    Thanks a lot for your fast response.

    Does IXMLHTTPRequest2 supports HTML5 websocket? What is recommended way to access my existing socket-based server from WinRT?

    Friday, June 8, 2012 4:01 PM
  • Friday, June 8, 2012 9:49 PM
    Owner