10 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)
299Return result Or 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,