{"id":5806,"date":"2012-05-18T03:09:57","date_gmt":"2012-05-18T02:09:57","guid":{"rendered":"http:\/\/www.itwriting.com\/blog\/?p=5806"},"modified":"2012-05-18T03:09:57","modified_gmt":"2012-05-18T02:09:57","slug":"microsoft-appeals-to-metro-developers-not-to-stray-from-the-official-api","status":"publish","type":"post","link":"https:\/\/www.itwriting.com\/blog\/5806-microsoft-appeals-to-metro-developers-not-to-stray-from-the-official-api.html","title":{"rendered":"Microsoft appeals to Windows 8 Metro developers not to stray from the official API"},"content":{"rendered":"<p>Microsoft\u2019s John Hazen has <a href=\"http:\/\/blogs.msdn.com\/b\/b8\/archive\/2012\/05\/17\/delivering-reliable-and-trustworthy-metro-style-apps.aspx\" target=\"_blank\">posted<\/a> on the official Building Windows 8 blog about the security and reliability principles in the Metro platform in Windows 8. Hazen explains how apps are installed from the Windows store, use contracts to interact with the operating system, and have to ask user consent for access to device capabilities such as the webcam or GPS, or to access user data such as documents and music.<\/p>\n<p>The most intriguing part of the document comes when Hazen appeals to developers to stick to the API that is referenced in the official <a href=\"http:\/\/msdn.microsoft.com\/library\/windows\/apps\/br211369\" target=\"_blank\">Windows 8 Metro SDK<\/a>: <\/p>\n<blockquote>\n<p>Resist the temptation to find ways to invoke APIs that are not included in the SDK. This ultimately undermines the expectations that customers have for your app. APIs that are outside the SDK are not guaranteed to work with Metro style apps either in this release or in future releases, so you may find that your app doesn\u2019t function properly for all customers. These APIs may also not function properly in the async environment that is foundational to Metro style app design. Finally these APIs may undermine customer confidence by accessing resources or data that Metro style apps would not normally interact with. For all these reasons, we have provided checks in the <a href=\"http:\/\/msdn.microsoft.com\/en-us\/library\/windows\/apps\/hh694081.aspx\">Windows App Certification Kit<\/a> to help you catch places where you might have inadvertently called interfaces not exposed by the SDK.<\/p>\n<p>While it is possible to hide or obfuscate calls to APIs that are not included in the SDK, this is still a violation of customer expectations and Store policy. In the end, we have created this platform to help developers like you to build amazing apps that work well with the system and with other apps and devices to delight customers. Working with the Metro style SDK is fundamental to your realizing that goal.<\/p>\n<\/blockquote>\n<p>The worrying aspect of this appeal to developers to play nice is Hazen\u2019s admission that crafty developers may find ways to escape the Metro sandbox, undermining both the security and the privacy protection built into Metro. The main protection against this is such such an app should be blocked from the Windows Store, but can Microsoft check with 100% confidence that no hidden or obfuscated API calls exist? How effective is the Metro sandbox?<\/p>\n<p>My guess is that the danger will be greater on the x86 version of Windows 8 than in Windows RT, which is locked down to prevent any third-party desktop applications from being installed. Nevertheless, a large part of the non-Metro Windows API must exist in Windows RT, to support the desktop, Explorer and Microsoft Office.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Microsoft\u2019s John Hazen has posted on the official Building Windows 8 blog about the security and reliability principles in the Metro platform in Windows 8. Hazen explains how apps are installed from the Windows store, use contracts to interact with the operating system, and have to ask user consent for access to device capabilities such &hellip; <a href=\"https:\/\/www.itwriting.com\/blog\/5806-microsoft-appeals-to-metro-developers-not-to-stray-from-the-official-api.html\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Microsoft appeals to Windows 8 Metro developers not to stray from the official API<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[55,67,80],"tags":[580,586,999],"class_list":["post-5806","post","type-post","status-publish","format-standard","hentry","category-microsoft","category-professional","category-software-development","tag-metro","tag-microsoft","tag-windows-8"],"_links":{"self":[{"href":"https:\/\/www.itwriting.com\/blog\/wp-json\/wp\/v2\/posts\/5806","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.itwriting.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.itwriting.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.itwriting.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.itwriting.com\/blog\/wp-json\/wp\/v2\/comments?post=5806"}],"version-history":[{"count":0,"href":"https:\/\/www.itwriting.com\/blog\/wp-json\/wp\/v2\/posts\/5806\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.itwriting.com\/blog\/wp-json\/wp\/v2\/media?parent=5806"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.itwriting.com\/blog\/wp-json\/wp\/v2\/categories?post=5806"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.itwriting.com\/blog\/wp-json\/wp\/v2\/tags?post=5806"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}