262 references to CallingConvention
Microsoft.Build.Framework (1)
Microsoft.CodeAnalysis (11)
Microsoft.CodeAnalysis.CSharp (3)
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (2)
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (10)
Attributes\AttributeTests_WellKnownAttributes.cs (9)
270attrSym.VerifyValue(0, TypedConstantKind.Enum, (int)CallingConvention.StdCall);
2482attrSym.VerifyNamedArgumentValue(0, "CallingConvention", TypedConstantKind.Enum, (int)CallingConvention.FastCall);
2770Assert.Equal(CallingConvention.Winapi, info.CallingConvention);
2858new { attr = MakeDllImport(cc: CallingConvention.Cdecl), expected = MethodImportAttributes.CallingConventionCDecl }, // M1
2859new { attr = MakeDllImport(cc: CallingConvention.FastCall), expected = MethodImportAttributes.CallingConventionFastCall }, // M2
2860new { attr = MakeDllImport(cc: CallingConvention.StdCall), expected = MethodImportAttributes.CallingConventionStdCall }, // M3
2861new { attr = MakeDllImport(cc: CallingConvention.ThisCall), expected = MethodImportAttributes.CallingConventionThisCall }, // M4
2862new { attr = MakeDllImport(cc: CallingConvention.Winapi), expected = MethodImportAttributes.CallingConventionWinApi }, // M5
2940CallingConvention? cc = null,
Microsoft.CodeAnalysis.CSharp.Scripting.UnitTests (1)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (1)
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (2)
Microsoft.CodeAnalysis.UnitTests (3)
Microsoft.CodeAnalysis.VisualBasic (3)
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (13)
Attributes\AttributeTests_WellKnownAttributes.vb (13)
218Assert.Equal(CallingConvention.StdCall, CType(attrSym.CommonConstructorArguments(0).Value, CallingConvention)) ' 3
1234Assert.Equal(CallingConvention.FastCall, CType(attrSym.CommonNamedArguments(0).Value.Value, CallingConvention))
1580Assert.Equal(CallingConvention.Winapi, info.CallingConvention)
1616Assert.Equal(CallingConvention.Winapi, info.CallingConvention)
1626Assert.Equal(CallingConvention.Winapi, info.CallingConvention)
1879New With {.n = 1, .attr = MakeDllImport(cc:=CallingConvention.Cdecl), .expected = MethodImportAttributes.CallingConventionCDecl},
1880New With {.n = 2, .attr = MakeDllImport(cc:=CallingConvention.FastCall), .expected = MethodImportAttributes.CallingConventionFastCall},
1881New With {.n = 3, .attr = MakeDllImport(cc:=CallingConvention.StdCall), .expected = MethodImportAttributes.CallingConventionStdCall},
1882New With {.n = 4, .attr = MakeDllImport(cc:=CallingConvention.ThisCall), .expected = MethodImportAttributes.CallingConventionThisCall},
1883New With {.n = 5, .attr = MakeDllImport(cc:=CallingConvention.Winapi), .expected = MethodImportAttributes.CallingConventionWinApi},
1950Private Function MakeDllImport(Optional cc As CallingConvention? = Nothing, Optional charSet As CharSet? = Nothing, Optional exactSpelling As Boolean? = Nothing, Optional preserveSig As Boolean? = Nothing, Optional setLastError As Boolean? = Nothing, Optional bestFitMapping As Boolean? = Nothing, Optional throwOnUnmappableChar As Boolean? = Nothing) As String
Microsoft.CodeAnalysis.Workspaces.MSBuild (2)
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (2)
Microsoft.Interop.LibraryImportGenerator (6)
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)
Microsoft.ML.TestFrameworkCommon (1)
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 (5)
mscorlib (1)
netstandard (1)
PresentationCore (39)
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 (27)
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)
ReachFramework (1)
System.Private.CoreLib (37)
System.Reflection.Emit (18)
System\Reflection\Emit\ModuleBuilderImpl.cs (8)
1290CallingConventions callingConvention, Type? returnType, Type[]? parameterTypes, CallingConvention nativeCallConv, CharSet nativeCharSet)
1372internal int GetSignatureToken(CallingConvention callingConvention, Type? returnType, Type[]? parameterTypes) =>
1376private static SignatureCallingConvention GetSignatureConvention(CallingConvention callingConvention) =>
1379CallingConvention.Winapi => SignatureCallingConvention.Default, // TODO: platform-specific
1380CallingConvention.Cdecl => SignatureCallingConvention.CDecl,
1381CallingConvention.StdCall => SignatureCallingConvention.StdCall,
1382CallingConvention.ThisCall => SignatureCallingConvention.ThisCall,
1383CallingConvention.FastCall => SignatureCallingConvention.FastCall,
System.Reflection.MetadataLoadContext (6)
System.Runtime.InteropServices (1)
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)]