Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Restructure DataObject #12792

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions src/System.Private.Windows.Core/src/GlobalSuppressions.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.

[assembly: SuppressMessage("Usage", "CA2201:Do not raise reserved exception types", Justification = "Compat", Scope = "member", Target = "~M:System.Private.Windows.Core.OLE.DesktopDataObject.Composition.NativeToDesktopAdapter.ReadByteStreamFromHGLOBAL(Windows.Win32.Foundation.HGLOBAL,System.Boolean@)~System.IO.MemoryStream")]
[assembly: SuppressMessage("Usage", "CA2201:Do not raise reserved exception types", Justification = "Compat", Scope = "member", Target = "~M:System.Private.Windows.Core.OLE.DesktopDataObject.Composition.NativeToRuntimeAdapter.System#Runtime#InteropServices#ComTypes#IDataObject#EnumFormatEtc(System.Runtime.InteropServices.ComTypes.DATADIR)~System.Runtime.InteropServices.ComTypes.IEnumFORMATETC")]
[assembly: SuppressMessage("Usage", "CA2201:Do not raise reserved exception types", Justification = "Compat", Scope = "member", Target = "~M:System.Private.Windows.Core.OLE.DesktopClipboard.SetDataObject(System.Object,System.Boolean,System.Int32,System.Int32)")]
[assembly: SuppressMessage("Usage", "CA2201:Do not raise reserved exception types", Justification = "Compat", Scope = "member", Target = "~M:System.Private.Windows.Core.OLE.DesktopClipboard.GetDataObject~System.Private.Windows.Core.OLE.IDataObjectDesktop")]
17 changes: 17 additions & 0 deletions src/System.Private.Windows.Core/src/NativeMethods.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,15 @@ BeginPaint
BI_COMPRESSION
BitBlt
BOOL
CFSTR_DROPDESCRIPTION
CFSTR_INDRAGLOOP
CLIPBRD_E_BAD_DATA
CLR_*
CallWindowProc
CoCreateInstance
CombineRgn
CopyImage
CP_ACP
CreateBitmap
CreateCompatibleBitmap
CreateCompatibleDC
Expand Down Expand Up @@ -50,7 +53,11 @@ DRAGDROP_S_CANCEL
DRAGDROP_S_DROP
DRAGDROP_S_USEDEFAULTCURSORS
DrawIconEx
DragQueryFile
DROPDESCRIPTION
DROPFILES
DV_E_*
DVASPECT
E_ABORT
E_ACCESSDENIED
E_FAIL
Expand Down Expand Up @@ -78,6 +85,7 @@ GetWindowText
GetWindowTextLength
GET_CLASS_LONG_INDEX
GetClientRect
GetClipboardFormatName
GetClipRgn
GetDC
GetDCEx
Expand Down Expand Up @@ -119,7 +127,9 @@ HPROPSHEETPAGE
HRGN
HWND
HWND_*
IDataObject
IDI_*
IDragSourceHelper2
IEnumUnknown
IGlobalInterfaceTable
ImageLockMode
Expand Down Expand Up @@ -162,6 +172,10 @@ OLE_E_INVALIDRECT
OLE_E_NOCONNECTION
OLE_E_PROMPTSAVECANCELLED
OleCreatePictureIndirect
OleDuplicateData
OleFlushClipboard
OleGetClipboard
OleSetClipboard
PeekMessage
PostMessage
POINTS
Expand All @@ -171,7 +185,9 @@ PWSTR
RealizePalette
RECT
REGDB_E_CLASSNOTREG
RegisterClipboardFormat
ReleaseDC
ReleaseStgMedium
RestoreDC
RPC_E_CHANGED_MODE
RPC_E_DISCONNECTED
Expand Down Expand Up @@ -215,6 +231,7 @@ SystemParametersInfoForDpi
TYPE_E_BADMODULEKIND
UNICODE_STRING_MAX_CHARS
VIEW_E_DRAW
WideCharToMultiByte
WIN32_ERROR
WINCODEC_ERR_*
WINDOW_LONG_PTR_INDEX
Expand Down
Loading
Loading