Click here to Skip to main content
12,898,663 members (60,332 online)
Click here to Skip to main content


45 bookmarked
Posted 11 Sep 2012

How to call WinRT APIs from .NET desktop apps

, 5 Feb 2013 Public Domain
Explains how to create a .NET app which invokes WinRT APIs on Windows 8.



Compare Revision Minor Date Status Editor
7 - publicly available No 5-Feb-13 5:08 Available Smitha Nishant
Updates in content. 137 changes had been made.
6 No 8-Jan-13 4:38 Available ljw1004
Updates in content. 452 changes had been made.
5 No 14-Sep-12 4:06 Available ljw1004
I changed from MainAsync().Wait() --> MainAsync().GetAwaiter().GetResult(), which has better exception behaviour (i.e. doesn't wrap exceptions up in an AggregateException)
4 No 12-Sep-12 15:25 Available ljw1004
I submitted an online project template, and mentioned it in the introduction.
3 No 12-Sep-12 6:41 Available ljw1004
I answered the question "what are WinRT APIs?"
2 No 11-Sep-12 13:46 Available ljw1004
Updates in content. 470 changes had been made.
1 No 11-Sep-12 13:39 Available ljw1004
Initial creation


This article, along with any associated source code and files, is licensed under A Public Domain dedication


About the Author

Technical Lead
United States United States
Lucian studied theoretical computer science in Cambridge and Bologna, and then moved into the computer industry. Since 2004 he's been paid to do what he loves -- designing and implementing programming languages! The articles he writes on CodeProject are entirely his own personal hobby work, and do not represent the position or guidance of the company he works for. (He's on the VB/C# language team at Microsoft).

You may also be interested in...

Permalink | Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.170424.1 | Last Updated 5 Feb 2013
Article Copyright 2012 by ljw1004
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid