You've already forked linux-packaging-mono
Imported Upstream version 4.3.2.467
Former-commit-id: 9c2cb47f45fa221e661ab616387c9cda183f283d
This commit is contained in:
@@ -83,6 +83,8 @@ namespace Microsoft.Win32 {
|
||||
FORMAT_MESSAGE_FROM_STRING = 0x00000400,
|
||||
FORMAT_MESSAGE_FROM_SYSTEM = 0x00001000,
|
||||
FORMAT_MESSAGE_ARGUMENT_ARRAY = 0x00002000;
|
||||
|
||||
public const int ERROR_INSUFFICIENT_BUFFER = 0x7A;
|
||||
|
||||
#if FEATURE_NETCORE
|
||||
[SecurityCritical]
|
||||
@@ -107,10 +109,11 @@ namespace Microsoft.Win32 {
|
||||
#if FEATURE_NETCORE
|
||||
[SecurityCritical]
|
||||
[System.Security.SuppressUnmanagedCodeSecurity]
|
||||
#endif
|
||||
[DllImport(ExternDll.Kernel32, ExactSpelling=true, CharSet=System.Runtime.InteropServices.CharSet.Auto, SetLastError=true)]
|
||||
#else
|
||||
[ReliabilityContract(Consistency.WillNotCorruptState, Cer.Success)]
|
||||
[ResourceExposure(ResourceScope.None)]
|
||||
#endif
|
||||
[DllImport(ExternDll.Kernel32, ExactSpelling=true, CharSet=System.Runtime.InteropServices.CharSet.Auto, SetLastError=true)]
|
||||
public static extern bool CloseHandle(IntPtr handle);
|
||||
#endif // !SILVERLIGHT || FEATURE_NETCORE
|
||||
|
||||
@@ -228,11 +231,13 @@ namespace Microsoft.Win32 {
|
||||
|
||||
#if FEATURE_NETCORE
|
||||
[SecurityCritical]
|
||||
#endif
|
||||
[DllImport(ExternDll.Kernel32, SetLastError=true)]
|
||||
#else
|
||||
[ResourceExposure(ResourceScope.Machine)]
|
||||
[ReliabilityContract(Consistency.WillNotCorruptState, Cer.Success)]
|
||||
#endif
|
||||
[DllImport(ExternDll.Kernel32, SetLastError=true)]
|
||||
internal static extern bool ReleaseSemaphore(SafeWaitHandle handle, int releaseCount, out int previousCount);
|
||||
|
||||
#endif //!SILVERLIGHT || FEATURE_NETCORE
|
||||
}
|
||||
}
|
||||
|
||||
@@ -40,7 +40,9 @@ namespace Microsoft.Win32.SafeHandles {
|
||||
|
||||
[DllImport(ExternDll.Kernel32, CharSet=System.Runtime.InteropServices.CharSet.Unicode)]
|
||||
[ResourceExposure(ResourceScope.None)]
|
||||
#if !FEATURE_WINDOWSPHONE
|
||||
[ReliabilityContract(Consistency.WillNotCorruptState, Cer.Success)]
|
||||
#endif // !FEATURE_WINDOWSPHONE
|
||||
private static extern bool FreeLibrary(IntPtr hModule);
|
||||
|
||||
override protected bool ReleaseHandle()
|
||||
|
||||
@@ -25,23 +25,22 @@ using System.Runtime.Versioning;
|
||||
|
||||
namespace Microsoft.Win32.SafeHandles {
|
||||
[SuppressUnmanagedCodeSecurityAttribute]
|
||||
internal sealed class SafeProcessHandle : SafeHandleZeroOrMinusOneIsInvalid
|
||||
public sealed class SafeProcessHandle : SafeHandleZeroOrMinusOneIsInvalid
|
||||
{
|
||||
internal static SafeProcessHandle InvalidHandle = new SafeProcessHandle(IntPtr.Zero);
|
||||
|
||||
// Note that OpenProcess returns 0 on failure
|
||||
|
||||
internal SafeProcessHandle() : base(true) {}
|
||||
internal SafeProcessHandle() : base(true) {}
|
||||
|
||||
internal SafeProcessHandle(IntPtr handle) : base (true) {
|
||||
internal SafeProcessHandle(IntPtr handle) : base(true) {
|
||||
SetHandle(handle);
|
||||
}
|
||||
|
||||
// Not currently called
|
||||
//[SecurityPermission(SecurityAction.LinkDemand, UnmanagedCode=true)]
|
||||
//internal SafeProcessHandle(IntPtr existingHandle, bool ownsHandle) : base(ownsHandle) {
|
||||
// SetHandle(existingHandle);
|
||||
//}
|
||||
[SecurityPermission(SecurityAction.LinkDemand, UnmanagedCode = true)]
|
||||
public SafeProcessHandle(IntPtr existingHandle, bool ownsHandle) : base(ownsHandle) {
|
||||
SetHandle(existingHandle);
|
||||
}
|
||||
|
||||
[DllImport(ExternDll.Kernel32, CharSet=System.Runtime.InteropServices.CharSet.Auto, SetLastError=true)]
|
||||
[ResourceExposure(ResourceScope.Machine)]
|
||||
|
||||
@@ -110,7 +110,7 @@ using System.Diagnostics.CodeAnalysis;
|
||||
[assembly: SuppressMessage("Microsoft.Usage", "CA2208:InstantiateArgumentExceptionsCorrectly", Scope="member", Target="System.ComponentModel.PropertyDescriptorCollection.System.Collections.IList.set_Item(System.Int32,System.Object):System.Void")]
|
||||
[assembly: SuppressMessage("Microsoft.Usage", "CA2208:InstantiateArgumentExceptionsCorrectly", Scope="member", Target="System.ComponentModel.PropertyDescriptorCollection.System.Collections.IDictionary.set_Item(System.Object,System.Object):System.Void")]
|
||||
|
||||
//
|
||||
// CONSIDER: In future releases we may want to provide a strongly typed implementation of IList.
|
||||
[assembly: SuppressMessage("Microsoft.Design", "CA1039:ListsAreStronglyTyped", Scope="type", Target="System.ComponentModel.Design.DesignerOptionService+DesignerOptionCollection")]
|
||||
[assembly: SuppressMessage("Microsoft.Design", "CA1039:ListsAreStronglyTyped", Scope="type", Target="System.ComponentModel.ListSortDescriptionCollection")]
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <copyright file="CodeBaseReferenceExpression.cs" company="Microsoft">
|
||||
//
|
||||
// <OWNER>[....]</OWNER>
|
||||
// <OWNER>petes</OWNER>
|
||||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
// </copyright>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <copyright file="CodeBinaryOperatorType.cs" company="Microsoft">
|
||||
//
|
||||
// <OWNER>[....]</OWNER>
|
||||
// <OWNER>petes</OWNER>
|
||||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
// </copyright>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <OWNER>[....]</OWNER>
|
||||
// <OWNER>petes</OWNER>
|
||||
//
|
||||
// <copyright file="CodeExpression.cs" company="Microsoft">
|
||||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <copyright file="CodeExpression.cs" company="Microsoft">
|
||||
//
|
||||
// <OWNER>[....]</OWNER>
|
||||
// <OWNER>petes</OWNER>
|
||||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
// </copyright>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <copyright file="CodePropertySetValueReferenceExpression.cs" company="Microsoft">
|
||||
//
|
||||
// <OWNER>[....]</OWNER>
|
||||
// <OWNER>petes</OWNER>
|
||||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
// </copyright>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <OWNER>[....]</OWNER>
|
||||
// <OWNER>petes</OWNER>
|
||||
//
|
||||
// <copyright file="FieldDirection.cs" company="Microsoft">
|
||||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <copyright file="CodeThisReferenceExpression.cs" company="Microsoft">
|
||||
//
|
||||
// <OWNER>[....]</OWNER>
|
||||
// <OWNER>petes</OWNER>
|
||||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
// </copyright>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <copyright file="FieldDirection.cs" company="Microsoft">
|
||||
//
|
||||
// <OWNER>[....]</OWNER>
|
||||
// <OWNER>petes</OWNER>
|
||||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
// </copyright>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <copyright file="MemberAttributes.cs" company="Microsoft">
|
||||
//
|
||||
// <OWNER>[....]</OWNER>
|
||||
// <OWNER>petes</OWNER>
|
||||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
// </copyright>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <copyright file="CodeParser.cs" company="Microsoft">
|
||||
//
|
||||
// <OWNER>[....]</OWNER>
|
||||
// <OWNER>petes</OWNER>
|
||||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
// </copyright>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <copyright file="GeneratorSupport.cs" company="Microsoft">
|
||||
//
|
||||
// <OWNER>[....]</OWNER>
|
||||
// <OWNER>petes</OWNER>
|
||||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
// </copyright>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <copyright file="ICodeCompiler.cs" company="Microsoft">
|
||||
//
|
||||
// <OWNER>[....]</OWNER>
|
||||
// <OWNER>petes</OWNER>
|
||||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
// </copyright>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <copyright file="ICodeGenerator.cs" company="Microsoft">
|
||||
//
|
||||
// <OWNER>[....]</OWNER>
|
||||
// <OWNER>petes</OWNER>
|
||||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
// </copyright>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <copyright file="ICodeParser.cs" company="Microsoft">
|
||||
//
|
||||
// <OWNER>[....]</OWNER>
|
||||
// <OWNER>petes</OWNER>
|
||||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
// </copyright>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <copyright file="LanguageOptions.cs" company="Microsoft">
|
||||
//
|
||||
// <OWNER>[....]</OWNER>
|
||||
// <OWNER>petes</OWNER>
|
||||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
// </copyright>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
**
|
||||
** Interface: ISet
|
||||
**
|
||||
** <OWNER>[....]</OWNER>
|
||||
** <OWNER>kimhamil</OWNER>
|
||||
**
|
||||
**
|
||||
** Purpose: Base interface for all generic sets.
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user