20 references to PInvokeAttributes
mscorlib (20)
system\reflection\mdimport.cs (2)
723out PInvokeAttributes attributes, 733attributes = (PInvokeAttributes)_attributes;
system\runtime\interopservices\attributes.cs (18)
785PInvokeAttributes flags = 0; 791switch (flags & PInvokeAttributes.CharSetMask) 793case PInvokeAttributes.CharSetNotSpec: charSet = CharSet.None; break; 794case PInvokeAttributes.CharSetAnsi: charSet = CharSet.Ansi; break; 795case PInvokeAttributes.CharSetUnicode: charSet = CharSet.Unicode; break; 796case PInvokeAttributes.CharSetAuto: charSet = CharSet.Auto; break; 804switch (flags & PInvokeAttributes.CallConvMask) 806case PInvokeAttributes.CallConvWinapi: callingConvention = CallingConvention.Winapi; break; 807case PInvokeAttributes.CallConvCdecl: callingConvention = CallingConvention.Cdecl; break; 808case PInvokeAttributes.CallConvStdcall: callingConvention = CallingConvention.StdCall; break; 809case PInvokeAttributes.CallConvThiscall: callingConvention = CallingConvention.ThisCall; break; 810case PInvokeAttributes.CallConvFastcall: callingConvention = CallingConvention.FastCall; break; 816bool exactSpelling = (flags & PInvokeAttributes.NoMangle) != 0; 817bool setLastError = (flags & PInvokeAttributes.SupportsLastError) != 0; 818bool bestFitMapping = (flags & PInvokeAttributes.BestFitMask) == PInvokeAttributes.BestFitEnabled; 819bool throwOnUnmappableChar = (flags & PInvokeAttributes.ThrowOnUnmappableCharMask) == PInvokeAttributes.ThrowOnUnmappableCharEnabled;