In a previous post, I explained how to use the WinRT API in Desktop applications with Visual Studio 2012 Release Candidate. I will soon provide an update for Visual Studio 2012 and 2013 on http://blogs.msdn.com/b/mspfe.
Meanwhile, you should start taking a look at the WinRT types that are usable by Desktop applications. For a given type, the MSDN documentation provides the list of supported platforms in the Requirements section at the end of its corresponding page
In the given screenshot, the type is usable both from Windows Store and Desktop applications.
In order to help you, I’ve built a tool that directly lists the types recognized as usable by a Desktop App
There is no magic here: these types are decorated by an instance of DualApiPartitionAttribute. As the MSDN documentation states, it indicates that the type is supported in desktop apps and in Windows Store apps.
This is an approximation of the types we are interested in because some WinRT types are only available to Desktop Apps such as PackageManager used in my previous post. And in that case, it is not decorated by a DualApiPartitionAttribute. However, I’ve not found any other Destop-only type other than the types related to PackageManager such as PackageUserInformation or DeploymentResult.
I hope this helps
Pingback: Windows Store Developer Links – 2013-08-20 | Dan Rigby
Pingback: How to use specific WinRT API from Desktop apps: capturing a photo using your webcam into a WPF app - Eternal Coding - HTML5 / Windows / Kinect / 3D development - Site Home - MSDN Blogs
Pingback: Utilizando APIs do WinRT em aplicações desktop - André Alves de Lima
Pingback: How to use specific WinRT API from Desktop apps: capturing a photo using your webcam into a WPF app – EternalCoding