[commit] r2419 - Add -lowRights argument back for browser plugin support.

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[commit] r2419 - Add -lowRights argument back for browser plugin support.

commits-3
 
Author: andreas
Date: 2011-06-09 02:19:44 -0700 (Thu, 09 Jun 2011)
New Revision: 2419

Modified:
   branches/Cog/platforms/win32/vm/sqWin32Intel.c
Log:
Add -lowRights argument back for browser plugin support.

Modified: branches/Cog/platforms/win32/vm/sqWin32Intel.c
===================================================================
--- branches/Cog/platforms/win32/vm/sqWin32Intel.c 2011-06-09 09:10:34 UTC (rev 2418)
+++ branches/Cog/platforms/win32/vm/sqWin32Intel.c 2011-06-09 09:19:44 UTC (rev 2419)
@@ -30,6 +30,14 @@
 # endif
 #endif
 
+/* Windows Vista support
+ * AUTHOR: Korakurider (kr)
+ * CHANGE NOTES:
+ *   1) new command line option "-lowRights" was introduced
+ *      to support IE7/protected mode.
+ */
+#define VISTA_SECURITY 1 /* IE7/Vista protected mode support */
+
 /*** Crash debug -- Imported from Virtual Machine ***/
 int getFullScreenFlag(void);
 int methodPrimitiveIndex(void);
@@ -62,6 +70,11 @@
 
 TCHAR *logName = TEXT("");             /* full path and name to log file */
 
+#ifdef VISTA_SECURITY
+BOOL fLowRights = 0;  /* started as low integiry process,
+ need to use alternate untrustedUserDirectory */
+#endif /* VISTA_SECURITY */
+
 /* Service stuff */
 TCHAR  serviceName[MAX_PATH+1];   /* The name of the NT service */
 TCHAR *installServiceName = NULL; /* the name under which the service is to install */
@@ -1176,6 +1189,10 @@
   { ARG_FLAG, &fHeadlessImage, "-headless" },       /* do we run headless? */
   { ARG_STRING, &logName, "-log:" },                /* VM log file */
   { ARG_UINT, &dwMemorySize, "-memory:" },          /* megabyte of memory to use */
+#ifdef  VISTA_SECURITY /* IE7/Vista protected mode support */
+  { ARG_FLAG, &fLowRights, "-lowRights" }, /* started with low rights,
+ use alternate untrustedUserDirectory */
+#endif /* VISTA_SECURITY */
 #if STACKVM && !COGVM || NewspeakVM
   { ARG_FLAG, &sendTrace, "-sendtrace"},
 #endif