{"id":5377,"date":"2014-03-30T21:11:17","date_gmt":"2014-03-30T21:11:17","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/shellexecute-not-opening-page-on-windows-8-when-chrome-is-the-default-browser-duplicate-collection-of-common-programming-errors\/"},"modified":"2014-03-30T21:11:17","modified_gmt":"2014-03-30T21:11:17","slug":"shellexecute-not-opening-page-on-windows-8-when-chrome-is-the-default-browser-duplicate-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/shellexecute-not-opening-page-on-windows-8-when-chrome-is-the-default-browser-duplicate-collection-of-common-programming-errors\/","title":{"rendered":"ShellExecute not opening page on Windows 8 when chrome is the default browser [duplicate]-Collection of common programming errors"},"content":{"rendered":"<p>I have an elevated desktop application that sometimes opens webpages on errors. The problem I am having is on Windows 8 when Chrome is set as the default browser. It does not open the page, running the process non elevated works fine&#8230; Here is how I&#8217;m opening the page:<\/p>\n<p><code>ShellExecute( NULL, TEXT(\"open\"),sPageURL,NULL, NULL, SW_SHOWNORMAL );<\/code><\/p>\n<p>where sPageURL is the url of the page.<\/p>\n<p>I also tried opening an elevated CMD and opening a web page such as google.com through it like so:<\/p>\n<p><code>start http:\/\/www.google.com<\/code><\/p>\n<p>I got the error <code>\"Class not registered\"<\/code>.<\/p>\n<p>What is the best alternative way to overcome this issue?<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I have an elevated desktop application that sometimes opens webpages on errors. The problem I am having is on Windows 8 when Chrome is set as the default browser. It does not open the page, running the process non elevated works fine&#8230; Here is how I&#8217;m opening the page: ShellExecute( NULL, TEXT(&#8220;open&#8221;),sPageURL,NULL, NULL, SW_SHOWNORMAL ); [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-5377","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/5377","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=5377"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/5377\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=5377"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=5377"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=5377"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}