tweak showing of "run IE as Administrator user" message
diff --git a/development/org.eclipse.wst.jsdt.debug.ie/IECrossfireInstaller/Release/IECrossfireInstaller.msi b/development/org.eclipse.wst.jsdt.debug.ie/IECrossfireInstaller/Release/IECrossfireInstaller.msi
index ab2ea55..cf8857a 100644
--- a/development/org.eclipse.wst.jsdt.debug.ie/IECrossfireInstaller/Release/IECrossfireInstaller.msi
+++ b/development/org.eclipse.wst.jsdt.debug.ie/IECrossfireInstaller/Release/IECrossfireInstaller.msi
Binary files differ
diff --git a/development/org.eclipse.wst.jsdt.debug.ie/IECrossfireServer/CrossfireServer.cpp b/development/org.eclipse.wst.jsdt.debug.ie/IECrossfireServer/CrossfireServer.cpp
index 15b94e5..2277014 100644
--- a/development/org.eclipse.wst.jsdt.debug.ie/IECrossfireServer/CrossfireServer.cpp
+++ b/development/org.eclipse.wst.jsdt.debug.ie/IECrossfireServer/CrossfireServer.cpp
@@ -14,6 +14,7 @@
#include "CrossfireServer.h"
/* initialize constants */
+const wchar_t* CrossfireServer::ABOUT_BLANK = L"about:blank";
const UINT CrossfireServer::ServerStateChangeMsg = RegisterWindowMessage(L"IECrossfireServerStateChanged");
const wchar_t* CrossfireServer::WindowClass = L"_IECrossfireServer";
@@ -195,7 +196,13 @@
}
eventContextCreated(context);
- if (!m_connectionWarningShown) {
+ /*
+ * Attempt to detect the case of the user not launching IE as the Administrator user, and
+ * display an error message if appropriate. Do not show the error more than once, and do
+ * not show it for the about:blank page, because IE's initial about:blank page fails to
+ * provide a remote debug thread even when IE is launched as the Administrator user.
+ */
+ if (!m_connectionWarningShown && wcscmp(url, ABOUT_BLANK) != 0) {
CComPtr<IRemoteDebugApplication> application = NULL;
if (!context->getDebugApplication(&application)) {
DWORD processId = context->getProcessId();
diff --git a/development/org.eclipse.wst.jsdt.debug.ie/IECrossfireServer/CrossfireServer.h b/development/org.eclipse.wst.jsdt.debug.ie/IECrossfireServer/CrossfireServer.h
index f964c20..07a0c88 100644
--- a/development/org.eclipse.wst.jsdt.debug.ie/IECrossfireServer/CrossfireServer.h
+++ b/development/org.eclipse.wst.jsdt.debug.ie/IECrossfireServer/CrossfireServer.h
@@ -165,6 +165,7 @@
static const wchar_t* KEY_URL;
/* constants */
+ static const wchar_t* ABOUT_BLANK;
static const wchar_t* CONTEXTID_PREAMBLE;
static const wchar_t* HANDSHAKE;
static const wchar_t* HEADER_CONTENTLENGTH;