DualApi Finder or listing winRT types usable by Desktop Apps

Download DualApiFinder

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

PlatformRequirementInMSDN
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

DualApi Finder Tool

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

References

About these ads
This entry was posted in .NET, C#, Desktop, Store App, Windows 8, Windows 8.1, WinRT and tagged , , , , , , . Bookmark the permalink.

3 Responses to DualApi Finder or listing winRT types usable by Desktop Apps

  1. Pingback: Windows Store Developer Links – 2013-08-20 | Dan Rigby

  2. 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

  3. Pingback: Utilizando APIs do WinRT em aplicações desktop - André Alves de Lima

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s