17 references to SetLastError
Microsoft.CodeAnalysis (2)
Symbols\PlatformInvokeInformation.cs (2)
93return (_flags & MethodImportAttributes.SetLastError) != 0; 195result |= MethodImportAttributes.SetLastError;
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (5)
Attributes\AttributeTests_WellKnownAttributes.cs (5)
2711MethodImportAttributes.SetLastError | 2738MethodImportAttributes.SetLastError | 2886new { attr = MakeDllImport(setLastError: true), expected = MethodImportAttributes.CallingConventionWinApi | MethodImportAttributes.SetLastError}, // M21 2899expected = MethodImportAttributes.CallingConventionWinApi | MethodImportAttributes.SetLastError }, // M25 2903expected = MethodImportAttributes.CallingConventionWinApi | MethodImportAttributes.SetLastError }, // M26
Microsoft.CodeAnalysis.VisualBasic (1)
Symbols\Source\SourceMethodSymbol.vb (1)
298Return result Or MethodImportAttributes.CallingConventionWinApi Or MethodImportAttributes.SetLastError
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\Emit\PseudoCustomAttributesData.cs (1)
67importAttributes |= MethodImportAttributes.SetLastError;
System.Reflection.MetadataLoadContext (1)
System\Reflection\TypeLoading\MethodBase\Ecma\EcmaMethodDecoder.cs (1)
147SetLastError = (a & MethodImportAttributes.SetLastError) != 0,