New tests.
[mono.git] / mcs / class / corlib / System / Environment.cs
index 1cb2def12464ee6c296d9ba13a6c448d20cedd20..91e02d48e58781e6b323b30f1a0728e30f38fe79 100644 (file)
@@ -84,8 +84,10 @@ namespace System {
                        ProgramFiles = 0x26,
                        MyPictures = 0x27,
                        CommonProgramFiles = 0x2b,
-#if NET_4_0
+#if NET_4_0 || MOONLIGHT
                        MyVideos = 0x0e,
+#endif
+#if NET_4_0
                        NetworkShortcuts = 0x13,
                        Fonts = 0x14,
                        CommonStartMenu = 0x16,
@@ -450,6 +452,8 @@ namespace System {
 #endif
                static string GetFolderPath(SpecialFolder folder, SpecialFolderOption option)
                {
+                       SecurityManager.EnsureElevatedPermissions (); // this is a no-op outside moonlight
+
                        string dir = null;
 
                        if (Environment.IsRunningOnWindows) {