diff --git a/eng/Versions.props b/eng/Versions.props index 83714a95f89..6bec72a335e 100644 --- a/eng/Versions.props +++ b/eng/Versions.props @@ -16,7 +16,7 @@ 6.1.2 - 0.3.151 + 0.3.287 diff --git a/src/System.Drawing.Common/src/System/Drawing/Printing/PageSettings.cs b/src/System.Drawing.Common/src/System/Drawing/Printing/PageSettings.cs index 4437bb3fae1..da5c8bf0e7d 100644 --- a/src/System.Drawing.Common/src/System/Drawing/Printing/PageSettings.cs +++ b/src/System.Drawing.Common/src/System/Drawing/Printing/PageSettings.cs @@ -324,7 +324,7 @@ public void CopyToHdevmode(IntPtr hdevmode) { int result = PInvoke.DocumentProperties( HWND.Null, - HANDLE.Null, + global::Windows.Win32.Graphics.Printing.PRINTER_HANDLE.Null, n, devmode, devmode, diff --git a/src/System.Private.Windows.Core/src/Framework/Windows/Win32/IComIID.cs b/src/System.Private.Windows.Core/src/Framework/Windows/Win32/IComIID.cs deleted file mode 100644 index ae2a611c7ad..00000000000 --- a/src/System.Private.Windows.Core/src/Framework/Windows/Win32/IComIID.cs +++ /dev/null @@ -1,20 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. - -namespace Windows.Win32; - -/// -/// Common interface for COM interface wrapping structs. -/// -/// -/// -/// On .NET 6 and later, this is provided by CSWin32 as an abstract static. -/// -/// -internal interface IComIID -{ - /// - /// The identifier (IID) GUID for this interface. - /// - ref readonly Guid Guid { get; } -} diff --git a/src/System.Private.Windows.Core/src/Framework/Windows/Win32/System/Com/IAdviseSink.cs b/src/System.Private.Windows.Core/src/Framework/Windows/Win32/System/Com/IAdviseSink.cs deleted file mode 100644 index e404d72924b..00000000000 --- a/src/System.Private.Windows.Core/src/Framework/Windows/Win32/System/Com/IAdviseSink.cs +++ /dev/null @@ -1,9 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. - -namespace Windows.Win32.System.Com; - -internal partial struct IAdviseSink : IComIID -{ - readonly ref readonly Guid IComIID.Guid => ref Unsafe.AsRef(in IID_Guid); -} diff --git a/src/System.Private.Windows.Core/src/Framework/Windows/Win32/System/Com/IDataObject.cs b/src/System.Private.Windows.Core/src/Framework/Windows/Win32/System/Com/IDataObject.cs deleted file mode 100644 index 4e328766ee6..00000000000 --- a/src/System.Private.Windows.Core/src/Framework/Windows/Win32/System/Com/IDataObject.cs +++ /dev/null @@ -1,9 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. - -namespace Windows.Win32.System.Com; - -internal partial struct IDataObject : IComIID -{ - readonly ref readonly Guid IComIID.Guid => ref Unsafe.AsRef(in IID_Guid); -} diff --git a/src/System.Private.Windows.Core/src/Framework/Windows/Win32/System/Com/IEnumFORMATETC.cs b/src/System.Private.Windows.Core/src/Framework/Windows/Win32/System/Com/IEnumFORMATETC.cs deleted file mode 100644 index 180e6be0aa4..00000000000 --- a/src/System.Private.Windows.Core/src/Framework/Windows/Win32/System/Com/IEnumFORMATETC.cs +++ /dev/null @@ -1,9 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. - -namespace Windows.Win32.System.Com; - -internal partial struct IEnumFORMATETC : IComIID -{ - readonly ref readonly Guid IComIID.Guid => ref Unsafe.AsRef(in IID_Guid); -} diff --git a/src/System.Private.Windows.Core/src/Framework/Windows/Win32/System/Com/IEnumSTATDATA.cs b/src/System.Private.Windows.Core/src/Framework/Windows/Win32/System/Com/IEnumSTATDATA.cs deleted file mode 100644 index 403e7637467..00000000000 --- a/src/System.Private.Windows.Core/src/Framework/Windows/Win32/System/Com/IEnumSTATDATA.cs +++ /dev/null @@ -1,9 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. - -namespace Windows.Win32.System.Com; - -internal partial struct IEnumSTATDATA : IComIID -{ - readonly ref readonly Guid IComIID.Guid => ref Unsafe.AsRef(in IID_Guid); -} diff --git a/src/System.Private.Windows.Core/src/Framework/Windows/Win32/System/Com/IGlobalInterfaceTable.cs b/src/System.Private.Windows.Core/src/Framework/Windows/Win32/System/Com/IGlobalInterfaceTable.cs deleted file mode 100644 index 50c5ffcb0ff..00000000000 --- a/src/System.Private.Windows.Core/src/Framework/Windows/Win32/System/Com/IGlobalInterfaceTable.cs +++ /dev/null @@ -1,9 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. - -namespace Windows.Win32.System.Com; - -internal partial struct IGlobalInterfaceTable : IComIID -{ - readonly ref readonly Guid IComIID.Guid => ref Unsafe.AsRef(in IID_Guid); -} diff --git a/src/System.Private.Windows.Core/src/Framework/Windows/Win32/System/Com/IStream.cs b/src/System.Private.Windows.Core/src/Framework/Windows/Win32/System/Com/IStream.cs deleted file mode 100644 index 596fd686acb..00000000000 --- a/src/System.Private.Windows.Core/src/Framework/Windows/Win32/System/Com/IStream.cs +++ /dev/null @@ -1,9 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. - -namespace Windows.Win32.System.Com; - -internal partial struct IStream : IComIID -{ - readonly ref readonly Guid IComIID.Guid => ref Unsafe.AsRef(in IID_Guid); -} diff --git a/src/System.Private.Windows.Core/src/Framework/Windows/Win32/System/Com/ITypeInfo.cs b/src/System.Private.Windows.Core/src/Framework/Windows/Win32/System/Com/ITypeInfo.cs deleted file mode 100644 index dd182c58599..00000000000 --- a/src/System.Private.Windows.Core/src/Framework/Windows/Win32/System/Com/ITypeInfo.cs +++ /dev/null @@ -1,9 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. - -namespace Windows.Win32.System.Com; - -internal partial struct ITypeInfo : IComIID -{ - readonly ref readonly Guid IComIID.Guid => ref Unsafe.AsRef(in IID_Guid); -} diff --git a/src/System.Private.Windows.Core/src/Framework/Windows/Win32/System/Com/ITypeLib.cs b/src/System.Private.Windows.Core/src/Framework/Windows/Win32/System/Com/ITypeLib.cs deleted file mode 100644 index 3d46bc1a848..00000000000 --- a/src/System.Private.Windows.Core/src/Framework/Windows/Win32/System/Com/ITypeLib.cs +++ /dev/null @@ -1,9 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. - -namespace Windows.Win32.System.Com; - -internal partial struct ITypeLib : IComIID -{ - readonly ref readonly Guid IComIID.Guid => ref Unsafe.AsRef(in IID_Guid); -} diff --git a/src/System.Private.Windows.Core/src/Framework/Windows/Win32/System/Com/IUnknown.cs b/src/System.Private.Windows.Core/src/Framework/Windows/Win32/System/Com/IUnknown.cs deleted file mode 100644 index ce6d2f8b2d0..00000000000 --- a/src/System.Private.Windows.Core/src/Framework/Windows/Win32/System/Com/IUnknown.cs +++ /dev/null @@ -1,9 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. - -namespace Windows.Win32.System.Com; - -internal partial struct IUnknown : IComIID -{ - readonly ref readonly Guid IComIID.Guid => ref Unsafe.AsRef(in IID_Guid); -} diff --git a/src/System.Private.Windows.Core/src/Framework/Windows/Win32/System/Ole/IDropTarget.cs b/src/System.Private.Windows.Core/src/Framework/Windows/Win32/System/Ole/IDropTarget.cs deleted file mode 100644 index e83ec0be325..00000000000 --- a/src/System.Private.Windows.Core/src/Framework/Windows/Win32/System/Ole/IDropTarget.cs +++ /dev/null @@ -1,9 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. - -namespace Windows.Win32.System.Ole; - -internal partial struct IDropTarget : IComIID -{ - readonly ref readonly Guid IComIID.Guid => ref Unsafe.AsRef(in IID_Guid); -} diff --git a/src/System.Private.Windows.Core/src/Framework/Windows/Win32/UI/Shell/IDragSourceHelper2.cs b/src/System.Private.Windows.Core/src/Framework/Windows/Win32/UI/Shell/IDragSourceHelper2.cs deleted file mode 100644 index f26f13366d3..00000000000 --- a/src/System.Private.Windows.Core/src/Framework/Windows/Win32/UI/Shell/IDragSourceHelper2.cs +++ /dev/null @@ -1,9 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. - -namespace Windows.Win32.UI.Shell; - -internal partial struct IDragSourceHelper2 : IComIID -{ - public readonly ref readonly Guid Guid => ref Unsafe.AsRef(in IID_Guid); -} diff --git a/src/System.Private.Windows.Core/src/Framework/Windows/Win32/UI/Shell/IDropTargetHelper.cs b/src/System.Private.Windows.Core/src/Framework/Windows/Win32/UI/Shell/IDropTargetHelper.cs deleted file mode 100644 index 705a0ae874c..00000000000 --- a/src/System.Private.Windows.Core/src/Framework/Windows/Win32/UI/Shell/IDropTargetHelper.cs +++ /dev/null @@ -1,9 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. - -namespace Windows.Win32.UI.Shell; - -internal partial struct IDropTargetHelper : IComIID -{ - public readonly ref readonly Guid Guid => ref Unsafe.AsRef(in IID_Guid); -} diff --git a/src/System.Private.Windows.Core/src/Microsoft.Private.Windows.Core.csproj b/src/System.Private.Windows.Core/src/Microsoft.Private.Windows.Core.csproj index 8a9e6ecc3b8..028ddf0be71 100644 --- a/src/System.Private.Windows.Core/src/Microsoft.Private.Windows.Core.csproj +++ b/src/System.Private.Windows.Core/src/Microsoft.Private.Windows.Core.csproj @@ -15,9 +15,10 @@ - $(NoWarn);CS3016;SYSLIB5005 + $(NoWarn);CS3016;CS3021;SYSLIB5005 - $(NoWarn);CS3016;SYSLIB5005 + $(NoWarn);CS3016;CS3021;SYSLIB5005 - $(NoWarn);CS3016 + $(NoWarn);CS3016;CS3019