56 references to CallingConventionWinApi
Microsoft.CodeAnalysis (1)
Symbols\PlatformInvokeInformation.cs (1)
201
result |= MethodImportAttributes.
CallingConventionWinApi
;
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (25)
Attributes\AttributeTests_WellKnownAttributes.cs (25)
2857
new { attr = MakeDllImport(), expected = MethodImportAttributes.
CallingConventionWinApi
}, // M0
2862
new { attr = MakeDllImport(cc: CallingConvention.Winapi), expected = MethodImportAttributes.
CallingConventionWinApi
}, // M5
2865
new { attr = MakeDllImport(), expected = MethodImportAttributes.
CallingConventionWinApi
}, // M6
2866
new { attr = MakeDllImport(charSet: CharSet.None), expected = MethodImportAttributes.
CallingConventionWinApi
}, // M7
2867
new { attr = MakeDllImport(charSet: CharSet.Ansi), expected = MethodImportAttributes.
CallingConventionWinApi
| MethodImportAttributes.CharSetAnsi }, // M8
2868
new { attr = MakeDllImport(charSet: CharSet.Unicode), expected =MethodImportAttributes.
CallingConventionWinApi
| MethodImportAttributes.CharSetUnicode }, // M9
2869
new { attr = MakeDllImport(charSet: CharSet.Auto), expected = MethodImportAttributes.
CallingConventionWinApi
| MethodImportAttributes.CharSetAuto }, // M10
2871
new { attr = MakeDllImport(exactSpelling: true), expected = MethodImportAttributes.
CallingConventionWinApi
| MethodImportAttributes.ExactSpelling }, // M11
2872
new { attr = MakeDllImport(exactSpelling: false), expected = MethodImportAttributes.
CallingConventionWinApi
}, // M12
2874
new { attr = MakeDllImport(charSet: CharSet.Ansi, exactSpelling: true), expected = MethodImportAttributes.
CallingConventionWinApi
| MethodImportAttributes.ExactSpelling | MethodImportAttributes.CharSetAnsi }, // M13
2875
new { attr = MakeDllImport(charSet: CharSet.Ansi, exactSpelling: false), expected = MethodImportAttributes.
CallingConventionWinApi
| MethodImportAttributes.CharSetAnsi }, // M14
2876
new { attr = MakeDllImport(charSet: CharSet.Unicode, exactSpelling: true), expected = MethodImportAttributes.
CallingConventionWinApi
| MethodImportAttributes.ExactSpelling | MethodImportAttributes.CharSetUnicode },// M15
2877
new { attr = MakeDllImport(charSet: CharSet.Unicode, exactSpelling: false), expected = MethodImportAttributes.
CallingConventionWinApi
| MethodImportAttributes.CharSetUnicode }, // M16
2878
new { attr = MakeDllImport(charSet: CharSet.Auto, exactSpelling: true), expected = MethodImportAttributes.
CallingConventionWinApi
| MethodImportAttributes.ExactSpelling | MethodImportAttributes.CharSetAuto }, // M17
2879
new { attr = MakeDllImport(charSet: CharSet.Auto, exactSpelling: false), expected = MethodImportAttributes.
CallingConventionWinApi
| MethodImportAttributes.CharSetAuto }, // M18
2882
new { attr = MakeDllImport(preserveSig: true), expected = MethodImportAttributes.
CallingConventionWinApi
}, // M19
2883
new { attr = MakeDllImport(preserveSig: false), expected = MethodImportAttributes.
CallingConventionWinApi
}, // M20
2886
new { attr = MakeDllImport(setLastError: true), expected = MethodImportAttributes.
CallingConventionWinApi
| MethodImportAttributes.SetLastError}, // M21
2887
new { attr = MakeDllImport(setLastError: false), expected = MethodImportAttributes.
CallingConventionWinApi
}, // M22
2890
new { attr = MakeDllImport(bestFitMapping: true), expected = MethodImportAttributes.
CallingConventionWinApi
| MethodImportAttributes.BestFitMappingEnable}, // M23
2891
new { attr = MakeDllImport(bestFitMapping: false), expected = MethodImportAttributes.
CallingConventionWinApi
| MethodImportAttributes.BestFitMappingDisable}, // M24
2894
new { attr = MakeDllImport(throwOnUnmappableChar: true), expected = MethodImportAttributes.
CallingConventionWinApi
| MethodImportAttributes.ThrowOnUnmappableCharEnable}, // M23
2895
new { attr = MakeDllImport(throwOnUnmappableChar: false), expected = MethodImportAttributes.
CallingConventionWinApi
| MethodImportAttributes.ThrowOnUnmappableCharDisable}, // M24
2899
expected = MethodImportAttributes.
CallingConventionWinApi
| MethodImportAttributes.SetLastError }, // M25
2903
expected = MethodImportAttributes.
CallingConventionWinApi
| MethodImportAttributes.SetLastError }, // M26
Microsoft.CodeAnalysis.VisualBasic (1)
Symbols\Source\SourceMethodSymbol.vb (1)
298
Return result Or MethodImportAttributes.
CallingConventionWinApi
Or MethodImportAttributes.SetLastError
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (27)
Attributes\AttributeTests_WellKnownAttributes.vb (27)
1878
New With {.n = 0, .attr = MakeDllImport(), .expected = MethodImportAttributes.
CallingConventionWinApi
},
1883
New With {.n = 5, .attr = MakeDllImport(cc:=CallingConvention.Winapi), .expected = MethodImportAttributes.
CallingConventionWinApi
},
1885
New With {.n = 6, .attr = MakeDllImport(), .expected = MethodImportAttributes.
CallingConventionWinApi
},
1886
New With {.n = 7, .attr = MakeDllImport(charSet:=CharSet.None), .expected = MethodImportAttributes.
CallingConventionWinApi
},
1887
New With {.n = 8, .attr = MakeDllImport(charSet:=CharSet.Ansi), .expected = MethodImportAttributes.
CallingConventionWinApi
Or MethodImportAttributes.CharSetAnsi},
1888
New With {.n = 9, .attr = MakeDllImport(charSet:=CharSet.Unicode), .expected = MethodImportAttributes.
CallingConventionWinApi
Or MethodImportAttributes.CharSetUnicode},
1889
New With {.n = 10, .attr = MakeDllImport(charSet:=CharSet.Auto), .expected = MethodImportAttributes.
CallingConventionWinApi
Or MethodImportAttributes.CharSetAuto},
1891
New With {.n = 11, .attr = MakeDllImport(exactSpelling:=True), .expected = MethodImportAttributes.
CallingConventionWinApi
Or MethodImportAttributes.ExactSpelling},
1892
New With {.n = 12, .attr = MakeDllImport(exactSpelling:=False), .expected = MethodImportAttributes.
CallingConventionWinApi
},
1894
New With {.n = 13, .attr = MakeDllImport(charSet:=CharSet.Ansi, exactSpelling:=True), .expected = MethodImportAttributes.
CallingConventionWinApi
Or MethodImportAttributes.ExactSpelling Or MethodImportAttributes.CharSetAnsi},
1895
New With {.n = 14, .attr = MakeDllImport(charSet:=CharSet.Ansi, exactSpelling:=False), .expected = MethodImportAttributes.
CallingConventionWinApi
Or MethodImportAttributes.CharSetAnsi},
1896
New With {.n = 15, .attr = MakeDllImport(charSet:=CharSet.Unicode, exactSpelling:=True), .expected = MethodImportAttributes.
CallingConventionWinApi
Or MethodImportAttributes.ExactSpelling Or MethodImportAttributes.CharSetUnicode},
1897
New With {.n = 16, .attr = MakeDllImport(charSet:=CharSet.Unicode, exactSpelling:=False), .expected = MethodImportAttributes.
CallingConventionWinApi
Or MethodImportAttributes.CharSetUnicode},
1898
New With {.n = 17, .attr = MakeDllImport(charSet:=CharSet.Auto, exactSpelling:=True), .expected = MethodImportAttributes.
CallingConventionWinApi
Or MethodImportAttributes.ExactSpelling Or MethodImportAttributes.CharSetAuto},
1899
New With {.n = 18, .attr = MakeDllImport(charSet:=CharSet.Auto, exactSpelling:=False), .expected = MethodImportAttributes.
CallingConventionWinApi
Or MethodImportAttributes.CharSetAuto},
1901
New With {.n = 19, .attr = MakeDllImport(preserveSig:=True), .expected = MethodImportAttributes.
CallingConventionWinApi
},
1902
New With {.n = 20, .attr = MakeDllImport(preserveSig:=False), .expected = MethodImportAttributes.
CallingConventionWinApi
},
1904
New With {.n = 21, .attr = MakeDllImport(setLastError:=True), .expected = MethodImportAttributes.
CallingConventionWinApi
Or MethodImportAttributes.SetLastError},
1905
New With {.n = 22, .attr = MakeDllImport(setLastError:=False), .expected = MethodImportAttributes.
CallingConventionWinApi
},
1907
New With {.n = 23, .attr = MakeDllImport(bestFitMapping:=True), .expected = MethodImportAttributes.
CallingConventionWinApi
Or MethodImportAttributes.BestFitMappingEnable},
1908
New With {.n = 24, .attr = MakeDllImport(bestFitMapping:=False), .expected = MethodImportAttributes.
CallingConventionWinApi
Or MethodImportAttributes.BestFitMappingDisable},
1910
New With {.n = 25, .attr = MakeDllImport(throwOnUnmappableChar:=True), .expected = MethodImportAttributes.
CallingConventionWinApi
Or MethodImportAttributes.ThrowOnUnmappableCharEnable},
1911
New With {.n = 26, .attr = MakeDllImport(throwOnUnmappableChar:=False), .expected = MethodImportAttributes.
CallingConventionWinApi
Or MethodImportAttributes.ThrowOnUnmappableCharDisable},
1913
New With {.n = 27, .attr = "<DllImport(""bar"", CharSet:=CType(15, CharSet), SetLastError:=True)>", .expected = MethodImportAttributes.
CallingConventionWinApi
Or MethodImportAttributes.SetLastError},
1914
New With {.n = 28, .attr = "<DllImport(""bar"", CallingConvention:=CType(15, CallingConvention), SetLastError:=True)>", .expected = MethodImportAttributes.
CallingConventionWinApi
Or MethodImportAttributes.SetLastError}
2778
MethodImportAttributes.
CallingConventionWinApi
Or
2808
Const declareFlags = MethodImportAttributes.
CallingConventionWinApi
Or MethodImportAttributes.SetLastError
System.Reflection.Emit (1)
System\Reflection\Emit\PseudoCustomAttributesData.cs (1)
125
_ => MethodImportAttributes.
CallingConventionWinApi
// Roslyn defaults with this
System.Reflection.MetadataLoadContext (1)
System\Reflection\TypeLoading\MethodBase\Ecma\EcmaMethodDecoder.cs (1)
137
MethodImportAttributes.
CallingConventionWinApi
=> CallingConvention.Winapi,