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