840 references to CharSet
csc (3)
src\Compilers\Shared\NativeMethods.cs (3)
14[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)] 76[DllImport("kernel32.dll", CharSet = CharSet.Unicode, SetLastError = true)] 93[DllImport("kernel32.dll", CharSet = CharSet.Unicode, SetLastError = true)]
Microsoft.Build.Framework (15)
NativeMethods.cs (15)
286[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Auto)] 1682[DllImport("kernel32.dll", SetLastError = true, CharSet = CharSet.Unicode)] 1692[DllImport("kernel32.dll", PreserveSig = true, BestFitMapping = false, ThrowOnUnmappableChar = true, CharSet = CharSet.Ansi, SetLastError = true)] 1696[DllImport("kernel32.dll", CharSet = CharSet.Unicode, PreserveSig = true, SetLastError = true)] 1706[DllImport(kernel32Dll, SetLastError = true, CharSet = CharSet.Unicode)] 1725[DllImport("kernel32.dll", SetLastError = true, CharSet = CharSet.Unicode)] 1730[DllImport("kernel32.dll", SetLastError = true, CharSet = CharSet.Unicode, EntryPoint = "SetCurrentDirectory")] 1753[DllImport("kernel32.dll", SetLastError = true, CharSet = CharSet.Unicode)] 1766[DllImport("kernel32.dll", CharSet = CharSet.Auto, SetLastError = true)] 1770[DllImport("kernel32.dll", CharSet = CharSet.Unicode, BestFitMapping = false)] 1774[DllImport("kernel32.dll", CharSet = CharSet.Unicode, BestFitMapping = false)] 1778[DllImport("kernel32.dll", CharSet = CharSet.Auto, SetLastError = true)] 1782[DllImport("kernel32.dll", CharSet = CharSet.Auto, SetLastError = true)] 1801[DllImport("kernel32.dll", CharSet = CharSet.Auto, CallingConvention = CallingConvention.StdCall, 1830[DllImport("kernel32.dll", SetLastError = true, CharSet = CharSet.Unicode)]
Microsoft.Build.Tasks.CodeAnalysis (3)
src\Compilers\Shared\NativeMethods.cs (3)
14[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)] 76[DllImport("kernel32.dll", CharSet = CharSet.Unicode, SetLastError = true)] 93[DllImport("kernel32.dll", CharSet = CharSet.Unicode, SetLastError = true)]
Microsoft.Build.Tasks.CodeAnalysis.Sdk (3)
src\Compilers\Shared\NativeMethods.cs (3)
14[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)] 76[DllImport("kernel32.dll", CharSet = CharSet.Unicode, SetLastError = true)] 93[DllImport("kernel32.dll", CharSet = CharSet.Unicode, SetLastError = true)]
Microsoft.CodeAnalysis (42)
CodeGen\PrivateImplementationDetails.cs (2)
1078public CharSet StringFormat => CharSet.Ansi;
Emit\EditAndContinue\DeletedSourceTypeDefinition.cs (1)
65public CharSet StringFormat => OldDefinition.StringFormat;
Emit\NoPia\CommonEmbeddedType.cs (2)
81protected abstract System.Runtime.InteropServices.CharSet StringFormat { get; } 525System.Runtime.InteropServices.CharSet Cci.ITypeDefinition.StringFormat
InternalUtilities\FileLockCheck.cs (4)
35[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)] 55[DllImport(RestartManagerDll, CharSet = CharSet.Unicode)] 97[DllImport(RestartManagerDll, CharSet = CharSet.Unicode)] 118[DllImport(RestartManagerDll, CharSet = CharSet.Unicode)]
MetadataReader\TypeAttributesExtensions.cs (4)
30/// Extracts <see cref="CharSet"/> information from TypeDef flags. 33internal static CharSet ToCharSet(this TypeAttributes flags) 41return CharSet.Ansi; 44return CharSet.Unicode;
PEWriter\Constants.cs (4)
13public const CharSet CharSet_None = (CharSet)1; 14public const CharSet CharSet_Auto = (CharSet)4;
PEWriter\MetadataWriter.cs (1)
1521case CharSet.Unicode:
PEWriter\RootModuleType.cs (2)
185public CharSet StringFormat 187get { return CharSet.Ansi; }
PEWriter\Types.cs (1)
600CharSet StringFormat { get; }
Symbols\Attributes\CommonAttributeData.cs (7)
460CharSet defaultCharSet, 472CharSet charSet = (defaultCharSet != Cci.Constants.CharSet_None) ? defaultCharSet : CharSet.Ansi; 497charSet = namedArg.Value.DecodeValue<CharSet>(SpecialType.System_Enum); 501charSet = CharSet.Ansi; 504case CharSet.Ansi: 506case CharSet.Unicode:
Symbols\Attributes\CommonModuleWellKnownAttributeData.cs (3)
40internal CharSet DefaultCharacterSet 46return (CharSet)_defaultCharacterSet; 62internal static bool IsValidCharSet(CharSet value)
Symbols\Attributes\CommonTypeWellKnownAttributeData.cs (5)
172private CharSet _charSet; 175public void SetStructLayout(TypeLayout layout, CharSet charSet) 178Debug.Assert(charSet == CharSet.Ansi || charSet == CharSet.Unicode || charSet == Cci.Constants.CharSet_Auto); 204public CharSet MarshallingCharSet
Symbols\PlatformInvokeInformation.cs (6)
63public CharSet CharacterSet 70return CharSet.Ansi; 73return CharSet.Unicode; 168internal static MethodImportAttributes MakeFlags(bool exactSpelling, CharSet charSet, bool setLastError, CallingConvention callingConvention, bool? useBestFit, bool? throwOnUnmappable) 178case CharSet.Ansi: 182case CharSet.Unicode:
Microsoft.CodeAnalysis.CSharp (34)
Emitter\Model\NamedTypeSymbolAdapter.cs (1)
747CharSet Cci.ITypeDefinition.StringFormat
Emitter\NoPia\EmbeddedType.cs (1)
235protected override System.Runtime.InteropServices.CharSet StringFormat
Symbols\AnonymousTypes\PublicSymbols\AnonymousManager.TypeOrDelegatePublicSymbol.cs (1)
229internal sealed override CharSet MarshallingCharSet
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.TypeOrDelegateTemplateSymbol.cs (1)
293internal sealed override CharSet MarshallingCharSet
Symbols\ErrorTypeSymbol.cs (1)
501internal override CharSet MarshallingCharSet
Symbols\Metadata\PE\PEModuleSymbol.cs (1)
685internal override CharSet? DefaultMarshallingCharSet
Symbols\Metadata\PE\PENamedTypeSymbol.cs (3)
2517internal override CharSet MarshallingCharSet 2521CharSet result = _flags.ToCharSet(); 2526return CharSet.Ansi;
Symbols\MissingModuleSymbol.cs (1)
189internal override CharSet? DefaultMarshallingCharSet
Symbols\ModuleSymbol.cs (1)
325internal abstract CharSet? DefaultMarshallingCharSet { get; }
Symbols\NamedTypeSymbol.cs (3)
1566protected CharSet DefaultMarshallingCharSet 1570return this.GetEffectiveDefaultMarshallingCharSet() ?? CharSet.Ansi; 1577internal abstract CharSet MarshallingCharSet { get; }
Symbols\Retargeting\RetargetingModuleSymbol.cs (1)
297internal override CharSet? DefaultMarshallingCharSet
Symbols\Source\ImplicitNamedTypeSymbol.cs (1)
141internal override CharSet MarshallingCharSet
Symbols\Source\SourceFixedFieldSymbol.cs (1)
193internal override CharSet MarshallingCharSet
Symbols\Source\SourceMethodSymbolWithAttributes.cs (2)
861CharSet charSet = this.GetEffectiveDefaultMarshallingCharSet() ?? Cci.Constants.CharSet_None; 890charSet = namedArg.Value.DecodeValue<CharSet>(SpecialType.System_Enum);
Symbols\Source\SourceModuleSymbol.cs (4)
570CharSet charSet = attribute.GetConstructorArgument<CharSet>(0, SpecialType.System_Enum); 680internal override CharSet? DefaultMarshallingCharSet 685return data != null && data.HasDefaultCharSetAttribute ? data.DefaultCharacterSet : (CharSet?)null;
Symbols\Source\SourceNamedTypeSymbol.cs (1)
1539internal override CharSet MarshallingCharSet
Symbols\Symbol.cs (2)
895/// <see cref="CharSet"/> effective for this symbol (type or DllImport method). 901internal CharSet? GetEffectiveDefaultMarshallingCharSet()
Symbols\Synthesized\ReadOnlyListType\SynthesizedReadOnlyListEnumeratorTypeSymbol.cs (1)
192internal override CharSet MarshallingCharSet => DefaultMarshallingCharSet;
Symbols\Synthesized\ReadOnlyListType\SynthesizedReadOnlyListTypeSymbol.cs (1)
869internal override CharSet MarshallingCharSet => DefaultMarshallingCharSet;
Symbols\Synthesized\SynthesizedContainer.cs (1)
192internal override CharSet MarshallingCharSet => DefaultMarshallingCharSet;
Symbols\Synthesized\SynthesizedEmbeddedAttributeSymbol.cs (1)
137internal override CharSet MarshallingCharSet => DefaultMarshallingCharSet;
Symbols\Synthesized\SynthesizedHotReloadExceptionSymbol.cs (1)
121internal override CharSet MarshallingCharSet => DefaultMarshallingCharSet;
Symbols\Synthesized\SynthesizedInlineArrayTypeSymbol.cs (1)
123internal override CharSet MarshallingCharSet => DefaultMarshallingCharSet;
Symbols\Synthesized\SynthesizedPrivateImplementationDetailsType.cs (1)
106internal override CharSet MarshallingCharSet => _privateImplementationDetails.StringFormat;
Symbols\Wrapped\WrappedNamedTypeSymbol.cs (1)
225internal override CharSet MarshallingCharSet
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (19)
CodeGen\CodeGenDynamicTests.cs (1)
829Assert.Equal(CharSet.Ansi, d.MarshallingCharSet);
CodeGen\CodeGenLocalFunctionTests.cs (2)
5776Assert.Equal(CharSet.None, importData.CharacterSet); 5848Assert.Equal(CharSet.Ansi, importData.CharacterSet);
CodeGen\FixedSizeBufferTests.cs (11)
965foreach (var charSet in new[] { CharSet.Ansi, CharSet.Auto, CharSet.None, CharSet.Unicode }) 983Assert.Equal(charSet == CharSet.None ? CharSet.Ansi : charSet, test.MarshallingCharSet); 988Assert.Equal(charSet == CharSet.None ? CharSet.Ansi : charSet, bufferType.MarshallingCharSet); 1015Assert.Equal(CharSet.Ansi, test.MarshallingCharSet); 1020Assert.Equal(CharSet.Ansi, bufferType.MarshallingCharSet);
Emit\NoPiaEmbedTypes.cs (5)
1181Assert.Equal(System.Runtime.InteropServices.CharSet.Ansi, itest1.MarshallingCharSet); 1203Assert.Equal(System.Runtime.InteropServices.CharSet.Ansi, test2.MarshallingCharSet); 1223Assert.Equal(System.Runtime.InteropServices.CharSet.Ansi, itest3.MarshallingCharSet); 1235Assert.Equal(System.Runtime.InteropServices.CharSet.Unicode, test5.MarshallingCharSet); 1263Assert.Equal(System.Runtime.InteropServices.CharSet.Ansi, test9.MarshallingCharSet);
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (17)
Attributes\AttributeTests_WellKnownAttributes.cs (16)
274attrSym.VerifyNamedArgumentValue(1, "CharSet", TypedConstantKind.Enum, (int)CharSet.Ansi); 474attrSym.VerifyNamedArgumentValue(2, "CharSet", TypedConstantKind.Enum, (int)CharSet.Unicode); 2490attrSym.VerifyNamedArgumentValue(0, "CharSet", TypedConstantKind.Enum, (int)CharSet.Unicode); 2729Assert.Equal(CharSet.Unicode, info.CharacterSet); 2769Assert.Equal(CharSet.None, info.CharacterSet); 2866new { attr = MakeDllImport(charSet: CharSet.None), expected = MethodImportAttributes.CallingConventionWinApi }, // M7 2867new { attr = MakeDllImport(charSet: CharSet.Ansi), expected = MethodImportAttributes.CallingConventionWinApi | MethodImportAttributes.CharSetAnsi }, // M8 2868new { attr = MakeDllImport(charSet: CharSet.Unicode), expected =MethodImportAttributes.CallingConventionWinApi | MethodImportAttributes.CharSetUnicode }, // M9 2869new { attr = MakeDllImport(charSet: CharSet.Auto), expected = MethodImportAttributes.CallingConventionWinApi | MethodImportAttributes.CharSetAuto }, // M10 2874new { attr = MakeDllImport(charSet: CharSet.Ansi, exactSpelling: true), expected = MethodImportAttributes.CallingConventionWinApi | MethodImportAttributes.ExactSpelling | MethodImportAttributes.CharSetAnsi }, // M13 2875new { attr = MakeDllImport(charSet: CharSet.Ansi, exactSpelling: false), expected = MethodImportAttributes.CallingConventionWinApi | MethodImportAttributes.CharSetAnsi }, // M14 2876new { attr = MakeDllImport(charSet: CharSet.Unicode, exactSpelling: true), expected = MethodImportAttributes.CallingConventionWinApi | MethodImportAttributes.ExactSpelling | MethodImportAttributes.CharSetUnicode },// M15 2877new { attr = MakeDllImport(charSet: CharSet.Unicode, exactSpelling: false), expected = MethodImportAttributes.CallingConventionWinApi | MethodImportAttributes.CharSetUnicode }, // M16 2878new { attr = MakeDllImport(charSet: CharSet.Auto, exactSpelling: true), expected = MethodImportAttributes.CallingConventionWinApi | MethodImportAttributes.ExactSpelling | MethodImportAttributes.CharSetAuto }, // M17 2879new { attr = MakeDllImport(charSet: CharSet.Auto, exactSpelling: false), expected = MethodImportAttributes.CallingConventionWinApi | MethodImportAttributes.CharSetAuto }, // M18 2941CharSet? charSet = null,
PartialEventsAndConstructorsTests.cs (1)
1724Assert.Equal(CharSet.None, importData.CharacterSet);
Microsoft.CodeAnalysis.CSharp.Scripting.UnitTests (1)
InteractiveSessionTests.cs (1)
283Assert.Equal(CharSet.Unicode, dllImport.CharSet);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (1)
Semantics\TopLevelStatementsTests.cs (1)
6203Assert.Equal(CharSet.Ansi, importData.CharacterSet);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (4)
Symbols\ExtendedPartialMethodsTests.cs (1)
1170Assert.Equal(CharSet.None, importData.CharacterSet);
Symbols\Metadata\PE\LoadingAttributes.cs (1)
758attrSym.VerifyNamedArgumentValue(1, "CharSet", TypedConstantKind.Enum, (int)CharSet.Ansi);
Symbols\MockNamedTypeSymbol.cs (1)
304internal override System.Runtime.InteropServices.CharSet MarshallingCharSet
Symbols\PartialPropertiesTests.cs (1)
798Assert.Equal(CharSet.None, importData.CharacterSet);
Microsoft.CodeAnalysis.EditorFeatures (1)
Utilities\NativeMethods.cs (1)
17[DllImport("user32.dll", CharSet = CharSet.Auto)]
Microsoft.CodeAnalysis.Remote.ServiceHub (1)
Services\BrokeredServiceBase.cs (1)
201[DllImport("kernel32.dll", CharSet = CharSet.Unicode, SetLastError = true)]
Microsoft.CodeAnalysis.Remote.Workspaces (1)
BrokeredServiceConnection.cs (1)
414[DllImport("kernel32.dll", CharSet = CharSet.Auto, SetLastError = true)]
Microsoft.CodeAnalysis.Scripting (1)
src\Compilers\Shared\GlobalAssemblyCacheHelpers\FusionAssemblyIdentity.cs (1)
123[DllImport("clr", EntryPoint = "CreateAssemblyNameObject", CharSet = CharSet.Unicode, PreserveSig = true)]
Microsoft.CodeAnalysis.UnitTests (4)
MetadataReferences\FusionAssemblyIdentityComparer.cs (1)
97[DllImport("clr", CallingConvention = CallingConvention.StdCall, CharSet = CharSet.Unicode, PreserveSig = true)]
MetadataReferences\FusionAssemblyPortabilityPolicy.cs (2)
61[DllImport("clr", CallingConvention = CallingConvention.StdCall, CharSet = CharSet.Unicode, PreserveSig = false)] 64[DllImport("clr", CallingConvention = CallingConvention.StdCall, CharSet = CharSet.Unicode, PreserveSig = true)]
src\Compilers\Shared\GlobalAssemblyCacheHelpers\FusionAssemblyIdentity.cs (1)
123[DllImport("clr", EntryPoint = "CreateAssemblyNameObject", CharSet = CharSet.Unicode, PreserveSig = true)]
Microsoft.CodeAnalysis.VisualBasic (38)
Emit\NamedTypeSymbolAdapter.vb (1)
747Private ReadOnly Property ITypeDefinitionStringFormat As CharSet Implements ITypeDefinition.StringFormat
Emit\NoPia\EmbeddedType.vb (1)
183Protected Overrides ReadOnly Property StringFormat As System.Runtime.InteropServices.CharSet
Lowering\StateMachineRewriter\SynthesizedContainer.vb (1)
104Friend NotOverridable Overrides ReadOnly Property MarshallingCharSet As System.Runtime.InteropServices.CharSet
SymbolDisplay\SymbolDisplayVisitor.Members.vb (2)
461Case Cci.Constants.CharSet_None, CharSet.Ansi 469Case CharSet.Unicode
Symbols\AnonymousTypes\PublicSymbols\AnonymousTypeOrDelegatePublicSymbol.vb (1)
58Friend Overrides ReadOnly Property MarshallingCharSet As CharSet
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousTypeOrDelegateTemplateSymbol.vb (1)
115Friend Overrides ReadOnly Property MarshallingCharSet As CharSet
Symbols\ErrorTypeSymbol.vb (1)
177Friend Overrides ReadOnly Property MarshallingCharSet As CharSet
Symbols\Metadata\PE\PEModuleSymbol.vb (1)
409Friend Overrides ReadOnly Property DefaultMarshallingCharSet As CharSet?
Symbols\Metadata\PE\PENamedTypeSymbol.vb (3)
208Friend Overrides ReadOnly Property MarshallingCharSet As CharSet 210Dim result As CharSet = _flags.ToCharSet() 212Return CharSet.Ansi
Symbols\MissingModuleSymbol.vb (1)
166Friend Overrides ReadOnly Property DefaultMarshallingCharSet As CharSet?
Symbols\ModuleSymbol.vb (1)
250Friend MustOverride ReadOnly Property DefaultMarshallingCharSet As CharSet?
Symbols\NamedTypeSymbol.vb (3)
212Protected ReadOnly Property DefaultMarshallingCharSet As CharSet 214Return If(EffectiveDefaultMarshallingCharSet, CharSet.Ansi) 221Friend MustOverride ReadOnly Property MarshallingCharSet As CharSet
Symbols\Retargeting\RetargetingModuleSymbol.vb (1)
271Friend Overrides ReadOnly Property DefaultMarshallingCharSet As CharSet?
Symbols\Retargeting\RetargetingNamedTypeSymbol.vb (1)
279Friend Overrides ReadOnly Property MarshallingCharSet As CharSet
Symbols\Source\ImplicitNamedTypeSymbol.vb (1)
114Friend Overrides ReadOnly Property MarshallingCharSet As CharSet
Symbols\Source\SourceMethodSymbol.vb (2)
1678Dim charSet As CharSet = If(Me.EffectiveDefaultMarshallingCharSet, Microsoft.Cci.Constants.CharSet_None) 1699charSet = namedArg.Value.DecodeValue(Of CharSet)(SpecialType.System_Enum)
Symbols\Source\SourceModuleSymbol.vb (4)
1084Dim charSet As CharSet = attrData.GetConstructorArgument(Of CharSet)(0, SpecialType.System_Enum) 1113Friend Overrides ReadOnly Property DefaultMarshallingCharSet As CharSet? 1116Return If(data IsNot Nothing AndAlso data.HasDefaultCharSetAttribute, data.DefaultCharacterSet, DirectCast(Nothing, CharSet?))
Symbols\Source\SourceNamedTypeSymbol.vb (1)
2522Friend Overrides ReadOnly Property MarshallingCharSet As CharSet
Symbols\Source\SourceNamedTypeSymbol_ComClass.vb (1)
942Friend Overrides ReadOnly Property MarshallingCharSet As CharSet
Symbols\Source\SourceParameterSymbol.vb (2)
461Case Cci.Constants.CharSet_None, CharSet.Ansi 467Case CharSet.Unicode
Symbols\SubstitutedNamedType.vb (1)
80Friend Overrides ReadOnly Property MarshallingCharSet As CharSet
Symbols\Symbol.vb (2)
690''' <see cref="CharSet"/> effective for this symbol (type or DllImport method). 697Friend ReadOnly Property EffectiveDefaultMarshallingCharSet As CharSet?
Symbols\SynthesizedSymbols\SynthesizedEventDelegateSymbol.vb (1)
361Friend Overrides ReadOnly Property MarshallingCharSet As CharSet
Symbols\SynthesizedSymbols\SynthesizedHotReloadExceptionSymbol.vb (1)
266Friend Overrides ReadOnly Property MarshallingCharSet As CharSet
Symbols\Tuples\TupleTypeSymbol.vb (1)
301Friend Overrides ReadOnly Property MarshallingCharSet As CharSet
Symbols\UnboundGenericType.vb (1)
86Friend Overrides ReadOnly Property MarshallingCharSet As CharSet
Symbols\Wrapped\WrappedNamedTypeSymbol.vb (1)
174Friend Overrides ReadOnly Property MarshallingCharSet As CharSet
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (27)
Attributes\AttributeTests_WellKnownAttributes.vb (22)
224Assert.Equal(CharSet.Ansi, CType(attrSym.CommonNamedArguments(1).Value.Value, CharSet)) 424attrSym.VerifyValue(2, "CharSet", TypedConstantKind.Enum, CInt(CharSet.Unicode)) 1245Assert.Equal(CharSet.Unicode, CType(attrSym.CommonNamedArguments(0).Value.Value, CharSet)) 1471Assert.Equal(CharSet.Unicode, CType(attrSym.CommonNamedArguments(0).Value.Value, CharSet)) 1535Assert.Equal(CharSet.Unicode, info.CharacterSet) 1579Assert.Equal(CharSet.None, info.CharacterSet) 1615Assert.Equal(CharSet.Unicode, info.CharacterSet) 1625Assert.Equal(CharSet.Unicode, info.CharacterSet) 1886New With {.n = 7, .attr = MakeDllImport(charSet:=CharSet.None), .expected = MethodImportAttributes.CallingConventionWinApi}, 1887New With {.n = 8, .attr = MakeDllImport(charSet:=CharSet.Ansi), .expected = MethodImportAttributes.CallingConventionWinApi Or MethodImportAttributes.CharSetAnsi}, 1888New With {.n = 9, .attr = MakeDllImport(charSet:=CharSet.Unicode), .expected = MethodImportAttributes.CallingConventionWinApi Or MethodImportAttributes.CharSetUnicode}, 1889New With {.n = 10, .attr = MakeDllImport(charSet:=CharSet.Auto), .expected = MethodImportAttributes.CallingConventionWinApi Or MethodImportAttributes.CharSetAuto}, 1894New With {.n = 13, .attr = MakeDllImport(charSet:=CharSet.Ansi, exactSpelling:=True), .expected = MethodImportAttributes.CallingConventionWinApi Or MethodImportAttributes.ExactSpelling Or MethodImportAttributes.CharSetAnsi}, 1895New With {.n = 14, .attr = MakeDllImport(charSet:=CharSet.Ansi, exactSpelling:=False), .expected = MethodImportAttributes.CallingConventionWinApi Or MethodImportAttributes.CharSetAnsi}, 1896New With {.n = 15, .attr = MakeDllImport(charSet:=CharSet.Unicode, exactSpelling:=True), .expected = MethodImportAttributes.CallingConventionWinApi Or MethodImportAttributes.ExactSpelling Or MethodImportAttributes.CharSetUnicode}, 1897New With {.n = 16, .attr = MakeDllImport(charSet:=CharSet.Unicode, exactSpelling:=False), .expected = MethodImportAttributes.CallingConventionWinApi Or MethodImportAttributes.CharSetUnicode}, 1898New With {.n = 17, .attr = MakeDllImport(charSet:=CharSet.Auto, exactSpelling:=True), .expected = MethodImportAttributes.CallingConventionWinApi Or MethodImportAttributes.ExactSpelling Or MethodImportAttributes.CharSetAuto}, 1899New With {.n = 18, .attr = MakeDllImport(charSet:=CharSet.Auto, exactSpelling:=False), .expected = MethodImportAttributes.CallingConventionWinApi Or MethodImportAttributes.CharSetAuto}, 1950Private Function MakeDllImport(Optional cc As CallingConvention? = Nothing, Optional charSet As CharSet? = Nothing, Optional exactSpelling As Boolean? = Nothing, Optional preserveSig As Boolean? = Nothing, Optional setLastError As Boolean? = Nothing, Optional bestFitMapping As Boolean? = Nothing, Optional throwOnUnmappableChar As Boolean? = Nothing) As String
Emit\NoPiaEmbedTypes.vb (5)
1005Assert.Equal(System.Runtime.InteropServices.CharSet.Ansi, itest1.MarshallingCharSet) 1027Assert.Equal(System.Runtime.InteropServices.CharSet.Ansi, test2.MarshallingCharSet) 1047Assert.Equal(System.Runtime.InteropServices.CharSet.Ansi, itest3.MarshallingCharSet) 1059Assert.Equal(System.Runtime.InteropServices.CharSet.Unicode, test5.MarshallingCharSet) 1087Assert.Equal(System.Runtime.InteropServices.CharSet.Ansi, test9.MarshallingCharSet)
Microsoft.CodeAnalysis.VisualBasic.ExpressionCompiler (2)
Symbols\EENamedTypeSymbol.vb (2)
232Friend Overrides ReadOnly Property MarshallingCharSet As CharSet 234Return CharSet.Ansi
Microsoft.CodeAnalysis.VisualBasic.Test.Utilities (2)
MockSymbols.vb (2)
158Friend Overrides ReadOnly Property MarshallingCharSet As CharSet 757Friend Overrides ReadOnly Property DefaultMarshallingCharSet As CharSet?
Microsoft.CodeAnalysis.Workspaces.MSBuild (1)
src\Workspaces\MSBuild\BuildHost\Rpc\Contracts\MonoMSBuildDiscovery.cs (1)
41[DllImport("libc", EntryPoint = "realpath", CharSet = CharSet.Ansi, ExactSpelling = true, CallingConvention = CallingConvention.Cdecl)]
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (5)
Rpc\Contracts\MonoMSBuildDiscovery.cs (1)
41[DllImport("libc", EntryPoint = "realpath", CharSet = CharSet.Ansi, ExactSpelling = true, CallingConvention = CallingConvention.Cdecl)]
src\Compilers\Core\Portable\InternalUtilities\FileLockCheck.cs (4)
35[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)] 55[DllImport(RestartManagerDll, CharSet = CharSet.Unicode)] 97[DllImport(RestartManagerDll, CharSet = CharSet.Unicode)] 118[DllImport(RestartManagerDll, CharSet = CharSet.Unicode)]
Microsoft.DotNet.SignCheckLibrary (4)
Interop\WinCrypt.cs (4)
172[DllImport("Crypt32.dll", CharSet = CharSet.Auto, SetLastError = true)] 186[DllImport("Crypt32.dll", CharSet = CharSet.Auto, SetLastError = true)] 194[DllImport("Crypt32.dll", CharSet = CharSet.Auto, SetLastError = true)] 214[DllImport("Crypt32.dll", CharSet = CharSet.Auto, SetLastError = true)]
Microsoft.Extensions.Diagnostics.ResourceMonitoring (1)
Windows\Interop\JobObjectInfo.cs (1)
151[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Auto)]
Microsoft.Extensions.Hosting.WindowsServices (1)
src\libraries\Common\src\Interop\Windows\Kernel32\Interop.CreateToolhelp32Snapshot.cs (1)
24[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)]
Microsoft.Interop.LibraryImportGenerator (14)
Analyzers\ConvertToLibraryImportAnalyzer.cs (1)
222if (dllImportData.CharacterSet != System.Runtime.InteropServices.CharSet.None)
Analyzers\ConvertToLibraryImportFixer.cs (12)
80CharSet? charSet = options.TryGetValue(CharSetOption, out Option charSetOption) && charSetOption is Option.String(string charSetString) && Enum.TryParse<CharSet>(charSetString, out CharSet result) ? result : null; 102if (charSet is CharSet.None or CharSet.Ansi or CharSet.Auto) 114if (charSet is CharSet.Unicode or CharSet.Auto) 454if (dllImportData.CharacterSet == CharSet.Unicode || (dllImportData.CharacterSet == CharSet.Auto && entryPointSuffix is 'W' or null)) 463else if (dllImportData.CharacterSet == CharSet.Ansi || (dllImportData.CharacterSet == CharSet.Auto && entryPointSuffix == 'A'))
LibraryImportGenerator.cs (1)
501ExpressionSyntax value = CreateEnumExpressionSyntax(CharSet.Unicode);
Microsoft.Interop.LibraryImportGenerator.Downlevel (2)
DownlevelLibraryImportGenerator.cs (2)
378ParseTypeName(typeof(CharSet).FullName), 379IdentifierName(nameof(CharSet.Unicode)));
Microsoft.ML.FastTree (6)
Dataset\SegmentIntArray.cs (5)
520[DllImport(NativePath, CharSet = CharSet.Ansi), SuppressUnmanagedCodeSecurity] 523[DllImport(NativePath, CharSet = CharSet.Ansi), SuppressUnmanagedCodeSecurity] 526[DllImport(NativePath, CharSet = CharSet.Ansi), SuppressUnmanagedCodeSecurity] 529[DllImport(NativePath, CharSet = CharSet.Ansi), SuppressUnmanagedCodeSecurity] 532[DllImport(NativePath, CharSet = CharSet.Ansi), SuppressUnmanagedCodeSecurity]
FastTreeRanking.cs (1)
1010[DllImport("FastTreeNative", EntryPoint = "C_GetDerivatives", CharSet = CharSet.Ansi), SuppressUnmanagedCodeSecurity]
Microsoft.ML.Mkl.Components (1)
SymSgdClassificationTrainer.cs (1)
932[DllImport(MklPath, EntryPoint = "DftiErrorMessage", CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Auto), SuppressUnmanagedCodeSecurity]
Microsoft.ML.TimeSeries (5)
FftUtils.cs (5)
170[DllImport(DllProxyName, EntryPoint = "MKLDftiCreateDescriptor", CharSet = CharSet.Auto), SuppressUnmanagedCodeSecurity] 182[DllImport(DllProxyName, EntryPoint = "MKLDftiSetValue", CharSet = CharSet.Auto), SuppressUnmanagedCodeSecurity] 186[DllImport(DllProxyName, EntryPoint = "MKLDftiComputeForward", CharSet = CharSet.Auto), SuppressUnmanagedCodeSecurity] 190[DllImport(DllProxyName, EntryPoint = "MKLDftiComputeBackward", CharSet = CharSet.Auto), SuppressUnmanagedCodeSecurity] 202[DllImport(MklPath, EntryPoint = "DftiErrorMessage", CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Auto), SuppressUnmanagedCodeSecurity]
Microsoft.ML.Transforms (1)
Text\LdaSingleBox.cs (1)
43[DllImport(NativePath, CharSet = CharSet.Ansi), SuppressUnmanagedCodeSecurity]
Microsoft.VisualBasic.Forms (7)
Microsoft\VisualBasic\Helpers\NativeMethods.vb (4)
29CharSet:=CharSet.Auto, 48CharSet:=CharSet.Auto, 55<DllImport("user32", CharSet:=CharSet.Auto, PreserveSig:=True, SetLastError:=True)> 97<DllImport("Kernel32.dll", CharSet:=CharSet.Auto, SetLastError:=True)>
Microsoft\VisualBasic\Helpers\NativeTypes.STARTUPINFO.vb (1)
20<StructLayout(LayoutKind.Sequential, CharSet:=CharSet.Auto)>
Microsoft\VisualBasic\Helpers\UnsafeNativeMethods.vb (2)
19<DllImport("Kernel32.dll", CharSet:=CharSet.Auto, BestFitMapping:=False, SetLastError:=True)> 36<DllImport("User32.dll", ExactSpelling:=True, CharSet:=CharSet.Auto)>
Microsoft.VisualStudio.LanguageServices (7)
CodeMarkers\ManagedCodeMarkers.cs (2)
57[DllImport("kernel32.dll", CharSet = CharSet.Unicode)] 68[DllImport("kernel32.dll", CharSet = CharSet.Unicode)]
Shared\LogicalStringComparer.cs (1)
12[DllImport("shlwapi.dll", CharSet = CharSet.Unicode)]
Utilities\ClipboardHelpers.cs (4)
24[DllImport("ole32.dll", ExactSpelling = true, CharSet = CharSet.Unicode)] 27[DllImport("ole32.dll", ExactSpelling = true, CharSet = CharSet.Auto)] 30[DllImport("kernel32.dll", ExactSpelling = true, CharSet = CharSet.Auto, SetLastError = true)] 33[DllImport("kernel32.dll", ExactSpelling = true, CharSet = CharSet.Auto, SetLastError = true)]
Microsoft.VisualStudio.LanguageServices.VisualBasic (3)
ObjectBrowser\DescriptionBuilder.vb (3)
171Case System.Runtime.InteropServices.CharSet.Ansi 173Case System.Runtime.InteropServices.CharSet.Auto 175Case System.Runtime.InteropServices.CharSet.Unicode
mscorlib (1)
src\libraries\shims\mscorlib\ref\mscorlib.cs (1)
614[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Runtime.InteropServices.CharSet))]
netstandard (1)
netstandard.cs (1)
1606[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Runtime.InteropServices.CharSet))]
PrepareTests (1)
MinimizeUtil.cs (1)
298[DllImport("Kernel32.dll", CharSet = CharSet.Unicode, SetLastError = true)]
PresentationCore (32)
MS\Internal\TextFormatting\LineServices.cs (3)
739[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)] 802[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)] 812[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)]
MS\Win32\UnsafeNativeMethodsPenimc.cs (9)
81[DllImport(ExternDll.Penimc, CharSet=CharSet.Auto)] 488[DllImport(ExternDll.Penimc, CharSet=CharSet.Auto)] 512[DllImport(ExternDll.Penimc, CharSet=CharSet.Auto)] 537[DllImport(ExternDll.Penimc, CharSet=CharSet.Auto)] 554[DllImport(ExternDll.Penimc, CharSet=CharSet.Auto)] 563[DllImport(ExternDll.Penimc, CharSet=CharSet.Auto)] 572[DllImport(ExternDll.Penimc, CharSet=CharSet.Auto)] 581[DllImport(ExternDll.Penimc, CharSet = CharSet.Auto)] 590[DllImport(ExternDll.Penimc, CharSet = CharSet.Auto)]
MS\Win32\UnsafeNativeMethodsPointer.cs (15)
285[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)] 301[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)] 318[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)] 329[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)] 345[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)] 361[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)] 376[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)] 400[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)] 416[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)] 428[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)] 441[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)] 454[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)] 464[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)] 473[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)] 499[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)]
MS\Win32\UnsafeNativeMethodsTablet.cs (1)
46[DllImport(ExternDll.Mshwgst, CallingConvention = CallingConvention.Winapi, CharSet = CharSet.Unicode)]
src\Microsoft.DotNet.Wpf\src\Shared\MS\Win32\UnsafeNativeMethodsCompiler.cs (2)
26[DllImport(ExternDll.Shfolder, CharSet = CharSet.Auto, BestFitMapping = false)] 30[DllImport("urlmon.dll", CharSet = CharSet.Unicode)]
System\Windows\Media\UnsafeNativeMethodsMilCoreApi.cs (2)
1075[DllImport(DllImport.Mscms, CharSet = CharSet.Auto, BestFitMapping = false)] 1078[DllImport(DllImport.Mscms, CharSet = CharSet.Auto, BestFitMapping = false)]
PresentationFramework (27)
MS\Internal\AppModel\ShellProvider.cs (2)
25[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)] 68[StructLayout(LayoutKind.Sequential, Pack = 8, CharSet = CharSet.Unicode)]
MS\Internal\Printing\NativeMethods.cs (5)
25[StructLayout(LayoutKind.Sequential, Pack = 1, CharSet = CharSet.Auto)] 51[StructLayout(LayoutKind.Sequential, Pack = 8, CharSet = CharSet.Auto)] 77[StructLayout(LayoutKind.Sequential, Pack = 1, CharSet = CharSet.Auto)] 119[StructLayout(LayoutKind.Sequential, Pack = 1, CharSet = CharSet.Auto)] 128[StructLayout(LayoutKind.Sequential, Pack = 1, CharSet = CharSet.Auto)]
MS\Internal\Printing\UnsafeNativeMethods.cs (1)
12[DllImport("comdlg32.dll", CharSet = CharSet.Auto)]
System\Windows\Standard\NativeMethods.cs (18)
1376[DllImport("gdi32.dll", CharSet = CharSet.Unicode)] 1379[DllImport("gdi32.dll", CharSet = CharSet.Unicode, SetLastError = true)] 1684[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)] 1703[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode, Pack = 1)] 1818[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)] 2132[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)] 2173[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)] 2342[DllImport("shell32.dll", EntryPoint = "CommandLineToArgvW", CharSet = CharSet.Unicode)] 2444[DllImport("user32.dll", SetLastError = true, CharSet = CharSet.Unicode, EntryPoint = "CreateWindowExW")] 2482[DllImport("user32.dll", CharSet = CharSet.Unicode, EntryPoint = "DefWindowProcW")] 2621[DllImport("kernel32.dll", CharSet = CharSet.Unicode, SetLastError = true)] 2643[DllImport("uxtheme.dll", EntryPoint="GetCurrentThemeName", CharSet = CharSet.Unicode)] 2677[DllImport("kernel32.dll", EntryPoint = "GetModuleFileName", CharSet = CharSet.Unicode, SetLastError = true)] 2704[DllImport("kernel32.dll", EntryPoint = "GetModuleHandleW", CharSet = CharSet.Unicode, SetLastError = true)] 2879[DllImport("user32.dll", EntryPoint = "RegisterWindowMessage", SetLastError = true, CharSet = CharSet.Unicode)] 2987[DllImport("user32.dll", EntryPoint = "SystemParametersInfoW", SetLastError = true, CharSet = CharSet.Unicode)] 2992[DllImport("user32.dll", EntryPoint = "SystemParametersInfoW", SetLastError = true, CharSet = CharSet.Unicode)] 3072[DllImport("user32.dll", EntryPoint = "UnregisterClass", CharSet = CharSet.Unicode, SetLastError = true)]
System\Windows\Standard\ShellProvider.cs (1)
320[StructLayout(LayoutKind.Sequential, Pack = 8, CharSet = CharSet.Unicode)]
PresentationUI (1)
MS\Internal\Documents\Application\CommandEnforcer.cs (1)
201[DllImport("msdrm.dll", SetLastError = false, CharSet = CharSet.Unicode, CallingConvention = CallingConvention.StdCall)]
ReachFramework (18)
MS\Internal\Printing\Configuration\UnsafeNativeMethods.cs (15)
71[DllImport(DllImport.PrntvPt, EntryPoint = "PTCloseProvider", CharSet = CharSet.Unicode, ExactSpelling = true)] 242[DllImport(ExternDll.Winspool, CharSet = CharSet.Unicode, ExactSpelling = true, SetLastError = true)] 250[DllImport(ExternDll.Winspool, CharSet = CharSet.Unicode, ExactSpelling = true, SetLastError = true)] 258[DllImport(ExternDll.Winspool, CharSet = CharSet.Unicode, ExactSpelling = true, SetLastError = true)] 266[DllImport(ExternDll.Winspool, CharSet = CharSet.Unicode, ExactSpelling = true, SetLastError = true)] 278[DllImport(ExternDll.Gdi32, CharSet = CharSet.Unicode, ExactSpelling = true, SetLastError = true)] 287[DllImport(ExternDll.User32, CharSet = CharSet.Unicode, ExactSpelling = true, SetLastError = true)] 290[DllImport(ExternDll.Kernel32, CharSet = CharSet.Unicode, ExactSpelling = true, SetLastError = true)] 303[DllImport(DllImport.Ole32, EntryPoint = "CreateStreamOnHGlobal", CharSet = CharSet.Unicode, ExactSpelling = true)] 319[DllImport(DllImport.PrntvPt, EntryPoint = "PTOpenProviderEx", CharSet = CharSet.Unicode, ExactSpelling = true)] 335[DllImport(DllImport.PrntvPt, EntryPoint = "PTGetPrintCapabilities", CharSet = CharSet.Unicode)] 352[DllImport(DllImport.PrntvPt, EntryPoint = "PTMergeAndValidatePrintTicket", CharSet = CharSet.Unicode, ExactSpelling = true)] 370[DllImport(DllImport.PrntvPt, EntryPoint = "PTConvertDevModeToPrintTicket", CharSet = CharSet.Unicode, ExactSpelling = true)] 390[DllImport(DllImport.PrntvPt, EntryPoint = "PTConvertPrintTicketToDevMode", CharSet = CharSet.Unicode, ExactSpelling = true)] 405[DllImport(DllImport.PrntvPt, EntryPoint = "PTReleaseMemory", CharSet = CharSet.Unicode, ExactSpelling = true)]
MS\Internal\Printing\Configuration\WinSpoolPrinterCapabilities.cs (2)
600[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Auto)] 613[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Auto)]
PrintSystemExceptions\InteropWin32ApiThunk.cs (1)
25CharSet=CharSet.Unicode,
Replay (3)
src\Compilers\Shared\NativeMethods.cs (3)
14[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)] 76[DllImport("kernel32.dll", CharSet = CharSet.Unicode, SetLastError = true)] 93[DllImport("kernel32.dll", CharSet = CharSet.Unicode, SetLastError = true)]
System.Drawing.Common.Tests (3)
System\Drawing\FontTests.cs (2)
656[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Auto)] 790[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)]
System\Drawing\SystemFontsTests.cs (1)
102[DllImport("kernel32.dll", SetLastError = false, CharSet = CharSet.Auto)]
System.Private.CoreLib (43)
src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\ModuleBuilder.cs (3)
100Type? returnType, Type[]? parameterTypes, CallingConvention nativeCallConv, CharSet nativeCharSet) 107Type? returnType, Type[]? parameterTypes, CallingConvention nativeCallConv, CharSet nativeCharSet) 114Type? returnType, Type[]? parameterTypes, CallingConvention nativeCallConv, CharSet nativeCharSet);
src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\TypeBuilder.cs (4)
192CallingConvention nativeCallConv, CharSet nativeCharSet) 199CallingConvention nativeCallConv, CharSet nativeCharSet) 209CallingConvention nativeCallConv, CharSet nativeCharSet) 226CallingConvention nativeCallConv, CharSet nativeCharSet);
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\ComTypes\IEnumConnections.cs (1)
9[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)]
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\ComTypes\IStream.cs (1)
9[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)]
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\ComTypes\ITypeComp.cs (1)
20[StructLayout(LayoutKind.Explicit, CharSet = CharSet.Unicode)]
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\ComTypes\ITypeInfo.cs (10)
54[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)] 111[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)] 133[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)] 141[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)] 149[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)] 154[StructLayout(LayoutKind.Explicit, CharSet = CharSet.Unicode)] 175[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)] 181[StructLayout(LayoutKind.Explicit, CharSet = CharSet.Unicode)] 198[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)] 208[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)]
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\ComTypes\ITypeLib.cs (1)
28[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)]
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\DefaultCharSetAttribute.cs (2)
9public DefaultCharSetAttribute(CharSet charSet) 14public CharSet CharSet { get; }
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\DllImportAttribute.cs (1)
17public CharSet CharSet;
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\StructLayoutAttribute.cs (1)
23public CharSet CharSet;
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\UnmanagedFunctionPointerAttribute.cs (1)
19public CharSet CharSet;
src\System\Reflection\Emit\RuntimeModuleBuilder.cs (1)
777Type[]? parameterTypes, CallingConvention nativeCallConv, CharSet nativeCharSet)
src\System\Reflection\Emit\RuntimeTypeBuilder.cs (5)
1121CallingConvention nativeCallConv, CharSet nativeCharSet) 1172case CharSet.None: 1175case CharSet.Ansi: 1178case CharSet.Unicode: 1181case CharSet.Auto:
src\System\Reflection\RuntimeCustomAttributeData.cs (11)
2189CharSet charSet = CharSet.None; 2193case PInvokeAttributes.CharSetNotSpec: charSet = CharSet.None; break; 2194case PInvokeAttributes.CharSetAnsi: charSet = CharSet.Ansi; break; 2195case PInvokeAttributes.CharSetUnicode: charSet = CharSet.Unicode; break; 2196case PInvokeAttributes.CharSetAuto: charSet = CharSet.Auto; break; 2278CharSet charSet = CharSet.None; 2281case TypeAttributes.AnsiClass: charSet = CharSet.Ansi; break; 2282case TypeAttributes.AutoClass: charSet = CharSet.Auto; break; 2283case TypeAttributes.UnicodeClass: charSet = CharSet.Unicode; break;
System.Private.Windows.Core (1)
System\Value.Union.cs (1)
20[StructLayout(LayoutKind.Explicit, CharSet = CharSet.Unicode)]
System.Private.Windows.Core.TestUtilities (1)
XUnit\UseCultureAttribute.cs (1)
134[DllImport("Kernel32.dll", ExactSpelling = true, CharSet = CharSet.Unicode)]
System.Reflection.Emit (14)
System\Reflection\Emit\MethodBuilderImpl.cs (1)
78internal void CreateDllImportData(string dllName, string entryName, CallingConvention nativeCallConv, CharSet nativeCharSet)
System\Reflection\Emit\ModuleBuilderImpl.cs (1)
1290CallingConventions callingConvention, Type? returnType, Type[]? parameterTypes, CallingConvention nativeCallConv, CharSet nativeCharSet)
System\Reflection\Emit\PseudoCustomAttributesData.cs (6)
53importAttributes |= MatchNativeCharSet((CharSet)value); 96internal static DllImportData Create(string moduleName, string entryName, CallingConvention nativeCallConv, CharSet nativeCharSet) 109private static MethodImportAttributes MatchNativeCharSet(CharSet nativeCharSet) => 112CharSet.Ansi => MethodImportAttributes.CharSetAnsi, 113CharSet.Auto => MethodImportAttributes.CharSetAuto, 114CharSet.Unicode => MethodImportAttributes.CharSetUnicode,
System\Reflection\Emit\TypeBuilderImpl.cs (6)
370Type[][]? parameterTypeRequiredCustomModifiers, Type[][]? parameterTypeOptionalCustomModifiers, CallingConvention nativeCallConv, CharSet nativeCharSet) 518switch ((CharSet)value) 520case CharSet.None: 521case CharSet.Ansi: 524case CharSet.Unicode: 528case CharSet.Auto:
System.Reflection.MetadataLoadContext (10)
System\Reflection\TypeLoading\MethodBase\Ecma\EcmaMethodDecoder.cs (5)
124CharSet charSet = (a & MethodImportAttributes.CharSetMask) switch 126MethodImportAttributes.CharSetAnsi => CharSet.Ansi, 127MethodImportAttributes.CharSetAuto => CharSet.Auto, 128MethodImportAttributes.CharSetUnicode => CharSet.Unicode, 129_ => CharSet.None, // Note: CharSet.None is actually the typical case, not an error case.
System\Reflection\TypeLoading\Types\RoDefinitionType.cs (5)
163CharSet charSet = (attributes & TypeAttributes.StringFormatMask) switch 165TypeAttributes.AnsiClass => CharSet.Ansi, 166TypeAttributes.AutoClass => CharSet.Auto, 167TypeAttributes.UnicodeClass => CharSet.Unicode, 168_ => CharSet.None,
System.Runtime (1)
artifacts\obj\System.Runtime\Debug\net10.0\System.Runtime.Forwards.cs (1)
663[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Runtime.InteropServices.CharSet))]
System.Windows.Controls.Ribbon (7)
Microsoft\Windows\Controls\Ribbon\NativeMethods.cs (7)
282[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Auto, Pack = 4)] 320[DllImport("user32.dll", EntryPoint = "GetMonitorInfo", CharSet = CharSet.Auto, SetLastError = true)] 324[DllImport("user32.dll", ExactSpelling = true, CharSet = CharSet.Auto)] 330[DllImport("user32.dll", ExactSpelling = true, CharSet = CharSet.Auto)] 347[DllImport("gdi32.dll", SetLastError = true, ExactSpelling = true, CharSet = CharSet.Auto)] 350[DllImport("user32.dll", SetLastError = true, ExactSpelling = true, EntryPoint = "GetDC", CharSet = CharSet.Auto)] 363[DllImport("user32.dll", ExactSpelling = true, EntryPoint = "ReleaseDC", CharSet = CharSet.Auto)]
System.Windows.Forms.Interop.Tests (76)
AccessibleObjectTests.cs (75)
782[DllImport(NativeTests, ExactSpelling = true, CharSet = CharSet.Unicode)] 786[DllImport(NativeTests, ExactSpelling = true, CharSet = CharSet.Unicode)] 790[DllImport(NativeTests, ExactSpelling = true, CharSet = CharSet.Unicode)] 795[DllImport(NativeTests, ExactSpelling = true, CharSet = CharSet.Unicode)] 800[DllImport(NativeTests, ExactSpelling = true, CharSet = CharSet.Unicode)] 804[DllImport(NativeTests, ExactSpelling = true, CharSet = CharSet.Unicode)] 809[DllImport(NativeTests, ExactSpelling = true, CharSet = CharSet.Unicode)] 814[DllImport(NativeTests, ExactSpelling = true, CharSet = CharSet.Unicode)] 820[DllImport(NativeTests, ExactSpelling = true, CharSet = CharSet.Unicode)] 826[DllImport(NativeTests, ExactSpelling = true, CharSet = CharSet.Unicode)] 831[DllImport(NativeTests, ExactSpelling = true, CharSet = CharSet.Unicode)] 836[DllImport(NativeTests, ExactSpelling = true, CharSet = CharSet.Unicode)] 841[DllImport(NativeTests, ExactSpelling = true, CharSet = CharSet.Unicode)] 846[DllImport(NativeTests, ExactSpelling = true, CharSet = CharSet.Unicode)] 851[DllImport(NativeTests, ExactSpelling = true, CharSet = CharSet.Unicode)] 856[DllImport(NativeTests, ExactSpelling = true, CharSet = CharSet.Unicode)] 861[DllImport(NativeTests, ExactSpelling = true, CharSet = CharSet.Unicode)] 866[DllImport(NativeTests, ExactSpelling = true, CharSet = CharSet.Unicode)] 870[DllImport(NativeTests, ExactSpelling = true, CharSet = CharSet.Unicode)] 874[DllImport(NativeTests, ExactSpelling = true, CharSet = CharSet.Unicode)] 879[DllImport(NativeTests, ExactSpelling = true, CharSet = CharSet.Unicode)] 884[DllImport(NativeTests, ExactSpelling = true, CharSet = CharSet.Unicode)] 888[DllImport(NativeTests, ExactSpelling = true, CharSet = CharSet.Unicode)] 894[DllImport(NativeTests, ExactSpelling = true, CharSet = CharSet.Unicode)] 898[DllImport(NativeTests, ExactSpelling = true, CharSet = CharSet.Unicode)] 902[DllImport(NativeTests, ExactSpelling = true, CharSet = CharSet.Unicode)] 907[DllImport(NativeTests, ExactSpelling = true, CharSet = CharSet.Unicode)] 912[DllImport(NativeTests, ExactSpelling = true, CharSet = CharSet.Unicode)] 917[DllImport(NativeTests, ExactSpelling = true, CharSet = CharSet.Unicode)] 922[DllImport(NativeTests, ExactSpelling = true, CharSet = CharSet.Unicode)] 927[DllImport(NativeTests, ExactSpelling = true, CharSet = CharSet.Unicode)] 932[DllImport(NativeTests, ExactSpelling = true, CharSet = CharSet.Unicode)] 937[DllImport(NativeTests, ExactSpelling = true, CharSet = CharSet.Unicode)] 942[DllImport(NativeTests, ExactSpelling = true, CharSet = CharSet.Unicode)] 947[DllImport(NativeTests, ExactSpelling = true, CharSet = CharSet.Unicode)] 951[DllImport(NativeTests, ExactSpelling = true, CharSet = CharSet.Unicode)] 955[DllImport(NativeTests, ExactSpelling = true, CharSet = CharSet.Unicode)] 959[DllImport(NativeTests, ExactSpelling = true, CharSet = CharSet.Unicode)] 963[DllImport(NativeTests, ExactSpelling = true, CharSet = CharSet.Unicode)] 968[DllImport(NativeTests, ExactSpelling = true, CharSet = CharSet.Unicode)] 973[DllImport(NativeTests, ExactSpelling = true, CharSet = CharSet.Unicode)] 979[DllImport(NativeTests, ExactSpelling = true, CharSet = CharSet.Unicode)] 984[DllImport(NativeTests, ExactSpelling = true, CharSet = CharSet.Unicode)] 989[DllImport(NativeTests, ExactSpelling = true, CharSet = CharSet.Unicode)] 993[DllImport(NativeTests, ExactSpelling = true, CharSet = CharSet.Unicode)] 998[DllImport(NativeTests, ExactSpelling = true, CharSet = CharSet.Unicode)] 1003[DllImport(NativeTests, ExactSpelling = true, CharSet = CharSet.Unicode)] 1007[DllImport(NativeTests, ExactSpelling = true, CharSet = CharSet.Unicode)] 1011[DllImport(NativeTests, ExactSpelling = true, CharSet = CharSet.Unicode)] 1015[DllImport(NativeTests, ExactSpelling = true, CharSet = CharSet.Unicode)] 1021[DllImport(NativeTests, ExactSpelling = true, CharSet = CharSet.Unicode)] 1027[DllImport(NativeTests, ExactSpelling = true, CharSet = CharSet.Unicode)] 1032[DllImport(NativeTests, ExactSpelling = true, CharSet = CharSet.Unicode)] 1037[DllImport(NativeTests, ExactSpelling = true, CharSet = CharSet.Unicode)] 1042[DllImport(NativeTests, ExactSpelling = true, CharSet = CharSet.Unicode)] 1047[DllImport(NativeTests, ExactSpelling = true, CharSet = CharSet.Unicode)] 1052[DllImport(NativeTests, ExactSpelling = true, CharSet = CharSet.Unicode)] 1057[DllImport(NativeTests, ExactSpelling = true, CharSet = CharSet.Unicode)] 1062[DllImport(NativeTests, ExactSpelling = true, CharSet = CharSet.Unicode)] 1067[DllImport(NativeTests, ExactSpelling = true, CharSet = CharSet.Unicode)] 1072[DllImport(NativeTests, ExactSpelling = true, CharSet = CharSet.Unicode)] 1076[DllImport(NativeTests, ExactSpelling = true, CharSet = CharSet.Unicode)] 1080[DllImport(NativeTests, ExactSpelling = true, CharSet = CharSet.Unicode)] 1085[DllImport(NativeTests, ExactSpelling = true, CharSet = CharSet.Unicode)] 1090[DllImport(NativeTests, ExactSpelling = true, CharSet = CharSet.Unicode)] 1095[DllImport(NativeTests, ExactSpelling = true, CharSet = CharSet.Unicode)] 1100[DllImport(NativeTests, ExactSpelling = true, CharSet = CharSet.Unicode)] 1105[DllImport(NativeTests, ExactSpelling = true, CharSet = CharSet.Unicode)] 1110[DllImport(NativeTests, ExactSpelling = true, CharSet = CharSet.Unicode)] 1115[DllImport(NativeTests, ExactSpelling = true, CharSet = CharSet.Unicode)] 1120[DllImport(NativeTests, ExactSpelling = true, CharSet = CharSet.Unicode)] 1124[DllImport(NativeTests, ExactSpelling = true, CharSet = CharSet.Unicode)] 1128[DllImport(NativeTests, ExactSpelling = true, CharSet = CharSet.Unicode)] 1132[DllImport(NativeTests, ExactSpelling = true, CharSet = CharSet.Unicode)] 1136[DllImport(NativeTests, ExactSpelling = true, CharSet = CharSet.Unicode)]
WebBrowserSiteBaseInteropTests.cs (1)
18[DllImport(NativeTests, CharSet = CharSet.Unicode, ExactSpelling = true)]
System.Windows.Forms.Primitives (4)
Interop\Richedit\Interop.CHARFORMAT2W.cs (1)
11[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode, Pack = RichEditPack)]
Interop\Richedit\Interop.FINDTEXTW.cs (1)
11[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode, Pack = RichEditPack)]
Windows\Win32\PInvoke.Shell_NotifyIconW.cs (1)
11[DllImport("shell32.dll", CharSet = CharSet.Unicode, ExactSpelling = true)]
Windows\Win32\UI\Shell\NOTIFYICONDATAW.cs (1)
8[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)]
System.Windows.Forms.Primitives.TestUtilities (1)
PlatformDetection.Windows.cs (1)
251[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)]
TlsFeaturesObserve (1)
HttpSys\Native.cs (1)
52[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)]
UIAutomationClient (117)
MS\Internal\Automation\UiaCoreApi.cs (75)
556[DllImport(DllImport.UIAutomationCore, EntryPoint = "UiaHasServerSideProvider", CharSet = CharSet.Unicode)] 1159[DllImport(DllImport.UIAutomationCore, CharSet = CharSet.Unicode)] 1215[DllImport(DllImport.UIAutomationCore, EntryPoint = "UiaGetPropertyValue", CharSet = CharSet.Unicode)] 1218[DllImport(DllImport.UIAutomationCore, EntryPoint = "UiaGetPatternProvider", CharSet = CharSet.Unicode)] 1221[DllImport(DllImport.UIAutomationCore, EntryPoint = "UiaGetRuntimeId", CharSet = CharSet.Unicode)] 1224[DllImport(DllImport.UIAutomationCore, EntryPoint = "UiaSetFocus", CharSet = CharSet.Unicode)] 1227[DllImport(DllImport.UIAutomationCore, EntryPoint = "UiaNavigate", CharSet = CharSet.Unicode)] 1230[DllImport(DllImport.UIAutomationCore, EntryPoint = "UiaFind", CharSet = CharSet.Unicode)] 1233[DllImport(DllImport.UIAutomationCore, EntryPoint = "UiaNodeFromHandle", CharSet = CharSet.Unicode)] 1236[DllImport(DllImport.UIAutomationCore, EntryPoint = "UiaNodeFromProvider", CharSet = CharSet.Unicode)] 1239[DllImport(DllImport.UIAutomationCore, EntryPoint = "UiaGetRootNode", CharSet = CharSet.Unicode)] 1242[DllImport(DllImport.UIAutomationCore, EntryPoint = "UiaNodeFromPoint", CharSet = CharSet.Unicode)] 1245[DllImport(DllImport.UIAutomationCore, EntryPoint = "UiaNodeFromFocus", CharSet = CharSet.Unicode)] 1248[DllImport(DllImport.UIAutomationCore, EntryPoint = "UiaGetUpdatedCache", CharSet = CharSet.Unicode)] 1251[DllImport(DllImport.UIAutomationCore, EntryPoint = "UiaHUiaNodeFromVariant", CharSet = CharSet.Unicode)] 1254[DllImport(DllImport.UIAutomationCore, EntryPoint = "UiaHPatternObjectFromVariant", CharSet = CharSet.Unicode)] 1257[DllImport(DllImport.UIAutomationCore, EntryPoint = "UiaHTextRangeFromVariant", CharSet = CharSet.Unicode)] 1260[DllImport(DllImport.UIAutomationCore, EntryPoint = "UiaNodeRelease", CharSet = CharSet.Unicode)] 1263[DllImport(DllImport.UIAutomationCore, EntryPoint = "UiaPatternRelease", CharSet = CharSet.Unicode)] 1266[DllImport(DllImport.UIAutomationCore, EntryPoint = "UiaTextRangeRelease", CharSet = CharSet.Unicode)] 1270[DllImport(DllImport.UIAutomationCore, EntryPoint = "UiaAddEvent", CharSet = CharSet.Unicode)] 1273[DllImport(DllImport.UIAutomationCore, EntryPoint = "UiaRemoveEvent", CharSet = CharSet.Unicode)] 1276[DllImport(DllImport.UIAutomationCore, EntryPoint = "UiaEventAddWindow", CharSet = CharSet.Unicode)] 1279[DllImport(DllImport.UIAutomationCore, EntryPoint = "UiaEventRemoveWindow", CharSet = CharSet.Unicode)] 1286[DllImport(DllImport.UIAutomationCore, EntryPoint = "DockPattern_SetDockPosition", CharSet = CharSet.Unicode)] 1289[DllImport(DllImport.UIAutomationCore, EntryPoint = "ExpandCollapsePattern_Collapse", CharSet = CharSet.Unicode)] 1292[DllImport(DllImport.UIAutomationCore, EntryPoint = "ExpandCollapsePattern_Expand", CharSet = CharSet.Unicode)] 1295[DllImport(DllImport.UIAutomationCore, EntryPoint = "GridPattern_GetItem", CharSet = CharSet.Unicode)] 1298[DllImport(DllImport.UIAutomationCore, EntryPoint = "InvokePattern_Invoke", CharSet = CharSet.Unicode)] 1301[DllImport(DllImport.UIAutomationCore, EntryPoint = "MultipleViewPattern_GetViewName", CharSet = CharSet.Unicode)] 1304[DllImport(DllImport.UIAutomationCore, EntryPoint = "MultipleViewPattern_SetCurrentView", CharSet = CharSet.Unicode)] 1307[DllImport(DllImport.UIAutomationCore, EntryPoint = "RangeValuePattern_SetValue", CharSet = CharSet.Unicode)] 1310[DllImport(DllImport.UIAutomationCore, EntryPoint = "ScrollItemPattern_ScrollIntoView", CharSet = CharSet.Unicode)] 1313[DllImport(DllImport.UIAutomationCore, EntryPoint = "ScrollPattern_Scroll", CharSet = CharSet.Unicode)] 1316[DllImport(DllImport.UIAutomationCore, EntryPoint = "ScrollPattern_SetScrollPercent", CharSet = CharSet.Unicode)] 1319[DllImport(DllImport.UIAutomationCore, EntryPoint = "SelectionItemPattern_AddToSelection", CharSet = CharSet.Unicode)] 1322[DllImport(DllImport.UIAutomationCore, EntryPoint = "SelectionItemPattern_RemoveFromSelection", CharSet = CharSet.Unicode)] 1325[DllImport(DllImport.UIAutomationCore, EntryPoint = "SelectionItemPattern_Select", CharSet = CharSet.Unicode)] 1328[DllImport(DllImport.UIAutomationCore, EntryPoint = "TogglePattern_Toggle", CharSet = CharSet.Unicode)] 1331[DllImport(DllImport.UIAutomationCore, EntryPoint = "TransformPattern_Move", CharSet = CharSet.Unicode)] 1334[DllImport(DllImport.UIAutomationCore, EntryPoint = "TransformPattern_Resize", CharSet = CharSet.Unicode)] 1337[DllImport(DllImport.UIAutomationCore, EntryPoint = "TransformPattern_Rotate", CharSet = CharSet.Unicode)] 1340[DllImport(DllImport.UIAutomationCore, EntryPoint = "ValuePattern_SetValue", CharSet = CharSet.Unicode)] 1343[DllImport(DllImport.UIAutomationCore, EntryPoint = "WindowPattern_Close", CharSet = CharSet.Unicode)] 1346[DllImport(DllImport.UIAutomationCore, EntryPoint = "WindowPattern_SetWindowVisualState", CharSet = CharSet.Unicode)] 1349[DllImport(DllImport.UIAutomationCore, EntryPoint = "WindowPattern_WaitForInputIdle", CharSet = CharSet.Unicode)] 1352[DllImport(DllImport.UIAutomationCore, EntryPoint = "SynchronizedInputPattern_StartListening", CharSet = CharSet.Unicode)] 1355[DllImport(DllImport.UIAutomationCore, EntryPoint = "SynchronizedInputPattern_Cancel", CharSet = CharSet.Unicode)] 1358[DllImport(DllImport.UIAutomationCore, EntryPoint = "VirtualizedItemPattern_Realize", CharSet = CharSet.Unicode)] 1361[DllImport(DllImport.UIAutomationCore, EntryPoint = "ItemContainerPattern_FindItemByProperty", CharSet = CharSet.Unicode)] 1368[DllImport(DllImport.UIAutomationCore, EntryPoint = "TextPattern_GetSelection", CharSet = CharSet.Unicode)] 1371[DllImport(DllImport.UIAutomationCore, EntryPoint = "TextPattern_GetVisibleRanges", CharSet = CharSet.Unicode)] 1374[DllImport(DllImport.UIAutomationCore, EntryPoint = "TextPattern_RangeFromChild", CharSet = CharSet.Unicode)] 1377[DllImport(DllImport.UIAutomationCore, EntryPoint = "TextPattern_RangeFromPoint", CharSet = CharSet.Unicode)] 1380[DllImport(DllImport.UIAutomationCore, EntryPoint = "TextPattern_get_DocumentRange", CharSet = CharSet.Unicode)] 1383[DllImport(DllImport.UIAutomationCore, EntryPoint = "TextPattern_get_SupportedTextSelection", CharSet = CharSet.Unicode)] 1386[DllImport(DllImport.UIAutomationCore, EntryPoint = "TextRange_Clone", CharSet = CharSet.Unicode)] 1389[DllImport(DllImport.UIAutomationCore, EntryPoint = "TextRange_Compare", CharSet = CharSet.Unicode)] 1392[DllImport(DllImport.UIAutomationCore, EntryPoint = "TextRange_CompareEndpoints", CharSet = CharSet.Unicode)] 1395[DllImport(DllImport.UIAutomationCore, EntryPoint = "TextRange_ExpandToEnclosingUnit", CharSet = CharSet.Unicode)] 1398[DllImport(DllImport.UIAutomationCore, EntryPoint = "TextRange_FindAttribute", CharSet = CharSet.Unicode)] 1401[DllImport(DllImport.UIAutomationCore, EntryPoint = "TextRange_FindText", CharSet = CharSet.Unicode)] 1404[DllImport(DllImport.UIAutomationCore, EntryPoint = "TextRange_GetAttributeValue", CharSet = CharSet.Unicode)] 1407[DllImport(DllImport.UIAutomationCore, EntryPoint = "TextRange_GetBoundingRectangles", CharSet = CharSet.Unicode)] 1410[DllImport(DllImport.UIAutomationCore, EntryPoint = "TextRange_GetEnclosingElement", CharSet = CharSet.Unicode)] 1413[DllImport(DllImport.UIAutomationCore, EntryPoint = "TextRange_GetText", CharSet = CharSet.Unicode)] 1416[DllImport(DllImport.UIAutomationCore, EntryPoint = "TextRange_Move", CharSet = CharSet.Unicode)] 1419[DllImport(DllImport.UIAutomationCore, EntryPoint = "TextRange_MoveEndpointByUnit", CharSet = CharSet.Unicode)] 1422[DllImport(DllImport.UIAutomationCore, EntryPoint = "TextRange_MoveEndpointByRange", CharSet = CharSet.Unicode)] 1425[DllImport(DllImport.UIAutomationCore, EntryPoint = "TextRange_Select", CharSet = CharSet.Unicode)] 1428[DllImport(DllImport.UIAutomationCore, EntryPoint = "TextRange_AddToSelection", CharSet = CharSet.Unicode)] 1431[DllImport(DllImport.UIAutomationCore, EntryPoint = "TextRange_RemoveFromSelection", CharSet = CharSet.Unicode)] 1434[DllImport(DllImport.UIAutomationCore, EntryPoint = "TextRange_ScrollIntoView", CharSet = CharSet.Unicode)] 1437[DllImport(DllImport.UIAutomationCore, EntryPoint = "TextRange_GetChildren", CharSet = CharSet.Unicode)] 1552[DllImport(DllImport.UIAutomationCore, CharSet = CharSet.Unicode)]
MS\Win32\SafeNativeMethods.cs (17)
21[DllImport("user32.dll", ExactSpelling=true, CharSet=System.Runtime.InteropServices.CharSet.Auto)] 55[StructLayout(LayoutKind.Sequential, CharSet=CharSet.Unicode)] 112[DllImport("user32.dll", CharSet=CharSet.Auto)] 122[DllImport("user32.dll", CharSet=CharSet.Auto)] 142[DllImport("user32.dll", CharSet=CharSet.Auto)] 145[DllImport("user32.dll", CharSet=CharSet.Auto)] 154[DllImport("user32.dll", CharSet = CharSet.Auto, SetLastError = true)] 157[DllImport("user32.dll", CharSet = CharSet.Auto, SetLastError = true)] 160[DllImport("user32.dll", CharSet=CharSet.Auto)] 176[DllImport("gdi32.dll", CharSet = CharSet.Auto, SetLastError = true)] 179[DllImport("user32.dll", CharSet=CharSet.Auto)] 182[DllImport("gdi32.dll", CharSet = CharSet.Auto)] 191[DllImport("kernel32.dll", CharSet = CharSet.Auto, SetLastError = true)] 198[DllImport("Psapi.dll", CharSet = CharSet.Auto, SetLastError = true)] 206[DllImport("user32.dll", CharSet=CharSet.Auto)] 212[DllImport("user32.dll", CharSet = CharSet.Auto)] 218[DllImport("kernel32.dll", CharSet = CharSet.Auto)]
MS\Win32\UnsafeNativeMethods.cs (21)
36[DllImport("kernel32.dll", CharSet = CharSet.Auto, SetLastError = true)] 95[DllImport("user32.dll", CharSet=CharSet.Auto)] 98[DllImport("user32.dll", CharSet=CharSet.Auto)] 106[DllImport("user32.dll", CharSet = CharSet.Auto, SetLastError = true)] 109[DllImport("user32.dll", CharSet = CharSet.Auto, SetLastError = true)] 166[DllImport("user32.dll", EntryPoint = "WindowFromPoint", ExactSpelling = true, CharSet = CharSet.Auto)] 169[DllImport("user32.dll", EntryPoint = "WindowFromPhysicalPoint", ExactSpelling = true, CharSet = CharSet.Auto)] 187[DllImport("user32.dll", CharSet = CharSet.Auto, SetLastError = true)] 191[DllImport("user32.dll", CharSet = CharSet.Auto, SetLastError = true)] 197[DllImport("user32.dll", CharSet = CharSet.Auto, SetLastError = true)] 217[DllImport("user32.dll", CharSet = CharSet.Auto, SetLastError = true)] 221[DllImport("user32.dll", CharSet=CharSet.Auto)] 225[DllImport("user32.dll", CharSet=CharSet.Auto)] 229[DllImport("user32.dll", CharSet=CharSet.Auto)] 233[DllImport("user32.dll", CharSet = CharSet.Auto, SetLastError = true)] 325[DllImport("user32.dll", CharSet = CharSet.Auto, SetLastError = true)] 328[DllImport("user32.dll", CharSet = CharSet.Auto, SetLastError = true)] 335[DllImport("user32.dll", CharSet = CharSet.Auto, SetLastError = true)] 338[DllImport("user32.dll", ExactSpelling = true, CharSet = CharSet.Auto)] 360[DllImport("gdi32.dll", CharSet = CharSet.Auto, SetLastError = true)] 367[DllImport("user32.dll", CharSet = CharSet.Unicode)]
src\Microsoft.DotNet.Wpf\src\Shared\MS\Win32\NativeMethodsSetLastError.cs (4)
40[DllImport(PresentationNativeDll, EntryPoint="GetWindowLongWrapper", CharSet=CharSet.Auto, SetLastError=true)] 43[DllImport(PresentationNativeDll, EntryPoint="GetWindowLongPtrWrapper", CharSet=CharSet.Auto, SetLastError=true)] 57[DllImport(PresentationNativeDll, EntryPoint="MapWindowPointsWrapper", SetLastError = true, ExactSpelling=true, CharSet=CharSet.Auto)] 60[DllImport(PresentationNativeDll, EntryPoint="MapWindowPointsWrapper", SetLastError = true, ExactSpelling=true, CharSet=CharSet.Auto)]
UIAutomationClientSideProviders (68)
MS\Internal\AutomationProxies\CommonGetThemePartSize.cs (2)
200[DllImport ("UxTheme.dll", CharSet = CharSet.Auto)] 203[DllImport ("UxTheme.dll", CharSet = CharSet.Auto)]
MS\Internal\AutomationProxies\CommonXSendMessage.cs (18)
1548[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)] 1589[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)] 1632[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)] 1685[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Auto)] 1738[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)] 1788[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)] 1840[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)] 1899[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)] 1962[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)] 2012[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)] 2110[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)] 2162[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)] 2262[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode, Pack = 1)] 2306[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode, Pack = 1)] 2352[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)] 2408[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)] 2517[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)] 2561[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)]
MS\Internal\AutomationProxies\SafeThemeHandle.cs (1)
33[DllImport("UxTheme.dll", CharSet = CharSet.Auto)/**/]
MS\Win32\NativeMethods.cs (7)
641[StructLayout (LayoutKind.Sequential, CharSet = CharSet.Unicode)] 750[StructLayout(LayoutKind.Sequential, Pack = 1, CharSet = CharSet.Auto)] 760[StructLayout(LayoutKind.Sequential, Pack = 1, CharSet = CharSet.Auto)] 777[StructLayout(LayoutKind.Sequential, Pack = 1, CharSet = CharSet.Auto)] 797[StructLayout (LayoutKind.Sequential, CharSet = CharSet.Auto)] 1547[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)] 1920[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)]
MS\Win32\SafeNativeMethods.cs (2)
24[DllImport(ExternDll.User32, CharSet = CharSet.Unicode)] 26[DllImport(ExternDll.User32, CharSet = CharSet.Unicode, SetLastError = true)]
MS\Win32\UnsafeNativeMethods.cs (33)
35[DllImport(ExternDll.Ntdll, CharSet = CharSet.Unicode)] 40[DllImport(ExternDll.Kernel32, ExactSpelling = true, CharSet = CharSet.Auto)] 42[DllImport(ExternDll.Kernel32, ExactSpelling = true, CharSet = CharSet.Auto)] 103[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)] 120[DllImport(ExternDll.Kernel32, CharSet = CharSet.Unicode, SetLastError = true)] 138[DllImport(ExternDll.User32, CharSet = CharSet.Unicode)] 140[DllImport (ExternDll.User32, CharSet = CharSet.Unicode)] 146[DllImport(ExternDll.User32, CharSet = CharSet.Unicode, SetLastError = true)] 156[DllImport(ExternDll.User32, CharSet = CharSet.Unicode)] 158[DllImport(ExternDll.User32, CharSet = CharSet.Unicode, SetLastError = true)] 160[DllImport(ExternDll.User32, CharSet = CharSet.Unicode)] 162[DllImport(ExternDll.User32, CharSet = CharSet.Unicode, SetLastError = true)] 164[DllImport(ExternDll.User32, CharSet = CharSet.Unicode, SetLastError = true)] 166[DllImport(ExternDll.User32, CharSet = CharSet.Unicode, SetLastError = true)] 168[DllImport(ExternDll.User32, CharSet = CharSet.Unicode, SetLastError = true)] 170[DllImport(ExternDll.User32, CharSet = CharSet.Unicode, SetLastError = true)] 172[DllImport(ExternDll.User32, CharSet = CharSet.Unicode, SetLastError = true)] 174[DllImport(ExternDll.User32, CharSet = CharSet.Unicode)] 182[DllImport(ExternDll.User32, CharSet = CharSet.Unicode)] 190[DllImport(ExternDll.User32, CharSet = CharSet.Unicode, SetLastError = true)] 194[DllImport(ExternDll.User32, CharSet = CharSet.Unicode)] 196[DllImport(ExternDll.User32, CharSet = CharSet.Unicode, SetLastError = true)] 225[DllImport(ExternDll.User32, CharSet = CharSet.Unicode, ExactSpelling = true, SetLastError = true)] 231[DllImport(ExternDll.User32, CharSet = CharSet.Auto, ExactSpelling = true, SetLastError = true)] 233[DllImport(ExternDll.User32, CharSet = CharSet.Auto, ExactSpelling = true, SetLastError = true)] 263[DllImport(ExternDll.User32, CharSet = CharSet.Unicode, ExactSpelling = true, SetLastError = true)] 271[DllImport(ExternDll.User32, CharSet = CharSet.Unicode, SetLastError = true)] 305[DllImport(ExternDll.User32, EntryPoint = "WindowFromPoint", ExactSpelling = true, CharSet = CharSet.Auto)] 308[DllImport(ExternDll.User32, EntryPoint = "WindowFromPhysicalPoint", ExactSpelling = true, CharSet = CharSet.Auto)] 343[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)] 351[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)] 362[DllImport(ExternDll.User32, CharSet = CharSet.Unicode, SetLastError = true)] 407[DllImport(ExternDll.User32, CharSet = CharSet.Unicode)]
src\Microsoft.DotNet.Wpf\src\Shared\MS\Win32\NativeMethodsSetLastError.cs (5)
40[DllImport(PresentationNativeDll, EntryPoint="GetWindowLongWrapper", CharSet=CharSet.Auto, SetLastError=true)] 43[DllImport(PresentationNativeDll, EntryPoint="GetWindowLongPtrWrapper", CharSet=CharSet.Auto, SetLastError=true)] 65[DllImport(PresentationNativeDll, EntryPoint="GetAncestorWrapper", CharSet = CharSet.Auto)] 68[DllImport(PresentationNativeDll, EntryPoint="FindWindowExWrapper", CharSet = CharSet.Unicode, SetLastError = true)] 80[DllImport(PresentationNativeDll, EntryPoint = "GetWindowTextWrapper", CharSet=CharSet.Auto, BestFitMapping = false, SetLastError = true)]
UIAutomationProvider (9)
MS\Internal\Automation\UiaCoreProviderApi.cs (9)
116[DllImport(DllImport.UIAutomationCore, EntryPoint = "UiaReturnRawElementProvider", CharSet = CharSet.Unicode)] 119[DllImport(DllImport.UIAutomationCore, EntryPoint = "UiaHostProviderFromHwnd", CharSet = CharSet.Unicode)] 124[DllImport(DllImport.UIAutomationCore, EntryPoint = "UiaRaiseAutomationPropertyChangedEvent", CharSet = CharSet.Unicode)] 127[DllImport(DllImport.UIAutomationCore, EntryPoint = "UiaRaiseAutomationEvent", CharSet = CharSet.Unicode)] 130[DllImport(DllImport.UIAutomationCore, EntryPoint = "UiaRaiseStructureChangedEvent", CharSet = CharSet.Unicode)] 133[DllImport(DllImport.UIAutomationCore, EntryPoint = "UiaRaiseAsyncContentLoadedEvent", CharSet = CharSet.Unicode)] 136[DllImport(DllImport.UIAutomationCore, EntryPoint = "UiaRaiseNotificationEvent", CharSet = CharSet.Unicode)] 140[DllImport(DllImport.UIAutomationCore, EntryPoint = "UiaRaiseActiveTextPositionChangedEvent", CharSet = CharSet.Unicode)] 143[DllImport(DllImport.UIAutomationCore, EntryPoint = "UiaClientsAreListening", CharSet = CharSet.Unicode)]
UIAutomationTypes (105)
MS\Internal\Automation\UiaCoreTypesApi.cs (3)
105[DllImport(DllImport.UIAutomationCore, EntryPoint = "UiaLookupId", CharSet = CharSet.Unicode)] 108[DllImport(DllImport.UIAutomationCore, EntryPoint = "UiaGetReservedNotSupportedValue", CharSet = CharSet.Unicode)] 111[DllImport(DllImport.UIAutomationCore, EntryPoint = "UiaGetReservedMixedAttributeValue", CharSet = CharSet.Unicode)]
src\Microsoft.DotNet.Wpf\src\Shared\MS\Win32\NativeMethodsCLR.cs (9)
33[StructLayout(LayoutKind.Sequential, CharSet=CharSet.Auto)] 612[StructLayout(LayoutKind.Sequential, CharSet=CharSet.Auto)] 1514[StructLayout(LayoutKind.Sequential,CharSet=CharSet.Auto, Pack=4)] 1681[StructLayout(LayoutKind.Sequential, CharSet=CharSet.Unicode)] 1721[StructLayout(LayoutKind.Sequential, CharSet=CharSet.Auto)] 1756[StructLayout(LayoutKind.Sequential, CharSet=CharSet.Unicode)] 2014[DllImport(ExternDll.Oleaut32,CharSet=CharSet.Auto)] 2017[DllImport(ExternDll.Oleaut32,CharSet=CharSet.Auto)] 2241[StructLayout(LayoutKind.Sequential, CharSet=CharSet.Auto)]
src\Microsoft.DotNet.Wpf\src\Shared\MS\Win32\NativeMethodsOther.cs (4)
68[StructLayout(LayoutKind.Sequential, CharSet=CharSet.Unicode )] 194[DllImport(ExternDll.Gdi32, ExactSpelling = true, CharSet = CharSet.Auto, SetLastError = true)] 339[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Auto)] 606[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)]
src\Microsoft.DotNet.Wpf\src\Shared\MS\Win32\NativeMethodsSetLastError.cs (18)
95[DllImport(PresentationNativeDll, EntryPoint="EnableWindowWrapper", SetLastError = true, ExactSpelling = true, CharSet = System.Runtime.InteropServices.CharSet.Auto)] 98[DllImport(PresentationNativeDll, EntryPoint="GetAncestorWrapper", CharSet = CharSet.Auto)] 101[DllImport(PresentationNativeDll, EntryPoint="GetKeyboardLayoutListWrapper", SetLastError = true, ExactSpelling=true, CharSet=CharSet.Auto)] 110[DllImport(PresentationNativeDll, EntryPoint="GetWindowLongWrapper", CharSet=CharSet.Auto, SetLastError=true)] 113[DllImport(PresentationNativeDll, EntryPoint="GetWindowLongWrapper", CharSet=CharSet.Auto, SetLastError=true)] 116[DllImport(PresentationNativeDll, EntryPoint="GetWindowLongWrapper", CharSet=CharSet.Auto, SetLastError=true)] 119[DllImport(PresentationNativeDll, EntryPoint="GetWindowLongPtrWrapper", CharSet=CharSet.Auto, SetLastError=true)] 122[DllImport(PresentationNativeDll, EntryPoint="GetWindowLongPtrWrapper", CharSet=CharSet.Auto, SetLastError=true)] 125[DllImport(PresentationNativeDll, EntryPoint="GetWindowLongPtrWrapper", CharSet=CharSet.Auto, SetLastError=true)] 128[DllImport(PresentationNativeDll, EntryPoint = "GetWindowTextWrapper", CharSet=CharSet.Auto, BestFitMapping = false, SetLastError = true)] 131[DllImport(PresentationNativeDll, EntryPoint = "GetWindowTextLengthWrapper", CharSet = System.Runtime.InteropServices.CharSet.Auto, SetLastError = true)] 134[DllImport(PresentationNativeDll, EntryPoint="MapWindowPointsWrapper", SetLastError = true, ExactSpelling=true, CharSet=CharSet.Auto)] 140[DllImport(PresentationNativeDll, EntryPoint="SetWindowLongWrapper", CharSet=CharSet.Auto)] 143[DllImport(PresentationNativeDll, EntryPoint="SetWindowLongWrapper", CharSet=CharSet.Auto)] 146[DllImport(PresentationNativeDll, EntryPoint="SetWindowLongWrapper", CharSet=CharSet.Auto, SetLastError=true)] 149[DllImport(PresentationNativeDll, EntryPoint="SetWindowLongPtrWrapper", CharSet=CharSet.Auto)] 152[DllImport(PresentationNativeDll, EntryPoint="SetWindowLongPtrWrapper", CharSet=CharSet.Auto)] 155[DllImport(PresentationNativeDll, EntryPoint="SetWindowLongPtrWrapper", CharSet=CharSet.Auto, SetLastError=true)]
src\Microsoft.DotNet.Wpf\src\Shared\MS\Win32\UnsafeNativeMethodsCLR.cs (71)
45[DllImport(ExternDll.Uxtheme, CharSet = CharSet.Auto, BestFitMapping = false)] 53[DllImport(ExternDll.User32, EntryPoint = "SetWindowPos", ExactSpelling = true, CharSet = CharSet.Auto, SetLastError = true)] 56[DllImport(ExternDll.User32, ExactSpelling = true, CharSet = CharSet.Auto, SetLastError = true)] 59[DllImport(ExternDll.Shcore, CharSet = CharSet.Auto, SetLastError = true)] 62[DllImport(ExternDll.User32, EntryPoint = "IsProcessDPIAware", CharSet = CharSet.Auto, SetLastError = true)] 65[DllImport(ExternDll.Kernel32, CharSet = CharSet.Auto, SetLastError = true)] 68[DllImport(ExternDll.User32, EntryPoint = "EnableNonClientDpiScaling", CharSet = CharSet.Auto, SetLastError = true)] 71[DllImport(ExternDll.User32, SetLastError = true, CharSet = CharSet.Auto, BestFitMapping = false)] 74[DllImport(ExternDll.User32, SetLastError = true, CharSet = CharSet.Auto, BestFitMapping = false)] 77[DllImport(ExternDll.Uxtheme, CharSet = CharSet.Auto, BestFitMapping = false, EntryPoint = "SetWindowTheme")] 80[DllImport(ExternDll.Gdi32, SetLastError = true, ExactSpelling = true, EntryPoint = "CreateCompatibleBitmap", CharSet = CharSet.Auto)] 83[DllImport(ExternDll.Gdi32, EntryPoint = "GetStockObject", SetLastError = true, CharSet = CharSet.Auto)] 86[DllImport(ExternDll.User32, EntryPoint = "FillRect", SetLastError = true, CharSet = CharSet.Auto)] 89[DllImport(ExternDll.Gdi32, SetLastError = true, ExactSpelling = true, CharSet = CharSet.Auto)] 92[DllImport(ExternDll.User32, ExactSpelling = true, CharSet = CharSet.Auto)] 105[DllImport(ExternDll.Gdi32, SetLastError = true, ExactSpelling = true, EntryPoint = "DeleteObject", CharSet = CharSet.Auto)] 108[DllImport(ExternDll.Gdi32, EntryPoint = "SelectObject", SetLastError = true, ExactSpelling = true, CharSet = CharSet.Auto)] 111[DllImport(ExternDll.User32, EntryPoint = "PrintWindow", SetLastError = true, ExactSpelling = true, CharSet = CharSet.Auto)] 114[DllImport(ExternDll.User32, EntryPoint = "RedrawWindow", ExactSpelling = true, CharSet = CharSet.Auto)] 117[DllImport(ExternDll.Shell32, CharSet = CharSet.Auto, BestFitMapping = false)] 120[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)] 158[DllImport(ExternDll.Shell32, CharSet = CharSet.Unicode, SetLastError = true)] 164[DllImport(ExternDll.Kernel32, ExactSpelling = true, CharSet = CharSet.Unicode, SetLastError = true)] 232[DllImport(ExternDll.User32, ExactSpelling = true, CharSet = CharSet.Auto)] 235[DllImport(ExternDll.Ole32, ExactSpelling = true, CharSet = CharSet.Auto, SetLastError = true)] 238[DllImport(ExternDll.Kernel32, EntryPoint = "CloseHandle", CharSet = CharSet.Auto, SetLastError = true)] 261[DllImport(ExternDll.Kernel32, EntryPoint = "UnmapViewOfFile", CharSet = CharSet.Auto, SetLastError = true)] 303[DllImport(ExternDll.Gdi32, SetLastError = true, CharSet = CharSet.Auto)] 306[DllImport(ExternDll.User32, ExactSpelling = true, CharSet = CharSet.Auto)] 309[DllImport(ExternDll.User32, EntryPoint = "GetCursorPos", ExactSpelling = true, CharSet = CharSet.Auto, SetLastError = true)] 322[DllImport(ExternDll.User32, EntryPoint = "GetCursorPos", ExactSpelling = true, CharSet = CharSet.Auto)] 489[DllImport(ExternDll.User32, ExactSpelling = true, CharSet = CharSet.Auto)] 492[DllImport(ExternDll.User32, SetLastError = true, ExactSpelling = true, CharSet = CharSet.Auto)] 495[DllImport(ExternDll.User32, ExactSpelling = true, CharSet = CharSet.Auto)] 498[DllImport(ExternDll.Kernel32, EntryPoint = "GetModuleHandle", CharSet = CharSet.Auto, BestFitMapping = false, ThrowOnUnmappableChar = true, SetLastError = true)] 513[DllImport(ExternDll.User32, CharSet = CharSet.Auto)] 517[DllImport(ExternDll.Kernel32, SetLastError = true, EntryPoint = "GetProcAddress", CharSet = CharSet.Ansi, BestFitMapping = false)] 538[DllImport(ExternDll.Kernel32, EntryPoint = "GetProcAddress", CharSet = CharSet.Ansi, BestFitMapping = false)] 541[DllImport(ExternDll.Kernel32, CharSet = CharSet.Unicode)] 707[DllImport(ExternDll.Kernel32, CallingConvention = CallingConvention.Winapi, CharSet = CharSet.Unicode, SetLastError = true)] 734[DllImport(ExternDll.Kernel32, CallingConvention = CallingConvention.Winapi, CharSet = CharSet.Unicode, SetLastError = true)] 741[DllImport(ExternDll.Kernel32, CallingConvention = CallingConvention.Winapi, CharSet = CharSet.Unicode, SetLastError = true)] 750[DllImport(ExternDll.User32, SetLastError = true, CharSet = CharSet.Auto, BestFitMapping = false)] 753[DllImport(ExternDll.User32, SetLastError = true, CharSet = CharSet.Auto, BestFitMapping = false)] 756[DllImport(ExternDll.User32, SetLastError = true, CharSet = CharSet.Auto, BestFitMapping = false)] 759[DllImport(ExternDll.User32, SetLastError = true, CharSet = CharSet.Auto, BestFitMapping = false)] 762[DllImport(ExternDll.User32, SetLastError = true, CharSet = CharSet.Auto, BestFitMapping = false)] 765[DllImport(ExternDll.Kernel32, CharSet = CharSet.Auto, ExactSpelling = true)] 768[DllImport(ExternDll.User32, EntryPoint = "ClientToScreen", SetLastError = true, ExactSpelling = true, CharSet = CharSet.Auto)] 779[DllImport(ExternDll.User32, ExactSpelling = true, CharSet = CharSet.Auto)] 782[DllImport(ExternDll.User32, ExactSpelling = true, CharSet = CharSet.Auto)] 785[DllImport(ExternDll.Ole32, ExactSpelling = true, CharSet = CharSet.Auto)] 788[DllImport(ExternDll.Ole32, ExactSpelling = true, CharSet = CharSet.Auto)] 819[DllImport(ExternDll.User32, ExactSpelling = true, EntryPoint = "BeginPaint", CharSet = CharSet.Auto)] 827[DllImport(ExternDll.User32, ExactSpelling = true, EntryPoint = "EndPaint", CharSet = CharSet.Auto)] 835[DllImport(ExternDll.User32, SetLastError = true, ExactSpelling = true, EntryPoint = "GetDC", CharSet = CharSet.Auto)] 848[DllImport(ExternDll.User32, ExactSpelling = true, EntryPoint = "ReleaseDC", CharSet = CharSet.Auto)] 857[DllImport(ExternDll.Gdi32, SetLastError = true, ExactSpelling = true, CharSet = CharSet.Auto)] 860[DllImport(ExternDll.User32, ExactSpelling = true, CharSet = CharSet.Auto)] 863[DllImport(ExternDll.User32, ExactSpelling = true, CharSet = CharSet.Auto)] 867[DllImport(ExternDll.User32, ExactSpelling = true, CharSet = CharSet.Auto, SetLastError = true)] 881[DllImport(ExternDll.User32, ExactSpelling = true, EntryPoint = "DestroyCursor", CharSet = CharSet.Auto)] 889[DllImport(ExternDll.User32, EntryPoint = "DestroyIcon", CharSet = CharSet.Auto, SetLastError = true)] 910[DllImport(ExternDll.Gdi32, EntryPoint = "DeleteObject", CharSet = CharSet.Auto, SetLastError = true)] 954[DllImport(ExternDll.Gdi32, SetLastError = true, ExactSpelling = true, CharSet = CharSet.Auto, EntryPoint = "CreateBitmap")] 969[DllImport(ExternDll.User32, SetLastError = true, ExactSpelling = true, CharSet = CharSet.Auto, EntryPoint = "CreateIconIndirect")] 984[DllImport(ExternDll.User32, ExactSpelling = true, CharSet = CharSet.Auto)] 1041[DllImport(ExternDll.User32, EntryPoint = "CreateWindowEx", CharSet = CharSet.Auto, BestFitMapping = false, SetLastError = true)] 1060[DllImport(ExternDll.User32, SetLastError = true, EntryPoint = "DestroyWindow", CharSet = CharSet.Auto)] 2653[DllImport(ExternDll.User32, SetLastError = true, CharSet = CharSet.Auto)] 2659[DllImport(ExternDll.User32, SetLastError = true, CharSet = CharSet.Auto)]
vbc (3)
src\Compilers\Shared\NativeMethods.cs (3)
14[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)] 76[DllImport("kernel32.dll", CharSet = CharSet.Unicode, SetLastError = true)] 93[DllImport("kernel32.dll", CharSet = CharSet.Unicode, SetLastError = true)]
VBCSCompiler (3)
src\Compilers\Shared\NativeMethods.cs (3)
14[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)] 76[DllImport("kernel32.dll", CharSet = CharSet.Unicode, SetLastError = true)] 93[DllImport("kernel32.dll", CharSet = CharSet.Unicode, SetLastError = true)]
WindowsFormsIntegration (12)
MS\Win32\SafeNativeMethods.cs (2)
28[DllImport(ExternDll.User32, ExactSpelling = true, CharSet = System.Runtime.InteropServices.CharSet.Auto)] 32[DllImport(ExternDll.User32, ExactSpelling = true, CharSet = CharSet.Auto)]
MS\Win32\UnsafeNativeMethods.cs (9)
12[DllImport(ExternDll.User32, ExactSpelling = true, CharSet = CharSet.Auto)] 16[DllImport(ExternDll.User32, ExactSpelling = true, CharSet = CharSet.Auto)] 20[DllImport(ExternDll.User32, ExactSpelling = true, CharSet = CharSet.Auto)] 24[DllImport(ExternDll.User32, ExactSpelling = true, CharSet = CharSet.Auto)] [return: MarshalAs(UnmanagedType.Bool)] 28[DllImport(ExternDll.User32, CharSet = CharSet.Auto)] 32[DllImport(ExternDll.User32, CharSet = CharSet.Auto, SetLastError = true)] 36[DllImport(ExternDll.Gdi32, ExactSpelling = true, CharSet = CharSet.Auto)] 40[DllImport(ExternDll.Gdi32, EntryPoint = "CreateDC", CharSet = CharSet.Auto)] 51[DllImport(ExternDll.Gdi32, ExactSpelling = true, CharSet = CharSet.Auto)]
src\Microsoft.DotNet.Wpf\src\Shared\MS\Win32\NativeMethodsSetLastError.cs (1)
35[DllImport(PresentationNativeDll, EntryPoint="EnableWindowWrapper", SetLastError = true, ExactSpelling = true, CharSet = System.Runtime.InteropServices.CharSet.Auto)]