1383 instantiations of DllImport
ComDisabled.Tests (1)
csc (3)
Infrastructure.Common (5)
InteractiveHost32 (2)
InteractiveHost64 (2)
Microsoft.AspNetCore.InternalTesting (1)
Microsoft.Build.Framework (33)
NativeMethods.cs (32)
965[DllImport("kernel32.dll", SetLastError = true)]
969[DllImport("kernel32.dll", SetLastError = true)]
973[DllImport("kernel32.dll", SetLastError = true)]
1665[DllImport("libc", SetLastError = true)]
1669[DllImport("libc", SetLastError = true)]
1678[DllImport(kernel32Dll)]
1682[DllImport("kernel32.dll", SetLastError = true, CharSet = CharSet.Unicode)]
1687[DllImport("kernel32.dll", PreserveSig = true, SetLastError = true)]
1692[DllImport("kernel32.dll", PreserveSig = true, BestFitMapping = false, ThrowOnUnmappableChar = true, CharSet = CharSet.Ansi, SetLastError = true)]
1696[DllImport("kernel32.dll", CharSet = CharSet.Unicode, PreserveSig = true, SetLastError = true)]
1706[DllImport(kernel32Dll, SetLastError = true, CharSet = CharSet.Unicode)]
1710[DllImport("kernel32.dll")]
1714[DllImport("kernel32.dll")]
1718[DllImport("kernel32.dll")]
1721[DllImport("kernel32.dll")]
1725[DllImport("kernel32.dll", SetLastError = true, CharSet = CharSet.Unicode)]
1730[DllImport("kernel32.dll", SetLastError = true, CharSet = CharSet.Unicode, EntryPoint = "SetCurrentDirectory")]
1753[DllImport("kernel32.dll", SetLastError = true, CharSet = CharSet.Unicode)]
1757[DllImport("KERNEL32.DLL")]
1761[DllImport("NTDLL.DLL")]
1766[DllImport("kernel32.dll", CharSet = CharSet.Auto, SetLastError = true)]
1770[DllImport("kernel32.dll", CharSet = CharSet.Unicode, BestFitMapping = false)]
1774[DllImport("kernel32.dll", CharSet = CharSet.Unicode, BestFitMapping = false)]
1778[DllImport("kernel32.dll", CharSet = CharSet.Auto, SetLastError = true)]
1782[DllImport("kernel32.dll", CharSet = CharSet.Auto, SetLastError = true)]
1791[DllImport("ole32.dll")]
1801[DllImport("kernel32.dll", CharSet = CharSet.Auto, CallingConvention = CallingConvention.StdCall,
1813[DllImport("kernel32.dll", SetLastError = true)]
1821[DllImport("kernel32.dll", SetLastError = true)]
1826[DllImport("kernel32.dll", SetLastError = true)]
1830[DllImport("kernel32.dll", SetLastError = true, CharSet = CharSet.Unicode)]
1835[DllImport("libc", SetLastError = true)]
Microsoft.Build.Tasks.CodeAnalysis (3)
Microsoft.Build.Tasks.CodeAnalysis.Sdk (3)
Microsoft.Build.UnGAC (1)
Microsoft.CodeAnalysis (14)
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (2)
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (2)
Microsoft.CodeAnalysis.EditorFeatures (2)
Microsoft.CodeAnalysis.Features (2)
Microsoft.CodeAnalysis.LanguageServer (2)
Microsoft.CodeAnalysis.Remote.ServiceHub (1)
Microsoft.CodeAnalysis.Remote.Workspaces (1)
Microsoft.CodeAnalysis.Scripting (4)
Microsoft.CodeAnalysis.Test.Utilities (5)
Microsoft.CodeAnalysis.UnitTests (4)
Microsoft.CodeAnalysis.Workspaces.MSBuild (3)
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (6)
Microsoft.Data.Analysis.Tests (1)
Microsoft.DotNet.RemoteExecutor (2)
Microsoft.DotNet.SignCheckLibrary (8)
Microsoft.Extensions.Diagnostics.ResourceMonitoring (9)
Microsoft.ML.Core (1)
Microsoft.ML.CpuMath (31)
Thunk.cs (28)
16[DllImport(NativePath), SuppressUnmanagedCodeSecurity]
19[DllImport(NativePath), SuppressUnmanagedCodeSecurity]
26[DllImport(NativePath), SuppressUnmanagedCodeSecurity]
29[DllImport(NativePath), SuppressUnmanagedCodeSecurity]
32[DllImport(NativePath), SuppressUnmanagedCodeSecurity]
35[DllImport(NativePath), SuppressUnmanagedCodeSecurity]
38[DllImport(NativePath), SuppressUnmanagedCodeSecurity]
41[DllImport(NativePath), SuppressUnmanagedCodeSecurity]
44[DllImport(NativePath), SuppressUnmanagedCodeSecurity]
47[DllImport(NativePath), SuppressUnmanagedCodeSecurity]
50[DllImport(NativePath), SuppressUnmanagedCodeSecurity]
53[DllImport(NativePath), SuppressUnmanagedCodeSecurity]
56[DllImport(NativePath), SuppressUnmanagedCodeSecurity]
59[DllImport(NativePath), SuppressUnmanagedCodeSecurity]
62[DllImport(NativePath), SuppressUnmanagedCodeSecurity]
65[DllImport(NativePath), SuppressUnmanagedCodeSecurity]
68[DllImport(NativePath), SuppressUnmanagedCodeSecurity]
71[DllImport(NativePath), SuppressUnmanagedCodeSecurity]
74[DllImport(NativePath), SuppressUnmanagedCodeSecurity]
77[DllImport(NativePath), SuppressUnmanagedCodeSecurity]
80[DllImport(NativePath), SuppressUnmanagedCodeSecurity]
83[DllImport(NativePath), SuppressUnmanagedCodeSecurity]
86[DllImport(NativePath), SuppressUnmanagedCodeSecurity]
89[DllImport(NativePath), SuppressUnmanagedCodeSecurity]
92[DllImport(NativePath), SuppressUnmanagedCodeSecurity]
95[DllImport(NativePath), SuppressUnmanagedCodeSecurity]
98[DllImport(NativePath), SuppressUnmanagedCodeSecurity]
104[DllImport(NativePath), SuppressUnmanagedCodeSecurity]
Microsoft.ML.FastTree (14)
Dataset\SegmentIntArray.cs (7)
520[DllImport(NativePath, CharSet = CharSet.Ansi), SuppressUnmanagedCodeSecurity]
523[DllImport(NativePath, CharSet = CharSet.Ansi), SuppressUnmanagedCodeSecurity]
526[DllImport(NativePath, CharSet = CharSet.Ansi), SuppressUnmanagedCodeSecurity]
529[DllImport(NativePath, CharSet = CharSet.Ansi), SuppressUnmanagedCodeSecurity]
532[DllImport(NativePath, CharSet = CharSet.Ansi), SuppressUnmanagedCodeSecurity]
535[DllImport(NativePath)]
542[DllImport(NativePath)]
Microsoft.ML.LightGbm (22)
WrappedLightGbmInterface.cs (22)
40[DllImport(DllName, EntryPoint = "LGBM_AllocateArray", CallingConvention = CallingConvention.StdCall)]
46[DllImport(DllName, EntryPoint = "LGBM_CopyToArray", CallingConvention = CallingConvention.StdCall)]
54[DllImport(DllName, EntryPoint = "LGBM_FreeArray", CallingConvention = CallingConvention.StdCall)]
63[DllImport(DllName, EntryPoint = "LGBM_GetLastError", CallingConvention = CallingConvention.StdCall)]
84[DllImport(DllName, EntryPoint = "LGBM_DatasetCreateFromSampledColumn", CallingConvention = CallingConvention.StdCall)]
95[DllImport(DllName, EntryPoint = "LGBM_DatasetCreateByReference", CallingConvention = CallingConvention.StdCall)]
100[DllImport(DllName, EntryPoint = "LGBM_DatasetPushRows", CallingConvention = CallingConvention.StdCall)]
117[DllImport(DllName, EntryPoint = "LGBM_DatasetPushRowsByCSR", CallingConvention = CallingConvention.StdCall)]
144[DllImport(DllName, EntryPoint = "LGBM_DatasetFree", CallingConvention = CallingConvention.StdCall)]
147[DllImport(DllName, EntryPoint = "LGBM_DatasetSetField", CallingConvention = CallingConvention.StdCall)]
155[DllImport(DllName, EntryPoint = "LGBM_DatasetGetNumData", CallingConvention = CallingConvention.StdCall)]
158[DllImport(DllName, EntryPoint = "LGBM_DatasetGetNumFeature", CallingConvention = CallingConvention.StdCall)]
179[DllImport(DllName, EntryPoint = "LGBM_BoosterCreate", CallingConvention = CallingConvention.StdCall)]
184[DllImport(DllName, EntryPoint = "LGBM_BoosterFree", CallingConvention = CallingConvention.StdCall)]
187[DllImport(DllName, EntryPoint = "LGBM_BoosterAddValidData", CallingConvention = CallingConvention.StdCall)]
190[DllImport(DllName, EntryPoint = "LGBM_BoosterSaveModelToString", CallingConvention = CallingConvention.StdCall)]
203[DllImport(DllName, EntryPoint = "LGBM_BoosterUpdateOneIter", CallingConvention = CallingConvention.StdCall)]
206[DllImport(DllName, EntryPoint = "LGBM_BoosterGetEvalCounts", CallingConvention = CallingConvention.StdCall)]
209[DllImport(DllName, EntryPoint = "LGBM_BoosterGetEval", CallingConvention = CallingConvention.StdCall)]
216[DllImport(DllName, EntryPoint = "LGBM_BoosterPredictForMat", CallingConvention = CallingConvention.StdCall)]
223[DllImport(DllName, EntryPoint = "LGBM_NetworkInitWithFunctions", CallingConvention = CallingConvention.StdCall)]
226[DllImport(DllName, EntryPoint = "LGBM_NetworkFree", CallingConvention = CallingConvention.StdCall)]
Microsoft.ML.Mkl.Components (12)
OlsLinearRegression.cs (5)
186[DllImport(OneDalLibPath, EntryPoint = "ridgeRegressionOnlineCompute")]
190[DllImport(OneDalLibPath, EntryPoint = "ridgeRegressionOnlineFinalize")]
552[DllImport(MklPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LAPACKE_dpptrf"), SuppressUnmanagedCodeSecurity]
587[DllImport(MklPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LAPACKE_dpptrs"), SuppressUnmanagedCodeSecurity]
634[DllImport(MklPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "LAPACKE_dpptri"), SuppressUnmanagedCodeSecurity]
Microsoft.ML.Recommender (5)
Microsoft.ML.StandardTrainers (1)
Microsoft.ML.TestFramework (1)
Microsoft.ML.TestFrameworkCommon (8)
Microsoft.ML.TimeSeries (17)
EigenUtils.cs (8)
474[DllImport(MklPath, EntryPoint = "LAPACKE_shseqr", CallingConvention = CallingConvention.Cdecl), SuppressUnmanagedCodeSecurity]
479[DllImport(MklPath, EntryPoint = "LAPACKE_dhseqr", CallingConvention = CallingConvention.Cdecl), SuppressUnmanagedCodeSecurity]
484[DllImport(MklPath, EntryPoint = "LAPACKE_ssytrd", CallingConvention = CallingConvention.Cdecl), SuppressUnmanagedCodeSecurity]
489[DllImport(MklPath, EntryPoint = "LAPACKE_dsytrd", CallingConvention = CallingConvention.Cdecl), SuppressUnmanagedCodeSecurity]
494[DllImport(MklPath, EntryPoint = "LAPACKE_ssteqr", CallingConvention = CallingConvention.Cdecl), SuppressUnmanagedCodeSecurity]
499[DllImport(MklPath, EntryPoint = "LAPACKE_dsteqr", CallingConvention = CallingConvention.Cdecl), SuppressUnmanagedCodeSecurity]
504[DllImport(MklPath, EntryPoint = "LAPACKE_sorgtr", CallingConvention = CallingConvention.Cdecl), SuppressUnmanagedCodeSecurity]
508[DllImport(MklPath, EntryPoint = "LAPACKE_dorgtr", CallingConvention = CallingConvention.Cdecl), SuppressUnmanagedCodeSecurity]
FftUtils.cs (9)
170[DllImport(DllProxyName, EntryPoint = "MKLDftiCreateDescriptor", CharSet = CharSet.Auto), SuppressUnmanagedCodeSecurity]
174[DllImport(MklPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "DftiCommitDescriptor"), SuppressUnmanagedCodeSecurity]
178[DllImport(MklPath, CallingConvention = CallingConvention.Cdecl, EntryPoint = "DftiFreeDescriptor"), SuppressUnmanagedCodeSecurity]
182[DllImport(DllProxyName, EntryPoint = "MKLDftiSetValue", CharSet = CharSet.Auto), SuppressUnmanagedCodeSecurity]
186[DllImport(DllProxyName, EntryPoint = "MKLDftiComputeForward", CharSet = CharSet.Auto), SuppressUnmanagedCodeSecurity]
190[DllImport(DllProxyName, EntryPoint = "MKLDftiComputeBackward", CharSet = CharSet.Auto), SuppressUnmanagedCodeSecurity]
194[DllImport(DllProxyName, EntryPoint = "MKLDftiComputeForward"), SuppressUnmanagedCodeSecurity]
198[DllImport(DllProxyName, EntryPoint = "MKLDftiComputeBackward"), SuppressUnmanagedCodeSecurity]
202[DllImport(MklPath, EntryPoint = "DftiErrorMessage", CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Auto), SuppressUnmanagedCodeSecurity]
Microsoft.ML.Transforms (20)
Microsoft.ML.Vision (4)
Microsoft.VisualStudio.LanguageServices (12)
Utilities\ClipboardHelpers.cs (4)
24[DllImport("ole32.dll", ExactSpelling = true, CharSet = CharSet.Unicode)]
27[DllImport("ole32.dll", ExactSpelling = true, CharSet = CharSet.Auto)]
30[DllImport("kernel32.dll", ExactSpelling = true, CharSet = CharSet.Auto, SetLastError = true)]
33[DllImport("kernel32.dll", ExactSpelling = true, CharSet = CharSet.Auto, SetLastError = true)]
Microsoft.VisualStudio.LanguageServices.Implementation (1)
PrepareTests (2)
PresentationCore (328)
MS\Internal\TextFormatting\LineServices.cs (27)
1407[DllImport(DllImport.PresentationNative, EntryPoint="LoCreateContext")]
1414[DllImport(DllImport.PresentationNative, EntryPoint="LoDestroyContext")]
1419[DllImport(DllImport.PresentationNative, EntryPoint="LoCreateLine")]
1433[DllImport(DllImport.PresentationNative, EntryPoint="LoDisposeLine")]
1440[DllImport(DllImport.PresentationNative, EntryPoint="LoAcquireBreakRecord")]
1446[DllImport(DllImport.PresentationNative, EntryPoint="LoDisposeBreakRecord")]
1453[DllImport(DllImport.PresentationNative, EntryPoint="LoCloneBreakRecord")]
1459[DllImport(DllImport.PresentationNative, EntryPoint = "LoRelievePenaltyResource")]
1464[DllImport(DllImport.PresentationNative, EntryPoint="LoSetBreaking")]
1470[DllImport(DllImport.PresentationNative, EntryPoint="LoSetDoc")]
1478[DllImport(DllImport.PresentationNative, EntryPoint="LoSetTabs")]
1486[DllImport(DllImport.PresentationNative, EntryPoint="LoDisplayLine")]
1494[DllImport(DllImport.PresentationNative, EntryPoint="LoEnumLine")]
1502[DllImport(DllImport.PresentationNative, EntryPoint="LoQueryLineCpPpoint")]
1512[DllImport(DllImport.PresentationNative, EntryPoint="LoQueryLinePointPcp")]
1522[DllImport(DllImport.PresentationNative, EntryPoint="LoCreateBreaks")]
1533[DllImport(DllImport.PresentationNative, EntryPoint="LoCreateParaBreakingSession")]
1544[DllImport(DllImport.PresentationNative, EntryPoint="LoDisposeParaBreakingSession")]
1551[DllImport(DllImport.PresentationNative, EntryPoint="LocbkGetObjectHandlerInfo")]
1564[DllImport(DllImport.PresentationNative, EntryPoint = "LoGetEscString")]
1569[DllImport(DllImport.PresentationNative, EntryPoint = "LoAcquirePenaltyModule")]
1575[DllImport(DllImport.PresentationNative, EntryPoint = "LoDisposePenaltyModule")]
1580[DllImport(DllImport.PresentationNative, EntryPoint = "LoGetPenaltyModuleInternalHandle")]
1589[DllImport(DllImport.PresentationNative, EntryPoint = "CreateTextAnalysisSink")]
1596[DllImport(DllImport.PresentationNative, EntryPoint = "GetScriptAnalysisList")]
1603[DllImport(DllImport.PresentationNative, EntryPoint = "GetNumberSubstitutionList")]
1609[DllImport(DllImport.PresentationNative, EntryPoint = "CreateTextAnalysisSource")]
MS\Win32\UnsafeNativeMethodsPenimc.cs (11)
81[DllImport(ExternDll.Penimc, CharSet=CharSet.Auto)]
488[DllImport(ExternDll.Penimc, CharSet=CharSet.Auto)]
512[DllImport(ExternDll.Penimc, CharSet=CharSet.Auto)]
537[DllImport(ExternDll.Penimc, CharSet=CharSet.Auto)]
554[DllImport(ExternDll.Penimc, CharSet=CharSet.Auto)]
563[DllImport(ExternDll.Penimc, CharSet=CharSet.Auto)]
572[DllImport(ExternDll.Penimc, CharSet=CharSet.Auto)]
581[DllImport(ExternDll.Penimc, CharSet = CharSet.Auto)]
590[DllImport(ExternDll.Penimc, CharSet = CharSet.Auto)]
603[DllImport(ExternDll.Ole32, ExactSpelling = true, PreserveSig = false)]
624[DllImport(ExternDll.Kernel32, ExactSpelling = true)]
MS\Win32\UnsafeNativeMethodsPointer.cs (17)
521[DllImport(DllImport.User32, EntryPoint = "GetPointerDevices", SetLastError = true)]
527[DllImport(DllImport.User32, EntryPoint = "GetPointerDeviceCursors", SetLastError = true)]
533[DllImport(DllImport.User32, EntryPoint = "GetPointerInfo", SetLastError = true)]
539[DllImport(DllImport.User32, EntryPoint = "GetPointerInfoHistory", SetLastError = true)]
545[DllImport(DllImport.User32, EntryPoint = "GetPointerDeviceProperties", SetLastError = true)]
551[DllImport(DllImport.User32, EntryPoint = "GetPointerDeviceRects", SetLastError = true)]
557[DllImport(DllImport.User32, EntryPoint = "GetPointerCursorId", SetLastError = true)]
563[DllImport(DllImport.User32, EntryPoint = "GetPointerPenInfo", SetLastError = true)]
569[DllImport(DllImport.User32, EntryPoint = "GetPointerTouchInfo", SetLastError = true)]
575[DllImport(DllImport.User32, EntryPoint = "GetRawPointerDeviceData", SetLastError = true)]
593[DllImport(DllImport.NInput, EntryPoint = "CreateInteractionContext", SetLastError = true)]
600[DllImport(DllImport.NInput, EntryPoint = "DestroyInteractionContext", SetLastError = true)]
609[DllImport(DllImport.NInput, EntryPoint = "SetInteractionConfigurationInteractionContext", SetLastError = true)]
618[DllImport(DllImport.NInput, EntryPoint = "RegisterOutputCallbackInteractionContext", SetLastError = true, PreserveSig = false)]
627[DllImport(DllImport.NInput, EntryPoint = "SetPropertyInteractionContext", SetLastError = true)]
636[DllImport(DllImport.NInput, EntryPoint = "BufferPointerPacketsInteractionContext", SetLastError = true, PreserveSig = false)]
643[DllImport(DllImport.NInput, EntryPoint = "ProcessBufferedPacketsInteractionContext", SetLastError = true, PreserveSig = false)]
MS\Win32\UnsafeNativeMethodsTablet.cs (14)
16[DllImport(ExternDll.Mshwgst, CallingConvention = CallingConvention.Winapi)]
19[DllImport(ExternDll.Mshwgst, CallingConvention = CallingConvention.Winapi)]
22[DllImport(ExternDll.Mshwgst, CallingConvention = CallingConvention.Winapi)]
25[DllImport(ExternDll.Mshwgst, CallingConvention = CallingConvention.Winapi)]
28[DllImport(ExternDll.Mshwgst, CallingConvention = CallingConvention.Winapi)]
31[DllImport(ExternDll.Mshwgst, CallingConvention = CallingConvention.Winapi)]
34[DllImport(ExternDll.Mshwgst, CallingConvention = CallingConvention.Winapi)]
37[DllImport(ExternDll.Mshwgst, CallingConvention = CallingConvention.Winapi)]
40[DllImport(ExternDll.Mshwgst, CallingConvention = CallingConvention.Winapi)]
43[DllImport(ExternDll.Mshwgst, CallingConvention = CallingConvention.Winapi)]
46[DllImport(ExternDll.Mshwgst, CallingConvention = CallingConvention.Winapi, CharSet = CharSet.Unicode)]
49[DllImport(ExternDll.Mshwgst, CallingConvention = CallingConvention.Winapi)]
52[DllImport(ExternDll.Mshwgst, CallingConvention = CallingConvention.Winapi)]
55[DllImport(ExternDll.Mshwgst, CallingConvention = CallingConvention.Winapi)]
src\Microsoft.DotNet.Wpf\src\Common\Graphics\exports.cs (19)
112[DllImport(DllImport.MilCore)]
119[DllImport(DllImport.MilCore)]
127[DllImport(DllImport.MilCore, EntryPoint = "MilConnection_CreateChannel")]//CASRemoval:
133[DllImport(DllImport.MilCore, EntryPoint = "MilConnection_DestroyChannel")]//CASRemoval:
137[DllImport(DllImport.MilCore, EntryPoint = "MilChannel_CloseBatch")]//CASRemoval:
141[DllImport(DllImport.MilCore, EntryPoint = "MilChannel_CommitChannel")]//CASRemoval:
145[DllImport(DllImport.MilCore)]//CASRemoval:
149[DllImport(DllImport.MilCore, EntryPoint = "MilChannel_GetMarshalType")]
152[DllImport (DllImport.MilCore, EntryPoint = "MilResource_SendCommand")]//CASRemoval:
159[DllImport (DllImport.MilCore, EntryPoint = "MilChannel_BeginCommand")]//CASRemoval:
167[DllImport (DllImport.MilCore, EntryPoint = "MilChannel_AppendCommandData")]//CASRemoval:
174[DllImport (DllImport.MilCore, EntryPoint = "MilChannel_EndCommand")]//CASRemoval:
178[DllImport (DllImport.MilCore, EntryPoint = "MilResource_SendCommandMedia")]//CASRemoval:
186[DllImport (DllImport.MilCore, EntryPoint = "MilResource_SendCommandBitmapSource")]//CASRemoval:
192[DllImport(DllImport.MilCore, EntryPoint = "MilResource_ReleaseOnChannel")]//CASRemoval:
199[DllImport(DllImport.MilCore)]
206[DllImport(DllImport.MilCore)]
216[DllImport(DllImport.MilCore)]
224[DllImport(DllImport.MilCore, EntryPoint = "MilResource_GetRefCountOnChannel")]
src\Microsoft.DotNet.Wpf\src\Common\Graphics\wgx_exports.cs (28)
15[DllImport(DllImport.MilCore, EntryPoint="MILRenderTargetBitmapGetBitmap")]//CASRemoval:
21[DllImport(DllImport.MilCore, EntryPoint = "MILRenderTargetBitmapClear")]
33[DllImport(DllImport.MilCore, EntryPoint="MILMediaOpen")]
39[DllImport(DllImport.MilCore, EntryPoint="MILMediaStop")]//CASRemoval:
44[DllImport(DllImport.MilCore, EntryPoint="MILMediaClose")]//CASRemoval:
49[DllImport(DllImport.MilCore, EntryPoint="MILMediaGetPosition")]//CASRemoval:
54[DllImport(DllImport.MilCore, EntryPoint="MILMediaSetPosition")]//CASRemoval:
59[DllImport(DllImport.MilCore, EntryPoint="MILMediaSetVolume")]//CASRemoval:
65[DllImport(DllImport.MilCore, EntryPoint="MILMediaSetBalance")]
71[DllImport(DllImport.MilCore, EntryPoint="MILMediaSetIsScrubbingEnabled")]
77[DllImport(DllImport.MilCore, EntryPoint="MILMediaIsBuffering")]//CASRemoval:
83[DllImport(DllImport.MilCore, EntryPoint="MILMediaCanPause")]//CASRemoval:
89[DllImport(DllImport.MilCore, EntryPoint="MILMediaGetDownloadProgress")]//CASRemoval:
95[DllImport(DllImport.MilCore, EntryPoint="MILMediaGetBufferingProgress")]//CASRemoval:
101[DllImport(DllImport.MilCore, EntryPoint="MILMediaSetRate")]//CASRemoval:
107[DllImport(DllImport.MilCore, EntryPoint="MILMediaHasVideo")]//CASRemoval:
113[DllImport(DllImport.MilCore, EntryPoint="MILMediaHasAudio")]//CASRemoval:
119[DllImport(DllImport.MilCore, EntryPoint="MILMediaGetNaturalHeight")]//CASRemoval:
125[DllImport(DllImport.MilCore, EntryPoint="MILMediaGetNaturalWidth")]//CASRemoval:
131[DllImport(DllImport.MilCore, EntryPoint="MILMediaGetMediaLength")]//CASRemoval:
137[DllImport(DllImport.MilCore, EntryPoint="MILMediaNeedUIFrameUpdate")]
142[DllImport(DllImport.MilCore, EntryPoint="MILMediaShutdown")]//CASRemoval:
147[DllImport(DllImport.MilCore, EntryPoint = "MILMediaProcessExitHandler")]
157[DllImport(DllImport.MilCore, EntryPoint = "MILSwDoubleBufferedBitmapCreate")]
167[DllImport(DllImport.MilCore, EntryPoint = "MILSwDoubleBufferedBitmapGetBackBuffer", PreserveSig = false)]
174[DllImport(DllImport.MilCore, EntryPoint = "MILSwDoubleBufferedBitmapAddDirtyRect", PreserveSig = false)]
180[DllImport(DllImport.MilCore, EntryPoint = "MILSwDoubleBufferedBitmapProtectBackBuffer")]
193[DllImport(DllImport.MilCore, EntryPoint="MILUpdateSystemParametersInfo")]
src\Microsoft.DotNet.Wpf\src\Shared\System\Windows\Interop\OSVersionHelper.cs (20)
126[DllImport(DllImport.PresentationNative, CallingConvention = CallingConvention.Cdecl)]
130[DllImport(DllImport.PresentationNative, CallingConvention = CallingConvention.Cdecl)]
134[DllImport(DllImport.PresentationNative, CallingConvention = CallingConvention.Cdecl)]
138[DllImport(DllImport.PresentationNative, CallingConvention = CallingConvention.Cdecl)]
142[DllImport(DllImport.PresentationNative, CallingConvention = CallingConvention.Cdecl)]
146[DllImport(DllImport.PresentationNative, CallingConvention = CallingConvention.Cdecl)]
150[DllImport(DllImport.PresentationNative, CallingConvention = CallingConvention.Cdecl)]
154[DllImport(DllImport.PresentationNative, CallingConvention = CallingConvention.Cdecl)]
158[DllImport(DllImport.PresentationNative, CallingConvention = CallingConvention.Cdecl)]
162[DllImport(DllImport.PresentationNative, CallingConvention = CallingConvention.Cdecl)]
166[DllImport(DllImport.PresentationNative, CallingConvention = CallingConvention.Cdecl)]
170[DllImport(DllImport.PresentationNative, CallingConvention = CallingConvention.Cdecl)]
174[DllImport(DllImport.PresentationNative, CallingConvention = CallingConvention.Cdecl)]
178[DllImport(DllImport.PresentationNative, CallingConvention = CallingConvention.Cdecl)]
182[DllImport(DllImport.PresentationNative, CallingConvention = CallingConvention.Cdecl)]
186[DllImport(DllImport.PresentationNative, CallingConvention = CallingConvention.Cdecl)]
190[DllImport(DllImport.PresentationNative, CallingConvention = CallingConvention.Cdecl)]
194[DllImport(DllImport.PresentationNative, CallingConvention = CallingConvention.Cdecl)]
198[DllImport(DllImport.PresentationNative, CallingConvention = CallingConvention.Cdecl)]
202[DllImport(DllImport.PresentationNative, CallingConvention = CallingConvention.Cdecl)]
System\Windows\Media\UnsafeNativeMethodsMilCoreApi.cs (165)
25[DllImport(DllImport.MilCore, EntryPoint = "MilCompositionEngine_EnterCompositionEngineLock")]
28[DllImport(DllImport.MilCore, EntryPoint = "MilCompositionEngine_ExitCompositionEngineLock")]
31[DllImport(DllImport.MilCore, EntryPoint = "MilCompositionEngine_EnterMediaSystemLock")]
34[DllImport(DllImport.MilCore, EntryPoint = "MilCompositionEngine_ExitMediaSystemLock")]
37[DllImport(DllImport.MilCore)]
42[DllImport(DllImport.MilCore)]
45[DllImport(DllImport.MilCore)]
50[DllImport(DllImport.MilCore)]
53[DllImport(DllImport.MilCore)]
56[DllImport(DllImport.MilCore)]
73[DllImport(DllImport.MilCore)]
87[DllImport(DllImport.MilCore)]
104[DllImport(DllImport.MilCore)]
117[DllImport(DllImport.MilCore)]
128[DllImport(DllImport.MilCore)]
139[DllImport(DllImport.MilCore)]
147[DllImport(DllImport.MilCore)]
154[DllImport(DllImport.MilCore)]
159[DllImport(DllImport.MilCore)]
166[DllImport(DllImport.MilCore)]
177[DllImport(DllImport.MilCore)]
182[DllImport(DllImport.MilCore, EntryPoint = "MilCreateReversePInvokeWrapper")]
187[DllImport(DllImport.MilCore, EntryPoint = "MilReleasePInvokePtrBlocking")]
191[DllImport(DllImport.MilCore, EntryPoint = "RenderOptions_ForceSoftwareRenderingModeForProcess")]
195[DllImport(DllImport.MilCore, EntryPoint = "RenderOptions_IsSoftwareRenderingForcedForProcess")]
198[DllImport(DllImport.MilCore, EntryPoint = "RenderOptions_EnableHardwareAccelerationInRdp")]
201[DllImport(DllImport.MilCore, EntryPoint = "MilResource_CreateCWICWrapperBitmap")]
209[DllImport(DllImport.WindowsCodecs, EntryPoint = "IWICComponentInfo_GetCLSID_Proxy")]
214[DllImport(DllImport.WindowsCodecs, EntryPoint = "IWICComponentInfo_GetAuthor_Proxy")]
221[DllImport(DllImport.WindowsCodecs, EntryPoint = "IWICComponentInfo_GetVersion_Proxy")]
228[DllImport(DllImport.WindowsCodecs, EntryPoint = "IWICComponentInfo_GetSpecVersion_Proxy")]
235[DllImport(DllImport.WindowsCodecs, EntryPoint = "IWICComponentInfo_GetFriendlyName_Proxy")]
245[DllImport(DllImport.WindowsCodecs, EntryPoint = "IWICBitmapCodecInfo_GetContainerFormat_Proxy")]
250[DllImport(DllImport.WindowsCodecs, EntryPoint = "IWICBitmapCodecInfo_GetDeviceManufacturer_Proxy")]
258[DllImport(DllImport.WindowsCodecs, EntryPoint = "IWICBitmapCodecInfo_GetDeviceModels_Proxy")]
266[DllImport(DllImport.WindowsCodecs, EntryPoint = "IWICBitmapCodecInfo_GetMimeTypes_Proxy")]
274[DllImport(DllImport.WindowsCodecs, EntryPoint = "IWICBitmapCodecInfo_GetFileExtensions_Proxy")]
282[DllImport(DllImport.WindowsCodecs, EntryPoint = "IWICBitmapCodecInfo_DoesSupportAnimation_Proxy")]
288[DllImport(DllImport.WindowsCodecs, EntryPoint = "IWICBitmapCodecInfo_DoesSupportLossless_Proxy")]
294[DllImport(DllImport.WindowsCodecs, EntryPoint = "IWICBitmapCodecInfo_DoesSupportMultiframe_Proxy")]
303[DllImport(DllImport.WindowsCodecs, EntryPoint = "IWICMetadataQueryReader_GetContainerFormat_Proxy")]
308[DllImport(DllImport.WindowsCodecs, EntryPoint = "IWICMetadataQueryReader_GetLocation_Proxy")]
316[DllImport(DllImport.WindowsCodecs, EntryPoint = "IWICMetadataQueryReader_GetMetadataByName_Proxy")]
323[DllImport(DllImport.WindowsCodecs, EntryPoint = "IWICMetadataQueryReader_GetMetadataByName_Proxy")]
330[DllImport(DllImport.WindowsCodecs, EntryPoint = "IWICMetadataQueryReader_GetEnumerator_Proxy")]
339[DllImport(DllImport.WindowsCodecs, EntryPoint = "IWICMetadataQueryWriter_SetMetadataByName_Proxy")]
346[DllImport(DllImport.WindowsCodecs, EntryPoint = "IWICMetadataQueryWriter_RemoveMetadataByName_Proxy")]
355[DllImport(DllImport.WindowsCodecs, EntryPoint = "IWICFastMetadataEncoder_Commit_Proxy")]
360[DllImport(DllImport.WindowsCodecs, EntryPoint = "IWICFastMetadataEncoder_GetMetadataQueryWriter_Proxy")]
369[DllImport(DllImport.WindowsCodecs, EntryPoint = "IEnumString_Next_WIC_Proxy")]
377[DllImport(DllImport.WindowsCodecs, EntryPoint = "IEnumString_Reset_WIC_Proxy")]
385[DllImport(DllImport.WindowsCodecs, EntryPoint = "IPropertyBag2_Write_Proxy")]
396[DllImport(DllImport.WindowsCodecs, EntryPoint = "IWICBitmapSource_GetSize_Proxy")]
402[DllImport(DllImport.WindowsCodecs, EntryPoint = "IWICBitmapSource_GetPixelFormat_Proxy")]
407[DllImport(DllImport.WindowsCodecs, EntryPoint = "IWICBitmapSource_GetResolution_Proxy")]
413[DllImport(DllImport.WindowsCodecs, EntryPoint = "IWICBitmapSource_CopyPalette_Proxy")]
418[DllImport(DllImport.WindowsCodecs, EntryPoint = "IWICBitmapSource_CopyPixels_Proxy")]
429[DllImport(DllImport.WindowsCodecs, EntryPoint = "IWICBitmapDecoder_GetDecoderInfo_Proxy")]
434[DllImport(DllImport.WindowsCodecs, EntryPoint = "IWICBitmapDecoder_CopyPalette_Proxy")]
439[DllImport(DllImport.WindowsCodecs, EntryPoint = "IWICBitmapDecoder_GetPreview_Proxy")]
445[DllImport(DllImport.WindowsCodecs, EntryPoint = "IWICBitmapDecoder_GetColorContexts_Proxy")]
453[DllImport(DllImport.WindowsCodecs, EntryPoint = "IWICBitmapDecoder_GetThumbnail_Proxy")]
459[DllImport(DllImport.WindowsCodecs, EntryPoint = "IWICBitmapDecoder_GetMetadataQueryReader_Proxy")]
465[DllImport(DllImport.WindowsCodecs, EntryPoint = "IWICBitmapDecoder_GetFrameCount_Proxy")]
471[DllImport(DllImport.WindowsCodecs, EntryPoint = "IWICBitmapDecoder_GetFrame_Proxy")]
481[DllImport(DllImport.WindowsCodecs, EntryPoint = "IWICBitmapFrameDecode_GetThumbnail_Proxy")]
487[DllImport(DllImport.WindowsCodecs, EntryPoint = "IWICBitmapFrameDecode_GetMetadataQueryReader_Proxy")]
493[DllImport(DllImport.WindowsCodecs, EntryPoint = "IWICBitmapFrameDecode_GetColorContexts_Proxy")]
504[DllImport(DllImport.MilCore, EntryPoint = "MILAddRef")]
507[DllImport(DllImport.MilCore, EntryPoint = "MILAddRef")]
510[DllImport(DllImport.MilCore, EntryPoint = "MILRelease")]
524[DllImport(DllImport.MilCore, EntryPoint = "MILQueryInterface")]
530[DllImport(DllImport.MilCore, EntryPoint = "MILQueryInterface")]
539[DllImport(DllImport.WindowsCodecs, EntryPoint = "IWICStream_InitializeFromIStream_Proxy")]
544[DllImport(DllImport.WindowsCodecs, EntryPoint = "IWICStream_InitializeFromMemory_Proxy")]
553[DllImport(DllImport.WindowsCodecs, EntryPoint = "WICCreateBitmapFromSection")]
566[DllImport(DllImport.WindowsCodecs, EntryPoint="IWICBitmapFrameEncode_Initialize_Proxy")]
570[DllImport(DllImport.WindowsCodecs, EntryPoint="IWICBitmapFrameEncode_Commit_Proxy")]
573[DllImport(DllImport.WindowsCodecs, EntryPoint="IWICBitmapFrameEncode_SetSize_Proxy")]
578[DllImport(DllImport.WindowsCodecs, EntryPoint="IWICBitmapFrameEncode_SetResolution_Proxy")]
583[DllImport(DllImport.WindowsCodecs, EntryPoint="IWICBitmapFrameEncode_WriteSource_Proxy")]
588[DllImport(DllImport.WindowsCodecs, EntryPoint = "IWICBitmapFrameEncode_SetThumbnail_Proxy")]
592[DllImport(DllImport.WindowsCodecs, EntryPoint = "IWICBitmapFrameEncode_GetMetadataQueryWriter_Proxy")]
598[DllImport(DllImport.WindowsCodecs, EntryPoint = "IWICBitmapFrameEncode_SetColorContexts_Proxy")]
607[DllImport(DllImport.WindowsCodecs, EntryPoint="IWICBitmapEncoder_Initialize_Proxy")]
612[DllImport(DllImport.WindowsCodecs, EntryPoint="IWICBitmapEncoder_GetEncoderInfo_Proxy")]
617[DllImport(DllImport.WindowsCodecs, EntryPoint="IWICBitmapEncoder_CreateNewFrame_Proxy")]
623[DllImport(DllImport.WindowsCodecs, EntryPoint="IWICBitmapEncoder_SetThumbnail_Proxy")]
627[DllImport(DllImport.WindowsCodecs, EntryPoint="IWICBitmapEncoder_SetPalette_Proxy")]
631[DllImport(DllImport.WindowsCodecs, EntryPoint = "IWICBitmapEncoder_GetMetadataQueryWriter_Proxy")]
637[DllImport(DllImport.WindowsCodecs, EntryPoint="IWICBitmapEncoder_Commit_Proxy")]
643[DllImport(DllImport.WindowsCodecs, EntryPoint="IWICPalette_InitializePredefined_Proxy")]
648[DllImport(DllImport.WindowsCodecs, EntryPoint="IWICPalette_InitializeCustom_Proxy")]
653[DllImport(DllImport.WindowsCodecs, EntryPoint="IWICPalette_InitializeFromBitmap_Proxy")]
659[DllImport(DllImport.WindowsCodecs, EntryPoint="IWICPalette_InitializeFromPalette_Proxy")]
663[DllImport(DllImport.WindowsCodecs, EntryPoint="IWICPalette_GetType_Proxy")]
667[DllImport(DllImport.WindowsCodecs, EntryPoint="IWICPalette_GetColorCount_Proxy")]
671[DllImport(DllImport.WindowsCodecs, EntryPoint="IWICPalette_GetColors_Proxy")]
677[DllImport(DllImport.WindowsCodecs, EntryPoint="IWICPalette_HasAlpha_Proxy")]
684[DllImport(DllImport.WindowsCodecs, EntryPoint = "IWICImagingFactory_CreateDecoderFromStream_Proxy")]
692[DllImport(DllImport.WindowsCodecs, EntryPoint = "IWICImagingFactory_CreateDecoderFromFileHandle_Proxy")]
700[DllImport(DllImport.WindowsCodecs, EntryPoint = "IWICImagingFactory_CreateComponentInfo_Proxy")]
706[DllImport(DllImport.WindowsCodecs, EntryPoint = "IWICImagingFactory_CreatePalette_Proxy")]
711[DllImport(DllImport.WindowsCodecs, EntryPoint = "IWICImagingFactory_CreateFormatConverter_Proxy")]
716[DllImport(DllImport.WindowsCodecs, EntryPoint = "IWICImagingFactory_CreateBitmapScaler_Proxy")]
721[DllImport(DllImport.WindowsCodecs, EntryPoint = "IWICImagingFactory_CreateBitmapClipper_Proxy")]
726[DllImport(DllImport.WindowsCodecs, EntryPoint = "IWICImagingFactory_CreateBitmapFlipRotator_Proxy")]
731[DllImport(DllImport.WindowsCodecs, EntryPoint = "IWICImagingFactory_CreateStream_Proxy")]
736[DllImport(DllImport.WindowsCodecs, EntryPoint = "IWICImagingFactory_CreateEncoder_Proxy")]
743[DllImport(DllImport.WindowsCodecs, EntryPoint = "IWICImagingFactory_CreateBitmapFromSource_Proxy")]
750[DllImport(DllImport.WindowsCodecs, EntryPoint = "IWICImagingFactory_CreateBitmapFromMemory_Proxy")]
761[DllImport(DllImport.WindowsCodecs, EntryPoint = "IWICImagingFactory_CreateBitmap_Proxy")]
770[DllImport(DllImport.WindowsCodecs, EntryPoint = "IWICImagingFactory_CreateBitmapFromHBITMAP_Proxy")]
778[DllImport(DllImport.WindowsCodecs, EntryPoint = "IWICImagingFactory_CreateBitmapFromHICON_Proxy")]
784[DllImport(DllImport.WindowsCodecs, EntryPoint = "IWICImagingFactory_CreateFastMetadataEncoderFromDecoder_Proxy")]
790[DllImport(DllImport.WindowsCodecs, EntryPoint = "IWICImagingFactory_CreateFastMetadataEncoderFromFrameDecode_Proxy")]
796[DllImport(DllImport.WindowsCodecs, EntryPoint = "IWICImagingFactory_CreateQueryWriter_Proxy")]
804[DllImport(DllImport.WindowsCodecs, EntryPoint = "IWICImagingFactory_CreateQueryWriterFromReader_Proxy")]
815[DllImport(DllImport.WindowsCodecs, EntryPoint = "IWICComponentFactory_CreateMetadataWriterFromReader_Proxy")]
823[DllImport(DllImport.WindowsCodecs, EntryPoint = "IWICComponentFactory_CreateQueryWriterFromBlockWriter_Proxy")]
833[DllImport(DllImport.WindowsCodecs, EntryPoint = "IWICMetadataBlockReader_GetCount_Proxy")]
839[DllImport(DllImport.WindowsCodecs, EntryPoint = "IWICMetadataBlockReader_GetReaderByIndex_Proxy")]
849[DllImport(DllImport.WindowsCodecs, EntryPoint = "IWICPixelFormatInfo_GetBitsPerPixel_Proxy")]
855[DllImport(DllImport.WindowsCodecs, EntryPoint = "IWICPixelFormatInfo_GetChannelCount_Proxy")]
861[DllImport(DllImport.WindowsCodecs, EntryPoint = "IWICPixelFormatInfo_GetChannelMask_Proxy")]
873[DllImport(DllImport.WindowsCodecs, EntryPoint = "IWICBitmapClipper_Initialize_Proxy")]
882[DllImport(DllImport.WindowsCodecs, EntryPoint = "IWICBitmapFlipRotator_Initialize_Proxy")]
891[DllImport(DllImport.WindowsCodecs, EntryPoint = "IWICBitmapScaler_Initialize_Proxy")]
902[DllImport(DllImport.WindowsCodecs, EntryPoint = "IWICFormatConverter_Initialize_Proxy")]
922[DllImport(DllImport.WindowsCodecs, EntryPoint = "IWICColorContext_InitializeFromMemory_Proxy")]
931[DllImport(DllImport.MilCore, EntryPoint = "IWICColorContext_GetProfileBytes_Proxy")]
939[DllImport(DllImport.MilCore, EntryPoint = "IWICColorContext_GetType_Proxy")]
945[DllImport(DllImport.MilCore, EntryPoint = "IWICColorContext_GetExifColorSpace_Proxy")]
954[DllImport(DllImport.WindowsCodecsExt, EntryPoint = "IWICColorTransform_Initialize_Proxy")]
966[DllImport(DllImport.WindowsCodecs, EntryPoint = "IWICBitmap_Lock_Proxy")]
973[DllImport(DllImport.WindowsCodecs, EntryPoint = "IWICBitmap_SetResolution_Proxy")]
979[DllImport(DllImport.WindowsCodecs, EntryPoint = "IWICBitmap_SetPalette_Proxy")]
987[DllImport(DllImport.WindowsCodecs, EntryPoint = "IWICBitmapLock_GetStride_Proxy")]
993[DllImport(DllImport.WindowsCodecs, EntryPoint = "IWICBitmapLock_GetDataPointer_STA_Proxy")]
1007[DllImport(DllImport.WindowsCodecs, EntryPoint = "WICCreateImagingFactory_Proxy")]
1013[DllImport(DllImport.WindowsCodecs, EntryPoint = "WICConvertBitmapSource")]
1019[DllImport(DllImport.WindowsCodecs, EntryPoint = "WICSetEncoderFormat_Proxy")]
1026[DllImport(DllImport.WindowsCodecs, EntryPoint = "WICMapGuidToShortName")]//CASRemoval:
1033[DllImport(DllImport.WindowsCodecs, EntryPoint = "WICMapShortNameToGuid")]//CASRemoval:
1038[DllImport(DllImport.WindowsCodecsExt, EntryPoint = "WICCreateColorTransform_Proxy")]
1042[DllImport(DllImport.WindowsCodecs, EntryPoint = "WICCreateColorContext_Proxy")]
1047[DllImport("ole32.dll")]
1051[DllImport("ole32.dll")]
1057[DllImport(DllImport.Mscms, EntryPoint = "CreateMultiProfileTransform")]
1060[DllImport(DllImport.Mscms, EntryPoint = "DeleteColorTransform", SetLastError = true)]
1063[DllImport(DllImport.Mscms, EntryPoint = "TranslateColors")]
1066[DllImport(DllImport.Mscms, EntryPoint = "OpenColorProfile")]
1069[DllImport(DllImport.Mscms, EntryPoint = "CloseColorProfile", SetLastError = true)]
1072[DllImport(DllImport.Mscms, EntryPoint = "GetColorProfileHeader", SetLastError = true)]
1075[DllImport(DllImport.Mscms, CharSet = CharSet.Auto, BestFitMapping = false)]
1078[DllImport(DllImport.Mscms, CharSet = CharSet.Auto, BestFitMapping = false)]
1081[DllImport(DllImport.Mscms, EntryPoint = "GetColorProfileFromHandle", SetLastError = true)]
1087[DllImport(DllImport.MilCore, EntryPoint = "MILCreateFactory")]
1093[DllImport(DllImport.MilCore, EntryPoint = "MILFactoryCreateMediaPlayer")]
1100[DllImport(DllImport.MilCore, EntryPoint = "MILFactoryCreateBitmapRenderTarget")]
1111[DllImport(DllImport.MilCore, EntryPoint = "MILFactoryCreateSWRenderTargetForBitmap")]
1122[DllImport(DllImport.MilCore, EntryPoint = "InteropDeviceBitmap_Create")]
1135[DllImport(DllImport.MilCore, EntryPoint = "InteropDeviceBitmap_Detach")]
1140[DllImport(DllImport.MilCore, EntryPoint = "InteropDeviceBitmap_AddDirtyRect")]
1150[DllImport(DllImport.MilCore, EntryPoint = "InteropDeviceBitmap_GetAsSoftwareBitmap")]
PresentationFramework (202)
src\Microsoft.DotNet.Wpf\src\Shared\System\Windows\Interop\OSVersionHelper.cs (20)
126[DllImport(DllImport.PresentationNative, CallingConvention = CallingConvention.Cdecl)]
130[DllImport(DllImport.PresentationNative, CallingConvention = CallingConvention.Cdecl)]
134[DllImport(DllImport.PresentationNative, CallingConvention = CallingConvention.Cdecl)]
138[DllImport(DllImport.PresentationNative, CallingConvention = CallingConvention.Cdecl)]
142[DllImport(DllImport.PresentationNative, CallingConvention = CallingConvention.Cdecl)]
146[DllImport(DllImport.PresentationNative, CallingConvention = CallingConvention.Cdecl)]
150[DllImport(DllImport.PresentationNative, CallingConvention = CallingConvention.Cdecl)]
154[DllImport(DllImport.PresentationNative, CallingConvention = CallingConvention.Cdecl)]
158[DllImport(DllImport.PresentationNative, CallingConvention = CallingConvention.Cdecl)]
162[DllImport(DllImport.PresentationNative, CallingConvention = CallingConvention.Cdecl)]
166[DllImport(DllImport.PresentationNative, CallingConvention = CallingConvention.Cdecl)]
170[DllImport(DllImport.PresentationNative, CallingConvention = CallingConvention.Cdecl)]
174[DllImport(DllImport.PresentationNative, CallingConvention = CallingConvention.Cdecl)]
178[DllImport(DllImport.PresentationNative, CallingConvention = CallingConvention.Cdecl)]
182[DllImport(DllImport.PresentationNative, CallingConvention = CallingConvention.Cdecl)]
186[DllImport(DllImport.PresentationNative, CallingConvention = CallingConvention.Cdecl)]
190[DllImport(DllImport.PresentationNative, CallingConvention = CallingConvention.Cdecl)]
194[DllImport(DllImport.PresentationNative, CallingConvention = CallingConvention.Cdecl)]
198[DllImport(DllImport.PresentationNative, CallingConvention = CallingConvention.Cdecl)]
202[DllImport(DllImport.PresentationNative, CallingConvention = CallingConvention.Cdecl)]
System\Windows\Standard\NativeMethods.cs (92)
1369[DllImport("user32.dll")]
1372[DllImport("user32.dll")]
1376[DllImport("gdi32.dll", CharSet = CharSet.Unicode)]
1379[DllImport("gdi32.dll", CharSet = CharSet.Unicode, SetLastError = true)]
1382[DllImport("gdi32.dll")]
2276[DllImport("user32.dll", EntryPoint = "AdjustWindowRectEx", SetLastError = true)]
2291[DllImport("user32.dll", EntryPoint = "ChangeWindowMessageFilter", SetLastError = true)]
2295[DllImport("user32.dll", EntryPoint = "ChangeWindowMessageFilterEx", SetLastError = true)]
2339[DllImport("gdi32.dll")]
2342[DllImport("shell32.dll", EntryPoint = "CommandLineToArgvW", CharSet = CharSet.Unicode)]
2375[DllImport("gdi32.dll", EntryPoint = "CreateDIBSection", SetLastError = true)]
2378[DllImport("gdi32.dll", EntryPoint = "CreateDIBSection", SetLastError = true)]
2402[DllImport("gdi32.dll", EntryPoint = "CreateRoundRectRgn", SetLastError = true)]
2415[DllImport("gdi32.dll", EntryPoint = "CreateRectRgn", SetLastError = true)]
2428[DllImport("gdi32.dll", EntryPoint = "CreateRectRgnIndirect", SetLastError = true)]
2441[DllImport("gdi32.dll")]
2444[DllImport("user32.dll", SetLastError = true, CharSet = CharSet.Unicode, EntryPoint = "CreateWindowExW")]
2482[DllImport("user32.dll", CharSet = CharSet.Unicode, EntryPoint = "DefWindowProcW")]
2485[DllImport("gdi32.dll")]
2489[DllImport("user32.dll")]
2493[DllImport("user32.dll", SetLastError = true)]
2497[DllImport("user32.dll")]
2501[DllImport("dwmapi.dll", PreserveSig = false)]
2504[DllImport("dwmapi.dll", PreserveSig = false)]
2507[DllImport("dwmapi.dll", EntryPoint = "DwmIsCompositionEnabled", PreserveSig = false)]
2511[DllImport("dwmapi.dll", EntryPoint = "DwmGetColorizationColor", PreserveSig = true)]
2545[DllImport("dwmapi.dll")]
2549[DllImport("dwmapi.dll", EntryPoint = "DwmSetWindowAttribute")]
2581[DllImport("user32.dll", EntryPoint = "EnableMenuItem")]
2591[DllImport("user32.dll", EntryPoint = "RemoveMenu", SetLastError = true)]
2603[DllImport("user32.dll", EntryPoint = "DrawMenuBar", SetLastError = true)]
2615[DllImport("kernel32.dll")]
2621[DllImport("kernel32.dll", CharSet = CharSet.Unicode, SetLastError = true)]
2625[DllImport("kernel32.dll", SetLastError = true)]
2629[DllImport("user32.dll", EntryPoint = "GetClientRect", SetLastError = true)]
2643[DllImport("uxtheme.dll", EntryPoint="GetCurrentThemeName", CharSet = CharSet.Unicode)]
2670[DllImport("uxtheme.dll")]
2674[DllImport("gdi32.dll")]
2677[DllImport("kernel32.dll", EntryPoint = "GetModuleFileName", CharSet = CharSet.Unicode, SetLastError = true)]
2704[DllImport("kernel32.dll", EntryPoint = "GetModuleHandleW", CharSet = CharSet.Unicode, SetLastError = true)]
2717[DllImport("user32.dll", EntryPoint = "GetMonitorInfo", SetLastError = true)]
2731[DllImport("gdi32.dll", EntryPoint = "GetStockObject", SetLastError = true)]
2744[DllImport("user32.dll")]
2747[DllImport("user32.dll")]
2788[DllImport("uxtheme.dll", PreserveSig = false)]
2791[DllImport("user32.dll", SetLastError = true)]
2805[DllImport("user32.dll", EntryPoint = "GetWindowRect", SetLastError = true)]
2819[DllImport("gdiplus.dll")]
2822[DllImport("gdiplus.dll")]
2825[DllImport("gdiplus.dll")]
2828[DllImport("gdiplus.dll")]
2831[DllImport("gdiplus.dll")]
2834[DllImport("gdiplus.dll")]
2837[DllImport("gdiplus.dll")]
2840[DllImport("user32.dll")]
2844[DllImport("kernel32.dll", EntryPoint = "LocalFree", SetLastError = true)]
2847[DllImport("user32.dll")]
2850[DllImport("user32.dll", EntryPoint = "PostMessage", SetLastError = true)]
2862[DllImport("user32.dll", SetLastError = true, EntryPoint = "RegisterClassExW")]
2879[DllImport("user32.dll", EntryPoint = "RegisterWindowMessage", SetLastError = true, CharSet = CharSet.Unicode)]
2892[DllImport("user32.dll", EntryPoint = "SetActiveWindow", SetLastError = true)]
2917[DllImport("user32.dll", EntryPoint = "SetClassLong", SetLastError = true)]
2920[DllImport("user32.dll", EntryPoint = "SetClassLongPtr", SetLastError = true)]
2923[DllImport("kernel32.dll", SetLastError = true)]
2926[DllImport("kernel32.dll", SetLastError = true, EntryPoint = "SetProcessWorkingSetSize")]
2948[DllImport("user32.dll", EntryPoint = "SetWindowRgn", SetLastError = true)]
2960[DllImport("user32.dll", EntryPoint = "SetWindowPos", SetLastError = true)]
2975[DllImport("shell32.dll", SetLastError = false)]
2978[DllImport("user32.dll")]
2982[DllImport("user32.dll", EntryPoint = "SystemParametersInfoW", SetLastError = true)]
2987[DllImport("user32.dll", EntryPoint = "SystemParametersInfoW", SetLastError = true, CharSet = CharSet.Unicode)]
2992[DllImport("user32.dll", EntryPoint = "SystemParametersInfoW", SetLastError = true, CharSet = CharSet.Unicode)]
3032[DllImport("user32.dll")]
3035[DllImport("gdi32.dll", EntryPoint = "SelectObject", SetLastError = true)]
3048[DllImport("gdi32.dll", EntryPoint = "SelectObject", SetLastError = true)]
3061[DllImport("user32.dll", SetLastError = true)]
3065[DllImport("user32.dll", SetLastError = true)]
3068[DllImport("user32.dll", EntryPoint = "UnregisterClass", SetLastError = true)]
3072[DllImport("user32.dll", EntryPoint = "UnregisterClass", CharSet = CharSet.Unicode, SetLastError = true)]
3092[DllImport("user32.dll", SetLastError = true, EntryPoint = "UpdateLayeredWindow")]
3105[DllImport("user32.dll", SetLastError = true, EntryPoint = "UpdateLayeredWindow")]
3149[DllImport("shell32.dll", EntryPoint = "SHAddToRecentDocs")]
3154[DllImport("shell32.dll", EntryPoint = "SHAddToRecentDocs")]
3171[DllImport("dwmapi.dll", EntryPoint="DwmGetCompositionTimingInfo")]
3194[DllImport("dwmapi.dll", PreserveSig = false)]
3197[DllImport("dwmapi.dll", PreserveSig = false)]
3200[DllImport("dwmapi.dll", PreserveSig = false)]
3203[DllImport("shell32.dll", PreserveSig = false)]
3206[DllImport("shell32.dll")]
3209[DllImport("shell32.dll")]
3217[DllImport("shell32.dll", PreserveSig = false)]
3224[DllImport("shell32.dll")]
PresentationUI (1)
ReachFramework (20)
MS\Internal\Printing\Configuration\UnsafeNativeMethods.cs (19)
71[DllImport(DllImport.PrntvPt, EntryPoint = "PTCloseProvider", CharSet = CharSet.Unicode, ExactSpelling = true)]
242[DllImport(ExternDll.Winspool, CharSet = CharSet.Unicode, ExactSpelling = true, SetLastError = true)]
250[DllImport(ExternDll.Winspool, CharSet = CharSet.Unicode, ExactSpelling = true, SetLastError = true)]
258[DllImport(ExternDll.Winspool, CharSet = CharSet.Unicode, ExactSpelling = true, SetLastError = true)]
266[DllImport(ExternDll.Winspool, CharSet = CharSet.Unicode, ExactSpelling = true, SetLastError = true)]
275[DllImport(ExternDll.Winspool, ExactSpelling = true, SetLastError = true)]
278[DllImport(ExternDll.Gdi32, CharSet = CharSet.Unicode, ExactSpelling = true, SetLastError = true)]
281[DllImport(ExternDll.Gdi32, ExactSpelling = true, SetLastError = true)]
284[DllImport(ExternDll.Gdi32, ExactSpelling = true, SetLastError = true)]
287[DllImport(ExternDll.User32, CharSet = CharSet.Unicode, ExactSpelling = true, SetLastError = true)]
290[DllImport(ExternDll.Kernel32, CharSet = CharSet.Unicode, ExactSpelling = true, SetLastError = true)]
293[DllImport(ExternDll.Kernel32, ExactSpelling = true, SetLastError = true)]
303[DllImport(DllImport.Ole32, EntryPoint = "CreateStreamOnHGlobal", CharSet = CharSet.Unicode, ExactSpelling = true)]
319[DllImport(DllImport.PrntvPt, EntryPoint = "PTOpenProviderEx", CharSet = CharSet.Unicode, ExactSpelling = true)]
335[DllImport(DllImport.PrntvPt, EntryPoint = "PTGetPrintCapabilities", CharSet = CharSet.Unicode)]
352[DllImport(DllImport.PrntvPt, EntryPoint = "PTMergeAndValidatePrintTicket", CharSet = CharSet.Unicode, ExactSpelling = true)]
370[DllImport(DllImport.PrntvPt, EntryPoint = "PTConvertDevModeToPrintTicket", CharSet = CharSet.Unicode, ExactSpelling = true)]
390[DllImport(DllImport.PrntvPt, EntryPoint = "PTConvertPrintTicketToDevMode", CharSet = CharSet.Unicode, ExactSpelling = true)]
405[DllImport(DllImport.PrntvPt, EntryPoint = "PTReleaseMemory", CharSet = CharSet.Unicode, ExactSpelling = true)]
Replay (3)
Roslyn.Test.PdbUtilities (3)
StackDepthTest (1)
System.Drawing.Common (2)
System.Drawing.Common.Tests (1)
System.Net.Quic (2)
System.Private.CoreLib (1)
System.Private.Windows.Core (9)
System.Private.Windows.Core.TestUtilities (1)
System.Reflection.MetadataLoadContext (1)
System.Windows.Controls.Ribbon (8)
Microsoft\Windows\Controls\Ribbon\NativeMethods.cs (8)
317[DllImport("user32.dll", ExactSpelling = true)]
320[DllImport("user32.dll", EntryPoint = "GetMonitorInfo", CharSet = CharSet.Auto, SetLastError = true)]
324[DllImport("user32.dll", ExactSpelling = true, CharSet = CharSet.Auto)]
327[DllImport("user32.dll")]
330[DllImport("user32.dll", ExactSpelling = true, CharSet = CharSet.Auto)]
347[DllImport("gdi32.dll", SetLastError = true, ExactSpelling = true, CharSet = CharSet.Auto)]
350[DllImport("user32.dll", SetLastError = true, ExactSpelling = true, EntryPoint = "GetDC", CharSet = CharSet.Auto)]
363[DllImport("user32.dll", ExactSpelling = true, EntryPoint = "ReleaseDC", CharSet = CharSet.Auto)]
System.Windows.Forms.Interop.Tests (89)
System.Windows.Forms.Primitives (8)
System.Windows.Forms.Primitives.Tests (17)
System.Windows.Forms.Primitives.TestUtilities (5)
System.Windows.Forms.Tests (5)
TlsFeaturesObserve (2)
UIAutomationClient (138)
MS\Internal\Automation\UiaCoreApi.cs (76)
556[DllImport(DllImport.UIAutomationCore, EntryPoint = "UiaHasServerSideProvider", CharSet = CharSet.Unicode)]
1159[DllImport(DllImport.UIAutomationCore, CharSet = CharSet.Unicode)]
1162[DllImport("oleaut32.dll")]
1215[DllImport(DllImport.UIAutomationCore, EntryPoint = "UiaGetPropertyValue", CharSet = CharSet.Unicode)]
1218[DllImport(DllImport.UIAutomationCore, EntryPoint = "UiaGetPatternProvider", CharSet = CharSet.Unicode)]
1221[DllImport(DllImport.UIAutomationCore, EntryPoint = "UiaGetRuntimeId", CharSet = CharSet.Unicode)]
1224[DllImport(DllImport.UIAutomationCore, EntryPoint = "UiaSetFocus", CharSet = CharSet.Unicode)]
1227[DllImport(DllImport.UIAutomationCore, EntryPoint = "UiaNavigate", CharSet = CharSet.Unicode)]
1230[DllImport(DllImport.UIAutomationCore, EntryPoint = "UiaFind", CharSet = CharSet.Unicode)]
1233[DllImport(DllImport.UIAutomationCore, EntryPoint = "UiaNodeFromHandle", CharSet = CharSet.Unicode)]
1236[DllImport(DllImport.UIAutomationCore, EntryPoint = "UiaNodeFromProvider", CharSet = CharSet.Unicode)]
1239[DllImport(DllImport.UIAutomationCore, EntryPoint = "UiaGetRootNode", CharSet = CharSet.Unicode)]
1242[DllImport(DllImport.UIAutomationCore, EntryPoint = "UiaNodeFromPoint", CharSet = CharSet.Unicode)]
1245[DllImport(DllImport.UIAutomationCore, EntryPoint = "UiaNodeFromFocus", CharSet = CharSet.Unicode)]
1248[DllImport(DllImport.UIAutomationCore, EntryPoint = "UiaGetUpdatedCache", CharSet = CharSet.Unicode)]
1251[DllImport(DllImport.UIAutomationCore, EntryPoint = "UiaHUiaNodeFromVariant", CharSet = CharSet.Unicode)]
1254[DllImport(DllImport.UIAutomationCore, EntryPoint = "UiaHPatternObjectFromVariant", CharSet = CharSet.Unicode)]
1257[DllImport(DllImport.UIAutomationCore, EntryPoint = "UiaHTextRangeFromVariant", CharSet = CharSet.Unicode)]
1260[DllImport(DllImport.UIAutomationCore, EntryPoint = "UiaNodeRelease", CharSet = CharSet.Unicode)]
1263[DllImport(DllImport.UIAutomationCore, EntryPoint = "UiaPatternRelease", CharSet = CharSet.Unicode)]
1266[DllImport(DllImport.UIAutomationCore, EntryPoint = "UiaTextRangeRelease", CharSet = CharSet.Unicode)]
1270[DllImport(DllImport.UIAutomationCore, EntryPoint = "UiaAddEvent", CharSet = CharSet.Unicode)]
1273[DllImport(DllImport.UIAutomationCore, EntryPoint = "UiaRemoveEvent", CharSet = CharSet.Unicode)]
1276[DllImport(DllImport.UIAutomationCore, EntryPoint = "UiaEventAddWindow", CharSet = CharSet.Unicode)]
1279[DllImport(DllImport.UIAutomationCore, EntryPoint = "UiaEventRemoveWindow", CharSet = CharSet.Unicode)]
1286[DllImport(DllImport.UIAutomationCore, EntryPoint = "DockPattern_SetDockPosition", CharSet = CharSet.Unicode)]
1289[DllImport(DllImport.UIAutomationCore, EntryPoint = "ExpandCollapsePattern_Collapse", CharSet = CharSet.Unicode)]
1292[DllImport(DllImport.UIAutomationCore, EntryPoint = "ExpandCollapsePattern_Expand", CharSet = CharSet.Unicode)]
1295[DllImport(DllImport.UIAutomationCore, EntryPoint = "GridPattern_GetItem", CharSet = CharSet.Unicode)]
1298[DllImport(DllImport.UIAutomationCore, EntryPoint = "InvokePattern_Invoke", CharSet = CharSet.Unicode)]
1301[DllImport(DllImport.UIAutomationCore, EntryPoint = "MultipleViewPattern_GetViewName", CharSet = CharSet.Unicode)]
1304[DllImport(DllImport.UIAutomationCore, EntryPoint = "MultipleViewPattern_SetCurrentView", CharSet = CharSet.Unicode)]
1307[DllImport(DllImport.UIAutomationCore, EntryPoint = "RangeValuePattern_SetValue", CharSet = CharSet.Unicode)]
1310[DllImport(DllImport.UIAutomationCore, EntryPoint = "ScrollItemPattern_ScrollIntoView", CharSet = CharSet.Unicode)]
1313[DllImport(DllImport.UIAutomationCore, EntryPoint = "ScrollPattern_Scroll", CharSet = CharSet.Unicode)]
1316[DllImport(DllImport.UIAutomationCore, EntryPoint = "ScrollPattern_SetScrollPercent", CharSet = CharSet.Unicode)]
1319[DllImport(DllImport.UIAutomationCore, EntryPoint = "SelectionItemPattern_AddToSelection", CharSet = CharSet.Unicode)]
1322[DllImport(DllImport.UIAutomationCore, EntryPoint = "SelectionItemPattern_RemoveFromSelection", CharSet = CharSet.Unicode)]
1325[DllImport(DllImport.UIAutomationCore, EntryPoint = "SelectionItemPattern_Select", CharSet = CharSet.Unicode)]
1328[DllImport(DllImport.UIAutomationCore, EntryPoint = "TogglePattern_Toggle", CharSet = CharSet.Unicode)]
1331[DllImport(DllImport.UIAutomationCore, EntryPoint = "TransformPattern_Move", CharSet = CharSet.Unicode)]
1334[DllImport(DllImport.UIAutomationCore, EntryPoint = "TransformPattern_Resize", CharSet = CharSet.Unicode)]
1337[DllImport(DllImport.UIAutomationCore, EntryPoint = "TransformPattern_Rotate", CharSet = CharSet.Unicode)]
1340[DllImport(DllImport.UIAutomationCore, EntryPoint = "ValuePattern_SetValue", CharSet = CharSet.Unicode)]
1343[DllImport(DllImport.UIAutomationCore, EntryPoint = "WindowPattern_Close", CharSet = CharSet.Unicode)]
1346[DllImport(DllImport.UIAutomationCore, EntryPoint = "WindowPattern_SetWindowVisualState", CharSet = CharSet.Unicode)]
1349[DllImport(DllImport.UIAutomationCore, EntryPoint = "WindowPattern_WaitForInputIdle", CharSet = CharSet.Unicode)]
1352[DllImport(DllImport.UIAutomationCore, EntryPoint = "SynchronizedInputPattern_StartListening", CharSet = CharSet.Unicode)]
1355[DllImport(DllImport.UIAutomationCore, EntryPoint = "SynchronizedInputPattern_Cancel", CharSet = CharSet.Unicode)]
1358[DllImport(DllImport.UIAutomationCore, EntryPoint = "VirtualizedItemPattern_Realize", CharSet = CharSet.Unicode)]
1361[DllImport(DllImport.UIAutomationCore, EntryPoint = "ItemContainerPattern_FindItemByProperty", CharSet = CharSet.Unicode)]
1368[DllImport(DllImport.UIAutomationCore, EntryPoint = "TextPattern_GetSelection", CharSet = CharSet.Unicode)]
1371[DllImport(DllImport.UIAutomationCore, EntryPoint = "TextPattern_GetVisibleRanges", CharSet = CharSet.Unicode)]
1374[DllImport(DllImport.UIAutomationCore, EntryPoint = "TextPattern_RangeFromChild", CharSet = CharSet.Unicode)]
1377[DllImport(DllImport.UIAutomationCore, EntryPoint = "TextPattern_RangeFromPoint", CharSet = CharSet.Unicode)]
1380[DllImport(DllImport.UIAutomationCore, EntryPoint = "TextPattern_get_DocumentRange", CharSet = CharSet.Unicode)]
1383[DllImport(DllImport.UIAutomationCore, EntryPoint = "TextPattern_get_SupportedTextSelection", CharSet = CharSet.Unicode)]
1386[DllImport(DllImport.UIAutomationCore, EntryPoint = "TextRange_Clone", CharSet = CharSet.Unicode)]
1389[DllImport(DllImport.UIAutomationCore, EntryPoint = "TextRange_Compare", CharSet = CharSet.Unicode)]
1392[DllImport(DllImport.UIAutomationCore, EntryPoint = "TextRange_CompareEndpoints", CharSet = CharSet.Unicode)]
1395[DllImport(DllImport.UIAutomationCore, EntryPoint = "TextRange_ExpandToEnclosingUnit", CharSet = CharSet.Unicode)]
1398[DllImport(DllImport.UIAutomationCore, EntryPoint = "TextRange_FindAttribute", CharSet = CharSet.Unicode)]
1401[DllImport(DllImport.UIAutomationCore, EntryPoint = "TextRange_FindText", CharSet = CharSet.Unicode)]
1404[DllImport(DllImport.UIAutomationCore, EntryPoint = "TextRange_GetAttributeValue", CharSet = CharSet.Unicode)]
1407[DllImport(DllImport.UIAutomationCore, EntryPoint = "TextRange_GetBoundingRectangles", CharSet = CharSet.Unicode)]
1410[DllImport(DllImport.UIAutomationCore, EntryPoint = "TextRange_GetEnclosingElement", CharSet = CharSet.Unicode)]
1413[DllImport(DllImport.UIAutomationCore, EntryPoint = "TextRange_GetText", CharSet = CharSet.Unicode)]
1416[DllImport(DllImport.UIAutomationCore, EntryPoint = "TextRange_Move", CharSet = CharSet.Unicode)]
1419[DllImport(DllImport.UIAutomationCore, EntryPoint = "TextRange_MoveEndpointByUnit", CharSet = CharSet.Unicode)]
1422[DllImport(DllImport.UIAutomationCore, EntryPoint = "TextRange_MoveEndpointByRange", CharSet = CharSet.Unicode)]
1425[DllImport(DllImport.UIAutomationCore, EntryPoint = "TextRange_Select", CharSet = CharSet.Unicode)]
1428[DllImport(DllImport.UIAutomationCore, EntryPoint = "TextRange_AddToSelection", CharSet = CharSet.Unicode)]
1431[DllImport(DllImport.UIAutomationCore, EntryPoint = "TextRange_RemoveFromSelection", CharSet = CharSet.Unicode)]
1434[DllImport(DllImport.UIAutomationCore, EntryPoint = "TextRange_ScrollIntoView", CharSet = CharSet.Unicode)]
1437[DllImport(DllImport.UIAutomationCore, EntryPoint = "TextRange_GetChildren", CharSet = CharSet.Unicode)]
1552[DllImport(DllImport.UIAutomationCore, CharSet = CharSet.Unicode)]
MS\Win32\SafeNativeMethods.cs (24)
21[DllImport("user32.dll", ExactSpelling=true, CharSet=System.Runtime.InteropServices.CharSet.Auto)]
40[DllImport("user32.dll")]
69[DllImport("user32.dll", SetLastError = true)]
112[DllImport("user32.dll", CharSet=CharSet.Auto)]
122[DllImport("user32.dll", CharSet=CharSet.Auto)]
125[DllImport("user32.dll")]
136[DllImport("user32.dll", ExactSpelling = true, SetLastError = true)]
139[DllImport("user32.dll", SetLastError = true)]
142[DllImport("user32.dll", CharSet=CharSet.Auto)]
145[DllImport("user32.dll", CharSet=CharSet.Auto)]
148[DllImport("user32.dll")]
151[DllImport("user32.dll")]
154[DllImport("user32.dll", CharSet = CharSet.Auto, SetLastError = true)]
157[DllImport("user32.dll", CharSet = CharSet.Auto, SetLastError = true)]
160[DllImport("user32.dll", CharSet=CharSet.Auto)]
165[DllImport("DwmApi.dll")]
176[DllImport("gdi32.dll", CharSet = CharSet.Auto, SetLastError = true)]
179[DllImport("user32.dll", CharSet=CharSet.Auto)]
182[DllImport("gdi32.dll", CharSet = CharSet.Auto)]
191[DllImport("kernel32.dll", CharSet = CharSet.Auto, SetLastError = true)]
198[DllImport("Psapi.dll", CharSet = CharSet.Auto, SetLastError = true)]
206[DllImport("user32.dll", CharSet=CharSet.Auto)]
212[DllImport("user32.dll", CharSet = CharSet.Auto)]
218[DllImport("kernel32.dll", CharSet = CharSet.Auto)]
MS\Win32\UnsafeNativeMethods.cs (30)
24[DllImport("kernel32.dll", SetLastError = true)]
36[DllImport("kernel32.dll", CharSet = CharSet.Auto, SetLastError = true)]
92[DllImport("user32.dll", SetLastError = true)]
95[DllImport("user32.dll", CharSet=CharSet.Auto)]
98[DllImport("user32.dll", CharSet=CharSet.Auto)]
106[DllImport("user32.dll", CharSet = CharSet.Auto, SetLastError = true)]
109[DllImport("user32.dll", CharSet = CharSet.Auto, SetLastError = true)]
117[DllImport("user32.dll")]
134[DllImport("oleacc.dll")]
142[DllImport("oleacc.dll")]
145[DllImport("oleacc.dll", SetLastError = true)]
148[DllImport("user32.dll")]
151[DllImport("user32.dll")]
166[DllImport("user32.dll", EntryPoint = "WindowFromPoint", ExactSpelling = true, CharSet = CharSet.Auto)]
169[DllImport("user32.dll", EntryPoint = "WindowFromPhysicalPoint", ExactSpelling = true, CharSet = CharSet.Auto)]
187[DllImport("user32.dll", CharSet = CharSet.Auto, SetLastError = true)]
191[DllImport("user32.dll", CharSet = CharSet.Auto, SetLastError = true)]
197[DllImport("user32.dll", CharSet = CharSet.Auto, SetLastError = true)]
217[DllImport("user32.dll", CharSet = CharSet.Auto, SetLastError = true)]
221[DllImport("user32.dll", CharSet=CharSet.Auto)]
225[DllImport("user32.dll", CharSet=CharSet.Auto)]
229[DllImport("user32.dll", CharSet=CharSet.Auto)]
233[DllImport("user32.dll", CharSet = CharSet.Auto, SetLastError = true)]
300[DllImport("user32.dll", SetLastError = true)]
325[DllImport("user32.dll", CharSet = CharSet.Auto, SetLastError = true)]
328[DllImport("user32.dll", CharSet = CharSet.Auto, SetLastError = true)]
335[DllImport("user32.dll", CharSet = CharSet.Auto, SetLastError = true)]
338[DllImport("user32.dll", ExactSpelling = true, CharSet = CharSet.Auto)]
360[DllImport("gdi32.dll", CharSet = CharSet.Auto, SetLastError = true)]
367[DllImport("user32.dll", CharSet = CharSet.Unicode)]
src\Microsoft.DotNet.Wpf\src\Shared\MS\Win32\NativeMethodsSetLastError.cs (8)
40[DllImport(PresentationNativeDll, EntryPoint="GetWindowLongWrapper", CharSet=CharSet.Auto, SetLastError=true)]
43[DllImport(PresentationNativeDll, EntryPoint="GetWindowLongPtrWrapper", CharSet=CharSet.Auto, SetLastError=true)]
46[DllImport(PresentationNativeDll, EntryPoint="GlobalDeleteAtomWrapper", ExactSpelling = true, SetLastError = true)]
51[DllImport(PresentationNativeDll, EntryPoint="GetMenuBarInfoWrapper", SetLastError = true)]
54[DllImport(PresentationNativeDll, EntryPoint="GetWindowWrapper", ExactSpelling = true, SetLastError = true)]
57[DllImport(PresentationNativeDll, EntryPoint="MapWindowPointsWrapper", SetLastError = true, ExactSpelling=true, CharSet=CharSet.Auto)]
60[DllImport(PresentationNativeDll, EntryPoint="MapWindowPointsWrapper", SetLastError = true, ExactSpelling=true, CharSet=CharSet.Auto)]
160[DllImport(PresentationNativeDll, EntryPoint="LsDisableSpecialCharacterLigature")]
UIAutomationClientSideProviders (103)
MS\Win32\UnsafeNativeMethods.cs (78)
17[DllImport(ExternDll.Gdi32)]
19[DllImport(ExternDll.Gdi32, SetLastError = true)]
21[DllImport(ExternDll.Gdi32)]
23[DllImport(ExternDll.Gdi32)]
26[DllImport(ExternDll.Kernel32, SetLastError = true)]
28[DllImport(ExternDll.Kernel32, SetLastError = true)]
31[DllImport(ExternDll.Kernel32)]
33[DllImport(ExternDll.Kernel32, SetLastError = true)]
35[DllImport(ExternDll.Ntdll, CharSet = CharSet.Unicode)]
40[DllImport(ExternDll.Kernel32, ExactSpelling = true, CharSet = CharSet.Auto)]
42[DllImport(ExternDll.Kernel32, ExactSpelling = true, CharSet = CharSet.Auto)]
45[DllImport(ExternDll.Kernel32, SetLastError = true)]
47[DllImport(ExternDll.Kernel32, SetLastError = true)]
49[DllImport(ExternDll.Kernel32, SetLastError = true)]
51[DllImport(ExternDll.Kernel32, SetLastError = true)]
61[DllImport(ExternDll.Kernel32, SetLastError = true)]
63[DllImport(ExternDll.Kernel32, SetLastError = true)]
65[DllImport(ExternDll.Kernel32, SetLastError = true)]
68[DllImport("oleacc.dll")]
70[DllImport("oleacc.dll")]
72[DllImport("oleacc.dll")]
74[DllImport("oleacc.dll")]
82[DllImport("oleacc.dll", SetLastError=true)]
89[DllImport("ole32.dll")]
111[DllImport("user32.dll")]
114[DllImport("user32.dll")]
120[DllImport(ExternDll.Kernel32, CharSet = CharSet.Unicode, SetLastError = true)]
126[DllImport(ExternDll.User32, ExactSpelling = true, SetLastError = true)]
132[DllImport(ExternDll.User32)]
134[DllImport(ExternDll.User32)]
136[DllImport(ExternDll.User32)]
138[DllImport(ExternDll.User32, CharSet = CharSet.Unicode)]
140[DllImport (ExternDll.User32, CharSet = CharSet.Unicode)]
142[DllImport(ExternDll.User32, SetLastError = true)]
144[DllImport(ExternDll.User32)]
146[DllImport(ExternDll.User32, CharSet = CharSet.Unicode, SetLastError = true)]
148[DllImport(ExternDll.User32, SetLastError = true)]
156[DllImport(ExternDll.User32, CharSet = CharSet.Unicode)]
158[DllImport(ExternDll.User32, CharSet = CharSet.Unicode, SetLastError = true)]
160[DllImport(ExternDll.User32, CharSet = CharSet.Unicode)]
162[DllImport(ExternDll.User32, CharSet = CharSet.Unicode, SetLastError = true)]
164[DllImport(ExternDll.User32, CharSet = CharSet.Unicode, SetLastError = true)]
166[DllImport(ExternDll.User32, CharSet = CharSet.Unicode, SetLastError = true)]
168[DllImport(ExternDll.User32, CharSet = CharSet.Unicode, SetLastError = true)]
170[DllImport(ExternDll.User32, CharSet = CharSet.Unicode, SetLastError = true)]
172[DllImport(ExternDll.User32, CharSet = CharSet.Unicode, SetLastError = true)]
174[DllImport(ExternDll.User32, CharSet = CharSet.Unicode)]
182[DllImport(ExternDll.User32, CharSet = CharSet.Unicode)]
188[DllImport(ExternDll.User32, ExactSpelling = true)]
190[DllImport(ExternDll.User32, CharSet = CharSet.Unicode, SetLastError = true)]
192[DllImport(ExternDll.User32, SetLastError = true)]
194[DllImport(ExternDll.User32, CharSet = CharSet.Unicode)]
196[DllImport(ExternDll.User32, CharSet = CharSet.Unicode, SetLastError = true)]
225[DllImport(ExternDll.User32, CharSet = CharSet.Unicode, ExactSpelling = true, SetLastError = true)]
231[DllImport(ExternDll.User32, CharSet = CharSet.Auto, ExactSpelling = true, SetLastError = true)]
233[DllImport(ExternDll.User32, CharSet = CharSet.Auto, ExactSpelling = true, SetLastError = true)]
239[DllImport(ExternDll.DwmAPI, BestFitMapping = false)]
245[DllImport(ExternDll.User32, SetLastError = true)]
247[DllImport(ExternDll.User32, SetLastError = true)]
253[DllImport(ExternDll.User32, ExactSpelling = true, SetLastError = true)]
255[DllImport(ExternDll.User32, ExactSpelling = true)]
257[DllImport(ExternDll.User32, ExactSpelling = true)]
259[DllImport(ExternDll.User32, ExactSpelling = true, SetLastError = true)]
261[DllImport(ExternDll.User32, SetLastError = true)]
263[DllImport(ExternDll.User32, CharSet = CharSet.Unicode, ExactSpelling = true, SetLastError = true)]
265[DllImport(ExternDll.User32, ExactSpelling = true, SetLastError = true)]
267[DllImport(ExternDll.User32, ExactSpelling = true)]
269[DllImport(ExternDll.User32, ExactSpelling = true)]
271[DllImport(ExternDll.User32, CharSet = CharSet.Unicode, SetLastError = true)]
273[DllImport(ExternDll.User32, ExactSpelling = true)]
276[DllImport(ExternDll.User32, ExactSpelling = true, SetLastError = true)]
305[DllImport(ExternDll.User32, EntryPoint = "WindowFromPoint", ExactSpelling = true, CharSet = CharSet.Auto)]
308[DllImport(ExternDll.User32, EntryPoint = "WindowFromPhysicalPoint", ExactSpelling = true, CharSet = CharSet.Auto)]
362[DllImport(ExternDll.User32, CharSet = CharSet.Unicode, SetLastError = true)]
407[DllImport(ExternDll.User32, CharSet = CharSet.Unicode)]
426[DllImport(ExternDll.User32, ExactSpelling = true, SetLastError = true)]
428[DllImport(ExternDll.User32, ExactSpelling = true)]
435[DllImport(ExternDll.User32, ExactSpelling = true)]
src\Microsoft.DotNet.Wpf\src\Shared\MS\Win32\NativeMethodsSetLastError.cs (13)
40[DllImport(PresentationNativeDll, EntryPoint="GetWindowLongWrapper", CharSet=CharSet.Auto, SetLastError=true)]
43[DllImport(PresentationNativeDll, EntryPoint="GetWindowLongPtrWrapper", CharSet=CharSet.Auto, SetLastError=true)]
46[DllImport(PresentationNativeDll, EntryPoint="GlobalDeleteAtomWrapper", ExactSpelling = true, SetLastError = true)]
65[DllImport(PresentationNativeDll, EntryPoint="GetAncestorWrapper", CharSet = CharSet.Auto)]
68[DllImport(PresentationNativeDll, EntryPoint="FindWindowExWrapper", CharSet = CharSet.Unicode, SetLastError = true)]
71[DllImport(PresentationNativeDll, EntryPoint="GetMenuBarInfoWrapper", SetLastError = true)]
74[DllImport(PresentationNativeDll, EntryPoint="GetTextExtentPoint32Wrapper", SetLastError = true)]
77[DllImport(PresentationNativeDll, EntryPoint="GetWindowWrapper", ExactSpelling = true, SetLastError = true)]
80[DllImport(PresentationNativeDll, EntryPoint = "GetWindowTextWrapper", CharSet=CharSet.Auto, BestFitMapping = false, SetLastError = true)]
83[DllImport(PresentationNativeDll, EntryPoint="MapWindowPointsWrapper", ExactSpelling = true, SetLastError = true)]
86[DllImport(PresentationNativeDll, EntryPoint="MapWindowPointsWrapper", ExactSpelling = true, SetLastError = true)]
89[DllImport(PresentationNativeDll, EntryPoint="SetScrollPosWrapper", SetLastError = true)]
160[DllImport(PresentationNativeDll, EntryPoint="LsDisableSpecialCharacterLigature")]
UIAutomationProvider (9)
MS\Internal\Automation\UiaCoreProviderApi.cs (9)
116[DllImport(DllImport.UIAutomationCore, EntryPoint = "UiaReturnRawElementProvider", CharSet = CharSet.Unicode)]
119[DllImport(DllImport.UIAutomationCore, EntryPoint = "UiaHostProviderFromHwnd", CharSet = CharSet.Unicode)]
124[DllImport(DllImport.UIAutomationCore, EntryPoint = "UiaRaiseAutomationPropertyChangedEvent", CharSet = CharSet.Unicode)]
127[DllImport(DllImport.UIAutomationCore, EntryPoint = "UiaRaiseAutomationEvent", CharSet = CharSet.Unicode)]
130[DllImport(DllImport.UIAutomationCore, EntryPoint = "UiaRaiseStructureChangedEvent", CharSet = CharSet.Unicode)]
133[DllImport(DllImport.UIAutomationCore, EntryPoint = "UiaRaiseAsyncContentLoadedEvent", CharSet = CharSet.Unicode)]
136[DllImport(DllImport.UIAutomationCore, EntryPoint = "UiaRaiseNotificationEvent", CharSet = CharSet.Unicode)]
140[DllImport(DllImport.UIAutomationCore, EntryPoint = "UiaRaiseActiveTextPositionChangedEvent", CharSet = CharSet.Unicode)]
143[DllImport(DllImport.UIAutomationCore, EntryPoint = "UiaClientsAreListening", CharSet = CharSet.Unicode)]
UIAutomationTypes (127)
src\Microsoft.DotNet.Wpf\src\Shared\MS\Win32\NativeMethodsSetLastError.cs (22)
95[DllImport(PresentationNativeDll, EntryPoint="EnableWindowWrapper", SetLastError = true, ExactSpelling = true, CharSet = System.Runtime.InteropServices.CharSet.Auto)]
98[DllImport(PresentationNativeDll, EntryPoint="GetAncestorWrapper", CharSet = CharSet.Auto)]
101[DllImport(PresentationNativeDll, EntryPoint="GetKeyboardLayoutListWrapper", SetLastError = true, ExactSpelling=true, CharSet=CharSet.Auto)]
104[DllImport(PresentationNativeDll, EntryPoint="GetParentWrapper", SetLastError = true)]
107[DllImport(PresentationNativeDll, EntryPoint="GetWindowWrapper", ExactSpelling = true, SetLastError = true)]
110[DllImport(PresentationNativeDll, EntryPoint="GetWindowLongWrapper", CharSet=CharSet.Auto, SetLastError=true)]
113[DllImport(PresentationNativeDll, EntryPoint="GetWindowLongWrapper", CharSet=CharSet.Auto, SetLastError=true)]
116[DllImport(PresentationNativeDll, EntryPoint="GetWindowLongWrapper", CharSet=CharSet.Auto, SetLastError=true)]
119[DllImport(PresentationNativeDll, EntryPoint="GetWindowLongPtrWrapper", CharSet=CharSet.Auto, SetLastError=true)]
122[DllImport(PresentationNativeDll, EntryPoint="GetWindowLongPtrWrapper", CharSet=CharSet.Auto, SetLastError=true)]
125[DllImport(PresentationNativeDll, EntryPoint="GetWindowLongPtrWrapper", CharSet=CharSet.Auto, SetLastError=true)]
128[DllImport(PresentationNativeDll, EntryPoint = "GetWindowTextWrapper", CharSet=CharSet.Auto, BestFitMapping = false, SetLastError = true)]
131[DllImport(PresentationNativeDll, EntryPoint = "GetWindowTextLengthWrapper", CharSet = System.Runtime.InteropServices.CharSet.Auto, SetLastError = true)]
134[DllImport(PresentationNativeDll, EntryPoint="MapWindowPointsWrapper", SetLastError = true, ExactSpelling=true, CharSet=CharSet.Auto)]
137[DllImport(PresentationNativeDll, EntryPoint="SetFocusWrapper", SetLastError = true)]
140[DllImport(PresentationNativeDll, EntryPoint="SetWindowLongWrapper", CharSet=CharSet.Auto)]
143[DllImport(PresentationNativeDll, EntryPoint="SetWindowLongWrapper", CharSet=CharSet.Auto)]
146[DllImport(PresentationNativeDll, EntryPoint="SetWindowLongWrapper", CharSet=CharSet.Auto, SetLastError=true)]
149[DllImport(PresentationNativeDll, EntryPoint="SetWindowLongPtrWrapper", CharSet=CharSet.Auto)]
152[DllImport(PresentationNativeDll, EntryPoint="SetWindowLongPtrWrapper", CharSet=CharSet.Auto)]
155[DllImport(PresentationNativeDll, EntryPoint="SetWindowLongPtrWrapper", CharSet=CharSet.Auto, SetLastError=true)]
160[DllImport(PresentationNativeDll, EntryPoint="LsDisableSpecialCharacterLigature")]
src\Microsoft.DotNet.Wpf\src\Shared\MS\Win32\UnsafeNativeMethodsCLR.cs (78)
45[DllImport(ExternDll.Uxtheme, CharSet = CharSet.Auto, BestFitMapping = false)]
53[DllImport(ExternDll.User32, EntryPoint = "SetWindowPos", ExactSpelling = true, CharSet = CharSet.Auto, SetLastError = true)]
56[DllImport(ExternDll.User32, ExactSpelling = true, CharSet = CharSet.Auto, SetLastError = true)]
59[DllImport(ExternDll.Shcore, CharSet = CharSet.Auto, SetLastError = true)]
62[DllImport(ExternDll.User32, EntryPoint = "IsProcessDPIAware", CharSet = CharSet.Auto, SetLastError = true)]
65[DllImport(ExternDll.Kernel32, CharSet = CharSet.Auto, SetLastError = true)]
68[DllImport(ExternDll.User32, EntryPoint = "EnableNonClientDpiScaling", CharSet = CharSet.Auto, SetLastError = true)]
71[DllImport(ExternDll.User32, SetLastError = true, CharSet = CharSet.Auto, BestFitMapping = false)]
74[DllImport(ExternDll.User32, SetLastError = true, CharSet = CharSet.Auto, BestFitMapping = false)]
77[DllImport(ExternDll.Uxtheme, CharSet = CharSet.Auto, BestFitMapping = false, EntryPoint = "SetWindowTheme")]
80[DllImport(ExternDll.Gdi32, SetLastError = true, ExactSpelling = true, EntryPoint = "CreateCompatibleBitmap", CharSet = CharSet.Auto)]
83[DllImport(ExternDll.Gdi32, EntryPoint = "GetStockObject", SetLastError = true, CharSet = CharSet.Auto)]
86[DllImport(ExternDll.User32, EntryPoint = "FillRect", SetLastError = true, CharSet = CharSet.Auto)]
89[DllImport(ExternDll.Gdi32, SetLastError = true, ExactSpelling = true, CharSet = CharSet.Auto)]
92[DllImport(ExternDll.User32, ExactSpelling = true, CharSet = CharSet.Auto)]
105[DllImport(ExternDll.Gdi32, SetLastError = true, ExactSpelling = true, EntryPoint = "DeleteObject", CharSet = CharSet.Auto)]
108[DllImport(ExternDll.Gdi32, EntryPoint = "SelectObject", SetLastError = true, ExactSpelling = true, CharSet = CharSet.Auto)]
111[DllImport(ExternDll.User32, EntryPoint = "PrintWindow", SetLastError = true, ExactSpelling = true, CharSet = CharSet.Auto)]
114[DllImport(ExternDll.User32, EntryPoint = "RedrawWindow", ExactSpelling = true, CharSet = CharSet.Auto)]
117[DllImport(ExternDll.Shell32, CharSet = CharSet.Auto, BestFitMapping = false)]
158[DllImport(ExternDll.Shell32, CharSet = CharSet.Unicode, SetLastError = true)]
164[DllImport(ExternDll.Kernel32, ExactSpelling = true, CharSet = CharSet.Unicode, SetLastError = true)]
218[DllImport("oleacc.dll")]
221[DllImport("user32.dll")]
224[DllImport(ExternDll.Ole32, EntryPoint = "OleInitialize")]
232[DllImport(ExternDll.User32, ExactSpelling = true, CharSet = CharSet.Auto)]
235[DllImport(ExternDll.Ole32, ExactSpelling = true, CharSet = CharSet.Auto, SetLastError = true)]
238[DllImport(ExternDll.Kernel32, EntryPoint = "CloseHandle", CharSet = CharSet.Auto, SetLastError = true)]
261[DllImport(ExternDll.Kernel32, EntryPoint = "UnmapViewOfFile", CharSet = CharSet.Auto, SetLastError = true)]
303[DllImport(ExternDll.Gdi32, SetLastError = true, CharSet = CharSet.Auto)]
306[DllImport(ExternDll.User32, ExactSpelling = true, CharSet = CharSet.Auto)]
309[DllImport(ExternDll.User32, EntryPoint = "GetCursorPos", ExactSpelling = true, CharSet = CharSet.Auto, SetLastError = true)]
322[DllImport(ExternDll.User32, EntryPoint = "GetCursorPos", ExactSpelling = true, CharSet = CharSet.Auto)]
489[DllImport(ExternDll.User32, ExactSpelling = true, CharSet = CharSet.Auto)]
492[DllImport(ExternDll.User32, SetLastError = true, ExactSpelling = true, CharSet = CharSet.Auto)]
495[DllImport(ExternDll.User32, ExactSpelling = true, CharSet = CharSet.Auto)]
498[DllImport(ExternDll.Kernel32, EntryPoint = "GetModuleHandle", CharSet = CharSet.Auto, BestFitMapping = false, ThrowOnUnmappableChar = true, SetLastError = true)]
513[DllImport(ExternDll.User32, CharSet = CharSet.Auto)]
517[DllImport(ExternDll.Kernel32, SetLastError = true, EntryPoint = "GetProcAddress", CharSet = CharSet.Ansi, BestFitMapping = false)]
538[DllImport(ExternDll.Kernel32, EntryPoint = "GetProcAddress", CharSet = CharSet.Ansi, BestFitMapping = false)]
541[DllImport(ExternDll.Kernel32, CharSet = CharSet.Unicode)]
707[DllImport(ExternDll.Kernel32, CallingConvention = CallingConvention.Winapi, CharSet = CharSet.Unicode, SetLastError = true)]
734[DllImport(ExternDll.Kernel32, CallingConvention = CallingConvention.Winapi, CharSet = CharSet.Unicode, SetLastError = true)]
741[DllImport(ExternDll.Kernel32, CallingConvention = CallingConvention.Winapi, CharSet = CharSet.Unicode, SetLastError = true)]
750[DllImport(ExternDll.User32, SetLastError = true, CharSet = CharSet.Auto, BestFitMapping = false)]
753[DllImport(ExternDll.User32, SetLastError = true, CharSet = CharSet.Auto, BestFitMapping = false)]
756[DllImport(ExternDll.User32, SetLastError = true, CharSet = CharSet.Auto, BestFitMapping = false)]
759[DllImport(ExternDll.User32, SetLastError = true, CharSet = CharSet.Auto, BestFitMapping = false)]
762[DllImport(ExternDll.User32, SetLastError = true, CharSet = CharSet.Auto, BestFitMapping = false)]
765[DllImport(ExternDll.Kernel32, CharSet = CharSet.Auto, ExactSpelling = true)]
768[DllImport(ExternDll.User32, EntryPoint = "ClientToScreen", SetLastError = true, ExactSpelling = true, CharSet = CharSet.Auto)]
779[DllImport(ExternDll.User32, ExactSpelling = true, CharSet = CharSet.Auto)]
782[DllImport(ExternDll.User32, ExactSpelling = true, CharSet = CharSet.Auto)]
785[DllImport(ExternDll.Ole32, ExactSpelling = true, CharSet = CharSet.Auto)]
788[DllImport(ExternDll.Ole32, ExactSpelling = true, CharSet = CharSet.Auto)]
819[DllImport(ExternDll.User32, ExactSpelling = true, EntryPoint = "BeginPaint", CharSet = CharSet.Auto)]
827[DllImport(ExternDll.User32, ExactSpelling = true, EntryPoint = "EndPaint", CharSet = CharSet.Auto)]
835[DllImport(ExternDll.User32, SetLastError = true, ExactSpelling = true, EntryPoint = "GetDC", CharSet = CharSet.Auto)]
848[DllImport(ExternDll.User32, ExactSpelling = true, EntryPoint = "ReleaseDC", CharSet = CharSet.Auto)]
857[DllImport(ExternDll.Gdi32, SetLastError = true, ExactSpelling = true, CharSet = CharSet.Auto)]
860[DllImport(ExternDll.User32, ExactSpelling = true, CharSet = CharSet.Auto)]
863[DllImport(ExternDll.User32, ExactSpelling = true, CharSet = CharSet.Auto)]
867[DllImport(ExternDll.User32, ExactSpelling = true, CharSet = CharSet.Auto, SetLastError = true)]
870[DllImport(ExternDll.User32, SetLastError = true)]
881[DllImport(ExternDll.User32, ExactSpelling = true, EntryPoint = "DestroyCursor", CharSet = CharSet.Auto)]
889[DllImport(ExternDll.User32, EntryPoint = "DestroyIcon", CharSet = CharSet.Auto, SetLastError = true)]
910[DllImport(ExternDll.Gdi32, EntryPoint = "DeleteObject", CharSet = CharSet.Auto, SetLastError = true)]
954[DllImport(ExternDll.Gdi32, SetLastError = true, ExactSpelling = true, CharSet = CharSet.Auto, EntryPoint = "CreateBitmap")]
969[DllImport(ExternDll.User32, SetLastError = true, ExactSpelling = true, CharSet = CharSet.Auto, EntryPoint = "CreateIconIndirect")]
984[DllImport(ExternDll.User32, ExactSpelling = true, CharSet = CharSet.Auto)]
1041[DllImport(ExternDll.User32, EntryPoint = "CreateWindowEx", CharSet = CharSet.Auto, BestFitMapping = false, SetLastError = true)]
1060[DllImport(ExternDll.User32, SetLastError = true, EntryPoint = "DestroyWindow", CharSet = CharSet.Auto)]
1070[DllImport(ExternDll.User32)]
1073[DllImport(ExternDll.User32)]
2624[DllImport(ExternDll.Oleaut32, PreserveSig = true)]
2653[DllImport(ExternDll.User32, SetLastError = true, CharSet = CharSet.Auto)]
2659[DllImport(ExternDll.User32, SetLastError = true, CharSet = CharSet.Auto)]
2747[DllImport(ExternDll.User32, CallingConvention = CallingConvention.Winapi)]
src\Microsoft.DotNet.Wpf\src\Shared\System\Windows\Interop\OSVersionHelper.cs (20)
126[DllImport(DllImport.PresentationNative, CallingConvention = CallingConvention.Cdecl)]
130[DllImport(DllImport.PresentationNative, CallingConvention = CallingConvention.Cdecl)]
134[DllImport(DllImport.PresentationNative, CallingConvention = CallingConvention.Cdecl)]
138[DllImport(DllImport.PresentationNative, CallingConvention = CallingConvention.Cdecl)]
142[DllImport(DllImport.PresentationNative, CallingConvention = CallingConvention.Cdecl)]
146[DllImport(DllImport.PresentationNative, CallingConvention = CallingConvention.Cdecl)]
150[DllImport(DllImport.PresentationNative, CallingConvention = CallingConvention.Cdecl)]
154[DllImport(DllImport.PresentationNative, CallingConvention = CallingConvention.Cdecl)]
158[DllImport(DllImport.PresentationNative, CallingConvention = CallingConvention.Cdecl)]
162[DllImport(DllImport.PresentationNative, CallingConvention = CallingConvention.Cdecl)]
166[DllImport(DllImport.PresentationNative, CallingConvention = CallingConvention.Cdecl)]
170[DllImport(DllImport.PresentationNative, CallingConvention = CallingConvention.Cdecl)]
174[DllImport(DllImport.PresentationNative, CallingConvention = CallingConvention.Cdecl)]
178[DllImport(DllImport.PresentationNative, CallingConvention = CallingConvention.Cdecl)]
182[DllImport(DllImport.PresentationNative, CallingConvention = CallingConvention.Cdecl)]
186[DllImport(DllImport.PresentationNative, CallingConvention = CallingConvention.Cdecl)]
190[DllImport(DllImport.PresentationNative, CallingConvention = CallingConvention.Cdecl)]
194[DllImport(DllImport.PresentationNative, CallingConvention = CallingConvention.Cdecl)]
198[DllImport(DllImport.PresentationNative, CallingConvention = CallingConvention.Cdecl)]
202[DllImport(DllImport.PresentationNative, CallingConvention = CallingConvention.Cdecl)]
vbc (3)
VBCSCompiler (4)
WindowsFormsIntegration (13)
WinFormsControlsTest (2)
xunit.console (2)
common\AssemblyResolution\Microsoft.DotNet.PlatformAbstractions\Native\NativeMethods.Darwin.cs (1)
45[DllImport("libc")]
common\AssemblyResolution\Microsoft.DotNet.PlatformAbstractions\Native\NativeMethods.Windows.cs (1)
25[DllImport("ntdll")]
56 references to DllImport
Microsoft.CodeAnalysis.CSharp.Scripting.UnitTests (3)
Microsoft.CodeAnalysis.VisualBasic (1)
Microsoft.Extensions.Diagnostics.ResourceMonitoring (1)
Microsoft.Interop.LibraryImportGenerator (21)
Analyzers\ConvertToLibraryImportFixer.cs (15)
149nameof(DllImportAttribute.EntryPoint),
150nameof(DllImportAttribute.BestFitMapping),
151nameof(DllImportAttribute.CallingConvention),
152nameof(DllImportAttribute.CharSet),
153nameof(DllImportAttribute.ExactSpelling),
154nameof(DllImportAttribute.PreserveSig),
155nameof(DllImportAttribute.SetLastError),
157nameof(DllImportAttribute.ThrowOnUnmappableChar)
441&& IsMatchingNamedArg(attrArg, nameof(DllImportAttribute.BestFitMapping)))
448else if (IsMatchingNamedArg(attrArg, nameof(DllImportAttribute.CharSet)))
481&& IsMatchingNamedArg(attrArg, nameof(DllImportAttribute.ThrowOnUnmappableChar)))
488else if (IsMatchingNamedArg(attrArg, nameof(DllImportAttribute.CallingConvention)))
500else if (IsMatchingNamedArg(attrArg, nameof(DllImportAttribute.ExactSpelling)))
504else if (IsMatchingNamedArg(attrArg, nameof(DllImportAttribute.EntryPoint)))
534else if (IsMatchingNamedArg(attrArg, nameof(DllImportAttribute.PreserveSig)))
Microsoft.Interop.LibraryImportGenerator.Downlevel (6)
mscorlib (1)
netstandard (1)
System.Private.CoreLib (10)
System.Reflection.MetadataLoadContext (11)
System\Reflection\TypeLoading\Methods\RoDefinitionMethod.DllImport.cs (9)
37DllImportAttribute dia = _decoder.ComputeDllImportAttribute();
42attributeType.ToCustomAttributeNamedArgument(nameof(DllImportAttribute.EntryPoint), ct[CoreType.String], dia.EntryPoint),
43attributeType.ToCustomAttributeNamedArgument(nameof(DllImportAttribute.CharSet), ct[CoreType.CharSet], (int)dia.CharSet),
44attributeType.ToCustomAttributeNamedArgument(nameof(DllImportAttribute.CallingConvention), ct[CoreType.CallingConvention], (int)dia.CallingConvention),
45attributeType.ToCustomAttributeNamedArgument(nameof(DllImportAttribute.ExactSpelling), ct[CoreType.Boolean], dia.ExactSpelling),
46attributeType.ToCustomAttributeNamedArgument(nameof(DllImportAttribute.PreserveSig), ct[CoreType.Boolean], dia.PreserveSig),
47attributeType.ToCustomAttributeNamedArgument(nameof(DllImportAttribute.SetLastError), ct[CoreType.Boolean], dia.SetLastError),
48attributeType.ToCustomAttributeNamedArgument(nameof(DllImportAttribute.BestFitMapping), ct[CoreType.Boolean], dia.BestFitMapping),
49attributeType.ToCustomAttributeNamedArgument(nameof(DllImportAttribute.ThrowOnUnmappableChar), ct[CoreType.Boolean], dia.ThrowOnUnmappableChar),
System.Runtime.InteropServices (1)