144 writes to CallingConvention
Microsoft.Build.Framework (1)
NativeMethods.cs (1)
1828
[DllImport("kernel32.dll", CharSet = CharSet.Auto,
CallingConvention
= CallingConvention.StdCall,
Microsoft.CodeAnalysis.UnitTests (3)
MetadataReferences\FusionAssemblyIdentityComparer.cs (1)
97
[DllImport("clr",
CallingConvention
= CallingConvention.StdCall, CharSet = CharSet.Unicode, PreserveSig = true)]
MetadataReferences\FusionAssemblyPortabilityPolicy.cs (2)
61
[DllImport("clr",
CallingConvention
= CallingConvention.StdCall, CharSet = CharSet.Unicode, PreserveSig = false)]
64
[DllImport("clr",
CallingConvention
= CallingConvention.StdCall, CharSet = CharSet.Unicode, PreserveSig = true)]
Microsoft.CodeAnalysis.Workspaces.MSBuild.Contracts (2)
MonoMSBuildDiscovery.cs (2)
45
[DllImport("libc", EntryPoint = "realpath", CharSet = CharSet.Ansi, ExactSpelling = true,
CallingConvention
= CallingConvention.Cdecl)]
49
[DllImport("libc", EntryPoint = "free", ExactSpelling = true,
CallingConvention
= CallingConvention.Cdecl)]
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 (7)
OlsLinearRegression.cs (3)
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]
SymSgdClassificationTrainer.cs (1)
932
[DllImport(MklPath, EntryPoint = "DftiErrorMessage",
CallingConvention
= CallingConvention.Cdecl, CharSet = CharSet.Auto), SuppressUnmanagedCodeSecurity]
VectorWhitening.cs (3)
532
[DllImport(MklPath,
CallingConvention
= CallingConvention.Cdecl, EntryPoint = "cblas_sgemv"), SuppressUnmanagedCodeSecurity]
537
[DllImport(MklPath,
CallingConvention
= CallingConvention.Cdecl, EntryPoint = "cblas_sgemm"), SuppressUnmanagedCodeSecurity]
542
[DllImport(MklPath,
CallingConvention
= CallingConvention.Cdecl, EntryPoint = "LAPACKE_sgesvd"), SuppressUnmanagedCodeSecurity]
Microsoft.ML.TestFrameworkCommon (1)
Attributes\AttributeHelpers.cs (1)
40
[DllImport("libc", ExactSpelling = true,
CallingConvention
= CallingConvention.Cdecl)]
Microsoft.ML.TimeSeries (11)
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 (3)
174
[DllImport(MklPath,
CallingConvention
= CallingConvention.Cdecl, EntryPoint = "DftiCommitDescriptor"), SuppressUnmanagedCodeSecurity]
178
[DllImport(MklPath,
CallingConvention
= CallingConvention.Cdecl, EntryPoint = "DftiFreeDescriptor"), SuppressUnmanagedCodeSecurity]
202
[DllImport(MklPath, EntryPoint = "DftiErrorMessage",
CallingConvention
= CallingConvention.Cdecl, CharSet = CharSet.Auto), SuppressUnmanagedCodeSecurity]
Microsoft.ML.Vision (4)
ImageClassificationTrainer.cs (4)
1524
[DllImport("tensorflow",
CallingConvention
= CallingConvention.Cdecl)]
1527
[DllImport("tensorflow",
CallingConvention
= CallingConvention.Cdecl)]
1530
[DllImport("tensorflow",
CallingConvention
= CallingConvention.Cdecl)]
1580
[DllImport("tensorflow",
CallingConvention
= CallingConvention.Cdecl)]
PresentationCore (38)
MS\Internal\WindowsRuntime\Windows\UI\ViewManagement\NativeMethods.cs (4)
18
[DllImport(DllImport.ApiSetWinRTString,
CallingConvention
= CallingConvention.StdCall)]
23
[DllImport(DllImport.ApiSetWinRTString,
CallingConvention
= CallingConvention.StdCall)]
26
[DllImport(DllImport.ApiSetWinRT,
CallingConvention
= CallingConvention.StdCall)]
29
[DllImport(DllImport.ApiSetWinRT,
CallingConvention
= CallingConvention.StdCall)]
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\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)]
PresentationFramework (25)
MS\Internal\WindowsRuntime\Generated\WinRT.cs (5)
58
[DllImport("api-ms-win-core-winrt-string-l1-1-0.dll",
CallingConvention
= CallingConvention.StdCall)]
63
[DllImport("api-ms-win-core-winrt-string-l1-1-0.dll",
CallingConvention
= CallingConvention.StdCall)]
69
[DllImport("api-ms-win-core-winrt-string-l1-1-0.dll",
CallingConvention
= CallingConvention.StdCall)]
72
[DllImport("api-ms-win-core-winrt-string-l1-1-0.dll",
CallingConvention
= CallingConvention.StdCall)]
76
[DllImport("api-ms-win-core-winrt-string-l1-1-0.dll",
CallingConvention
= CallingConvention.StdCall)]
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)]
PresentationUI (1)
MS\Internal\Documents\Application\CommandEnforcer.cs (1)
201
[DllImport("msdrm.dll", SetLastError = false, CharSet = CharSet.Unicode,
CallingConvention
= CallingConvention.StdCall)]
ReachFramework (1)
PrintSystemExceptions\InteropWin32ApiThunk.cs (1)
27
CallingConvention
= CallingConvention.Winapi)]
System.Net.Quic (2)
System\Net\Quic\Interop\msquic_generated.cs (2)
3116
[DllImport("msquic",
CallingConvention
= CallingConvention.Cdecl, ExactSpelling = true)]
3120
[DllImport("msquic",
CallingConvention
= CallingConvention.Cdecl, ExactSpelling = true)]
System.Private.CoreLib (1)
src\System\Reflection\RuntimeCustomAttributeData.cs (1)
2223
attribute.
CallingConvention
= callingConvention;
System.Reflection.MetadataLoadContext (1)
System\Reflection\TypeLoading\MethodBase\Ecma\EcmaMethodDecoder.cs (1)
145
CallingConvention
= callConv,
UIAutomationTypes (24)
src\Microsoft.DotNet.Wpf\src\Shared\MS\Win32\UnsafeNativeMethodsCLR.cs (4)
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)]
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)]
6 references to CallingConvention
Microsoft.CodeAnalysis.CSharp.Scripting.UnitTests (1)
InteractiveSessionTests.cs (1)
282
Assert.Equal(CallingConvention.Cdecl, dllImport.
CallingConvention
);
Microsoft.Interop.LibraryImportGenerator (2)
Analyzers\ConvertToLibraryImportFixer.cs (2)
151
nameof(DllImportAttribute.
CallingConvention
),
488
else if (IsMatchingNamedArg(attrArg, nameof(DllImportAttribute.
CallingConvention
)))
System.Private.CoreLib (1)
src\System\Reflection\RuntimeCustomAttributeData.cs (1)
332
new CustomAttributeNamedArgument(type.GetField("CallingConvention")!, dllImport.
CallingConvention
),
System.Reflection.MetadataLoadContext (2)
System\Reflection\TypeLoading\Methods\RoDefinitionMethod.DllImport.cs (2)
44
attributeType.ToCustomAttributeNamedArgument(nameof(DllImportAttribute.
CallingConvention
), ct[CoreType.CallingConvention], (int)dia.
CallingConvention
),