[mscorlib] Do not include several win32-p/invoke calls (AccessControl) for the mobile...
authorSebastien Pouliot <sebastien@xamarin.com>
Thu, 26 Nov 2015 16:37:03 +0000 (11:37 -0500)
committerSebastien Pouliot <sebastien@xamarin.com>
Thu, 26 Nov 2015 16:37:03 +0000 (11:37 -0500)
mcs/class/corlib/System.Security.AccessControl/NativeObjectSecurity.cs

index 141d0c9d6cbe46e6e6b7cb34c0c545091f9c1ef0..7e83a6cacf0a297bccf6973c93a0762b405fe84f 100644 (file)
@@ -203,6 +203,9 @@ namespace System.Security.AccessControl
                internal virtual int InternalGet (SafeHandle handle,
                                                  AccessControlSections includeSections)
                {
+#if MOBILE
+                       throw new PlatformNotSupportedException ();
+#else
                        if (Environment.OSVersion.Platform != PlatformID.Win32NT)
                                throw new PlatformNotSupportedException ();
 
@@ -214,11 +217,15 @@ namespace System.Security.AccessControl
                                                                out owner, out group,
                                                                out dacl, out sacl, out descriptor);
                                }, includeSections);
+#endif
                }
                
                internal virtual int InternalGet (string name,
                                                  AccessControlSections includeSections)
                {
+#if MOBILE
+                       throw new PlatformNotSupportedException ();
+#else
                        if (Environment.OSVersion.Platform != PlatformID.Win32NT)
                                throw new PlatformNotSupportedException ();
 
@@ -230,8 +237,20 @@ namespace System.Security.AccessControl
                                                                     out owner, out group,
                                                                     out dacl, out sacl, out descriptor);
                                }, includeSections);
+#endif
                }
                
+#if MOBILE
+               internal virtual int InternalSet (SafeHandle handle, AccessControlSections includeSections)
+               {
+                       throw new PlatformNotSupportedException ();
+               }
+
+               internal virtual int InternalSet (string name, AccessControlSections includeSections)
+               {
+                       throw new PlatformNotSupportedException ();
+               }
+#else
                internal virtual int InternalSet (SafeHandle handle,
                                                  AccessControlSections includeSections)
                {
@@ -399,6 +418,7 @@ namespace System.Security.AccessControl
                        public IntPtr Owner, Group, Sacl, Dacl;
                }
                #endregion
+#endif
        }
 }