17 references to SetLastError
Microsoft.CodeAnalysis (2)
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (5)
Microsoft.CodeAnalysis.VisualBasic (1)
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (7)
Attributes\AttributeTests_WellKnownAttributes.vb (7)
1516MethodImportAttributes.SetLastError Or
1544MethodImportAttributes.SetLastError Or
1904New With {.n = 21, .attr = MakeDllImport(setLastError:=True), .expected = MethodImportAttributes.CallingConventionWinApi Or MethodImportAttributes.SetLastError},
1913New With {.n = 27, .attr = "<DllImport(""bar"", CharSet:=CType(15, CharSet), SetLastError:=True)>", .expected = MethodImportAttributes.CallingConventionWinApi Or MethodImportAttributes.SetLastError},
1914New With {.n = 28, .attr = "<DllImport(""bar"", CallingConvention:=CType(15, CallingConvention), SetLastError:=True)>", .expected = MethodImportAttributes.CallingConventionWinApi Or MethodImportAttributes.SetLastError}
2779MethodImportAttributes.SetLastError, import.Attributes)
2808Const declareFlags = MethodImportAttributes.CallingConventionWinApi Or MethodImportAttributes.SetLastError
System.Reflection.Emit (1)
System.Reflection.MetadataLoadContext (1)