This is a mirror of official site: http://jasper-net.blogspot.com/

WinRT and .NET in Windows 8

| Thursday, September 15, 2011
The Web today is full of rumors about the demise of Silverlight, .NET, Win32, and nearly anything else that doesn’t align immediately with Metro-style apps. Indeed, it seems sometimes that we are so eager to focus on “what’s dead” that we forget to look at the new announcements and try to figure out “what’s alive”.

From a brief analysis of the Windows 8 Developer Preview, Visual Studio 11 Developer Preview, and whatever bits of information delivered at the conference sessions, I think I have a pretty decent mental picture of what’s going on.

First of all, a managed Metro application (e.g. written in C#) will still load the CLR. I confirmed this by launching a Metro application and inspecting it with WinDbg – I was even able to load SOS and run basic commands. The CLR version bundled with the preview is 4.0.30319.17020, and that’s the version that gets loaded inside a Metro app. (It’s curious to note that even though the Visual Studio setting dictates “Any CPU” and the Windows version is 64-bit, the actual process is 32-bit.)

Symmetrically, a “fully” .NET application (e.g. a WinForms app) can reference the WinRT metadata assemblies and use WinRT APIs. This will be a necessity in some cases, for example to tap into the WinRT sensor APIs.

Next, a C++ Metro application will still load Win32 DLLs such as kernel32 and ntdll. Moreover, the WinRT APIs call into the Win32 DLLs – so they are not a replacement but rather a wrapper, an API flavor, on top of Win32. (Historical note: Windows used to have a feature called “environment subsystems”, which can be roughly described as API flavors. WinRT is not an environment subsystem – it is a library on top of the Win32 environment subsystem.)

What about the limitations, then, that a Metro application has in terms of API surface? Indeed, a Metro application written in C++ will be able to access only a part of the Win32 API surface, and this is accomplished through a bunch of preprocessor definitions. For example, the MessageBox function is not available for Metro-style apps, and its declaration is protected in the header file as follows:

#pragma region Desktop Family
#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
WINUSERAPI int WINAPI MessageBoxA(…);

Read more: All Your Base Are Belong To Us
QR: winrt-and-net-in-windows-8.aspx

Posted via email from Jasper-net

22 comments:

Anonymous said...

fgjh longchamp bags GvxTrv 0714
longchamp outlet hjcl http://www.longchampbagspurse.com/ longchamp outlet

Sxnud ubdlco longchamp handbags 6385
longchamp outlet pgkj http://www.longchamphandbagsusa.com/ longchamp outlet

yyvr longchamp sale HqrHz paris m 5223
longchamp outlet vkdp http://www.longchampsalepurse.com/ longchamp outlet

Exkyk lgrywg longchamp le pliage zvx5372
longchamp outlet ndzq http://www.longchamplepliageus.com/ longchamp outlet

Wtucy longchamp duocnx
Qzl longchamp outlet uu htt longchamp paris ttw
Tccso longchamp qvwr long champ pk longchamp sale ekimqg
Xna longchamp outlet ar jgb longchamp paris kbb
Gry longchamp le pliage hh longchamp zkf longchamp le pliage xyk
Ovw longchamp outlet le os longchamp bags e longchamp paris lif

Anonymous said...

http://yourmomisastupidbitch.com/members-2/usaxducta/activity/6222

http://topdomainhost.tk/members/usavteoti/activity/3332

http://www.clevertester.com/forums/topic.php?id=423779&replies=1#post-461006

http://arlingtonvirginiaservices.com/wwwlongchamppursepariscom-1309

http://moneymakersclub.ru/members/usavvujew/activity/29891

http://www.nowsound.com/recent-posts/wwwlouisvuittonoutletukusacom-fj3047#comment-42428

http://www.drivelineblog.com/forum/topic.php?id=455726&replies=1#post-471872

http://www.ournewoutlook.com/members/usabacujc/activity/20271

http://infojawcrusher.com/faq/topic.php?id=24179&replies=1#post-25176

http://clandred.com/member/blog_post_view.php?postId=177107

http://www.detailingcrew.com/members/usanfbwmz/activity/2022

http://alertthenation.org/forum/topic.php?id=4955&replies=1#post-4972

http://skincare.coeus-solutions.de/bbpress/topic.php?id=23170&replies=1#post-25922

http://ibookmark.org/node/15574

http://www.myfirstrealjob.com/bbpress/topic.php?id=32421&replies=1#post-38610

http://www.alphacompany.org/members/usaarohhd/activity/41578

http://joeshields.com/chatdiaries.com/members/usasobzkh/activity/72938

http://pumpa.co.kr/wordpress/members/usafazzme/activity/69223

http://www.syncd.co.za/members/usamice/activity/62969

http://videos.kelly-rowland.org/read_blog/85326/www.longchamppurseparis.com-210

Anonymous said...

http://slamdaddys.com/member/blog_post_view.php?postId=184510

http://webitus.cz/forum/topic/wwwlouisvuittonoutletukusacom-492?replies#post-19037

http://winiarenka.pl/content/wwwlouisvuittonoutletukusacom-400

http://tulsaga-occupytulsa.dotcloud.com/members/usamax321/activity/63341

http://sanwango.com/node/15336

http://www.smithersmpls.com/bbpress/topic.php?id=185616#post-191802

http://accordingtogonzo.com/gonzo/members/usajjjspd/activity/21026

http://velodrom.hu/drupal/node/13596

http://www.ecuatorianosenholanda.com/bbpress/topic.php?id=438403&page&replies=1#post-448804

http://beta.sweetorweak.com/node/68321

http://shubukan.org/sp/forums/topic/563533?replies=1#post-607406

http://www.madnesscombat.com/forum/topic/wwwlouisvuittonoutletonlineukcom-521204?replies=1#post-95221

http://ligas.clansbk.com/node/19906

http://astralface.com/blogs/entry/www-hermeshandbagusa-com-59863823

http://www.usviber.org/bbpress/topic.php?id=112482&replies=1#post-125296

http://sorriamais.net/content/wwwlouisvuittonoutletonlineukcom-521347

http://michael.sherrards.org/civicspace/node/13471

http://autoremisexpress.com.ar/ClasiExpress/?q=node/8780

http://sanwango.com/node/15262

http://www.myweddingaway.com/blog/forum/topic.php?id=193757&replies=1#post-210974

Anonymous said...

http://bloggityblah.com/Members/topic.php?id=10008&replies=1#post-12232

http://pulsobeat.com/beta/forum/topic.php?id=233241&replies=1#post-238412

http://canined.com/bb/topic.php?id=519033&replies=1#post-594598

http://www.bsh3.ru/bbpress/topic/wwwlouisvuittonwalletukusacom-zun10406?replies=1#post-4593

http://forum.tradeimport.com.ua/topic.php?id=13618&replies=1#post-22895

http://www.rpolillo.it/bbpress/topic.php?id=19841&replies=1#post-23772

http://bbpress.nextep.it/topic.php?id=17885&replies=1#post-32725

http://metroleft.com/node/153992

http://www.slabsaugras.ro/forum/topic.php?id=4641#post-5392

http://forum.animemangatoons.com/topic.php?id=399591&replies=1#post-240176

http://www.ladiesinbalance.com/members/usamax321/activity/22791

http://www.wnygolfer.com/members/usaytjdjc/activity/28948

http://chilloutlive.com/topchill/node/261648

http://www.analblekning.se/forum/topic.php?id=64924&replies=1#post-73341

http://www.weefashionistas.com/forum/topic.php?id=256373&replies=1#post-418059

http://www.cyprusfreethinkers.org/discussions/topic/wwwlouisvuittonwalletukusacom-suun10127?replies=1#post-29195

http://pitchelevator.com/members/usafkksbx/activity/94743

http://octc.org.au/bbpress/topic.php?id=351287#post-366086

http://www.ruffneckswagger.com/bbpress/topic.php?id=36510&replies=1#post-53855

http://greenscooking.com/wp/members/usa321/activity/8212

Anonymous said...

buy tramadol online tramadol 100mg retardtabletten - tramadol no prescription free shipping

Anonymous said...

xanax pill what does generic 2mg xanax look like - order xanax online uk

Anonymous said...

buy tramadol online buy tramadol hcl online - get tramadol online no prescription

Anonymous said...

buy tramadol online legitimate online pharmacy tramadol - can you buy tramadol in usa

Anonymous said...

buy tramadol online taking tramadol high blood pressure - buy tramadol rx

Anonymous said...

buy tramadol online tramadol online for cheap - tramadol purchase no prescription

Anonymous said...

xanax online xanax side effects withdrawal - generic xanax capsule

Anonymous said...

xanax online xanax and generic xanax - xanax clean drug test

Anonymous said...

xanax online xanax xr vs generic - xanax made my anxiety worse

Anonymous said...

learn how to buy tramdadol tramadol hcl injection - best dosage tramadol

Anonymous said...

tramadol online tramadol xl - generic tramadol online no prescription

Anonymous said...

http://landvoicelearning.com/#51438 buy discount tramadol - tramadol 50 mg-myl

Anonymous said...

buy tramadol tramadol overdose amount - buy tramadol hydrochloride online

Anonymous said...

http://reidmoody.com/#51208 ativan dosage amounts - ativan and alcohol use

Anonymous said...

ways to buy ativan online uses for ativan in children - buy ativan no rx

Anonymous said...

http://staam.org/#92453 is it ok to take 100mg of tramadol - tramadol max dose

Anonymous said...

I am not sure where you are getting your info, but great topic.
I needs to spend some time learning much more or understanding more.

Thanks for great information I was looking for this information for
my mission.

Also visit my site: tao of badass

Anonymous said...

Hello there! I know this is somewhat off topic but I was wondering which blog platform are you
using for this site? I'm getting tired of Wordpress because I've had issues
with hackers and I'm looking at options for another platform. I would be fantastic if you could point me in the direction of a good platform.

Here is my site - buy the tao of badass