X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mcs%2Fclass%2Fcorlib%2FSystem.Security.AccessControl%2FNativeObjectSecurity.cs;h=db43c8b549001e029973a5926fd63929792a1cd4;hb=4df88aea4b841eed9614455a8b71d4a446a44cc6;hp=7e83a6cacf0a297bccf6973c93a0762b405fe84f;hpb=c1d81649cc1d16ee47bd6fb951e220d8aba6a1d0;p=mono.git diff --git a/mcs/class/corlib/System.Security.AccessControl/NativeObjectSecurity.cs b/mcs/class/corlib/System.Security.AccessControl/NativeObjectSecurity.cs index 7e83a6cacf0..db43c8b5490 100644 --- a/mcs/class/corlib/System.Security.AccessControl/NativeObjectSecurity.cs +++ b/mcs/class/corlib/System.Security.AccessControl/NativeObjectSecurity.cs @@ -38,7 +38,9 @@ namespace System.Security.AccessControl public abstract class NativeObjectSecurity : CommonObjectSecurity { ExceptionFromErrorCode exception_from_error_code; +#if !MOBILE ResourceType resource_type; +#endif protected internal delegate Exception ExceptionFromErrorCode (int errorCode, string name, SafeHandle handle, @@ -47,7 +49,9 @@ namespace System.Security.AccessControl internal NativeObjectSecurity (CommonSecurityDescriptor securityDescriptor, ResourceType resourceType) : base (securityDescriptor) { +#if !MOBILE resource_type = resourceType; +#endif } protected NativeObjectSecurity (bool isContainer, @@ -63,7 +67,9 @@ namespace System.Security.AccessControl : base (isContainer) { exception_from_error_code = exceptionFromErrorCode; +#if !MOBILE resource_type = resourceType; +#endif } protected NativeObjectSecurity (bool isContainer, @@ -129,7 +135,7 @@ namespace System.Security.AccessControl { Persist (name, includeSections, null); } - + internal void PersistModifications (SafeHandle handle) { WriteLock(); @@ -411,12 +417,14 @@ namespace System.Security.AccessControl [return: MarshalAs (UnmanagedType.Bool)] static extern bool IsValidSecurityDescriptor (IntPtr descriptor); + /* struct SecurityDescriptor { public byte Revision, Size; public ushort ControlFlags; public IntPtr Owner, Group, Sacl, Dacl; } + */ #endregion #endif }