470 writes to CharSet
csc (2)
src\Compilers\Shared\NativeMethods.cs (2)
76[DllImport("kernel32.dll", CharSet = CharSet.Unicode, SetLastError = true)] 93[DllImport("kernel32.dll", CharSet = CharSet.Unicode, SetLastError = true)]
Microsoft.Build.Framework (14)
NativeMethods.cs (14)
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 (2)
src\Compilers\Shared\NativeMethods.cs (2)
76[DllImport("kernel32.dll", CharSet = CharSet.Unicode, SetLastError = true)] 93[DllImport("kernel32.dll", CharSet = CharSet.Unicode, SetLastError = true)]
Microsoft.Build.Tasks.CodeAnalysis.Sdk (2)
src\Compilers\Shared\NativeMethods.cs (2)
76[DllImport("kernel32.dll", CharSet = CharSet.Unicode, SetLastError = true)] 93[DllImport("kernel32.dll", CharSet = CharSet.Unicode, SetLastError = true)]
Microsoft.CodeAnalysis (3)
InternalUtilities\FileLockCheck.cs (3)
55[DllImport(RestartManagerDll, CharSet = CharSet.Unicode)] 97[DllImport(RestartManagerDll, CharSet = CharSet.Unicode)] 118[DllImport(RestartManagerDll, CharSet = CharSet.Unicode)]
Microsoft.CodeAnalysis.EditorFeatures (1)
Utilities\NativeMethods.cs (1)
17[DllImport("user32.dll", CharSet = CharSet.Auto)]
Microsoft.CodeAnalysis.Remote.ServiceHub (1)
Services\BrokeredServiceBase.cs (1)
204[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.Workspaces.MSBuild (1)
src\Workspaces\MSBuild\BuildHost\Rpc\Contracts\MonoMSBuildDiscovery.cs (1)
43[DllImport("libc", EntryPoint = "realpath", CharSet = CharSet.Ansi, ExactSpelling = true, CallingConvention = CallingConvention.Cdecl)]
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (4)
Rpc\Contracts\MonoMSBuildDiscovery.cs (1)
43[DllImport("libc", EntryPoint = "realpath", CharSet = CharSet.Ansi, ExactSpelling = true, CallingConvention = CallingConvention.Cdecl)]
src\Compilers\Core\Portable\InternalUtilities\FileLockCheck.cs (3)
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.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.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)]
PrepareTests (1)
MinimizeUtil.cs (1)
298[DllImport("Kernel32.dll", CharSet = CharSet.Unicode, SetLastError = true)]
PresentationCore (14)
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\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 (14)
MS\Internal\Printing\UnsafeNativeMethods.cs (1)
12[DllImport("comdlg32.dll", CharSet = CharSet.Auto)]
System\Windows\Standard\NativeMethods.cs (13)
1376[DllImport("gdi32.dll", CharSet = CharSet.Unicode)] 1379[DllImport("gdi32.dll", CharSet = CharSet.Unicode, SetLastError = true)] 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)]
PresentationUI (1)
MS\Internal\Documents\Application\CommandEnforcer.cs (1)
201[DllImport("msdrm.dll", SetLastError = false, CharSet = CharSet.Unicode, CallingConvention = CallingConvention.StdCall)]
ReachFramework (16)
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)]
PrintSystemExceptions\InteropWin32ApiThunk.cs (1)
25CharSet=CharSet.Unicode,
Replay (2)
src\Compilers\Shared\NativeMethods.cs (2)
76[DllImport("kernel32.dll", CharSet = CharSet.Unicode, SetLastError = true)] 93[DllImport("kernel32.dll", CharSet = CharSet.Unicode, SetLastError = true)]
System.Drawing.Common.Tests (1)
System\Drawing\SystemFontsTests.cs (1)
102[DllImport("kernel32.dll", SetLastError = false, CharSet = CharSet.Auto)]
System.Private.CoreLib (1)
src\System\Reflection\RuntimeCustomAttributeData.cs (1)
2219attribute.CharSet = charSet;
System.Private.Windows.Core.TestUtilities (1)
XUnit\UseCultureAttribute.cs (1)
134[DllImport("Kernel32.dll", ExactSpelling = true, CharSet = CharSet.Unicode)]
System.Reflection.MetadataLoadContext (1)
System\Reflection\TypeLoading\MethodBase\Ecma\EcmaMethodDecoder.cs (1)
144CharSet = charSet,
System.Windows.Controls.Ribbon (6)
Microsoft\Windows\Controls\Ribbon\NativeMethods.cs (6)
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 (1)
Windows\Win32\PInvoke.Shell_NotifyIconW.cs (1)
11[DllImport("shell32.dll", CharSet = CharSet.Unicode, ExactSpelling = true)]
UIAutomationClient (116)
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 (16)
21[DllImport("user32.dll", ExactSpelling=true, CharSet=System.Runtime.InteropServices.CharSet.Auto)] 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 (40)
MS\Internal\AutomationProxies\CommonGetThemePartSize.cs (2)
200[DllImport ("UxTheme.dll", CharSet = CharSet.Auto)] 203[DllImport ("UxTheme.dll", CharSet = CharSet.Auto)]
MS\Internal\AutomationProxies\SafeThemeHandle.cs (1)
33[DllImport("UxTheme.dll", CharSet = CharSet.Auto)/**/]
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 (30)
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)] 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)] 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 (94)
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 (2)
2014[DllImport(ExternDll.Oleaut32,CharSet=CharSet.Auto)] 2017[DllImport(ExternDll.Oleaut32,CharSet=CharSet.Auto)]
src\Microsoft.DotNet.Wpf\src\Shared\MS\Win32\NativeMethodsOther.cs (1)
194[DllImport(ExternDll.Gdi32, ExactSpelling = true, CharSet = CharSet.Auto, SetLastError = true)]
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 (70)
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)] 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 (2)
src\Compilers\Shared\NativeMethods.cs (2)
76[DllImport("kernel32.dll", CharSet = CharSet.Unicode, SetLastError = true)] 93[DllImport("kernel32.dll", CharSet = CharSet.Unicode, SetLastError = true)]
VBCSCompiler (2)
src\Compilers\Shared\NativeMethods.cs (2)
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)]
8 references to CharSet
Microsoft.CodeAnalysis.CSharp.Scripting.UnitTests (1)
InteractiveSessionTests.cs (1)
283Assert.Equal(CharSet.Unicode, dllImport.CharSet);
Microsoft.Interop.LibraryImportGenerator (3)
Analyzers\ConvertToLibraryImportFixer.cs (2)
152nameof(DllImportAttribute.CharSet), 448else if (IsMatchingNamedArg(attrArg, nameof(DllImportAttribute.CharSet)))
LibraryImportGenerator.cs (1)
500NameEqualsSyntax name = NameEquals(nameof(DllImportAttribute.CharSet));
Microsoft.Interop.LibraryImportGenerator.Downlevel (1)
DownlevelLibraryImportGenerator.cs (1)
375NameEqualsSyntax name = NameEquals(nameof(DllImportAttribute.CharSet));
System.Private.CoreLib (1)
src\System\Reflection\RuntimeCustomAttributeData.cs (1)
328new CustomAttributeNamedArgument(type.GetField("CharSet")!, dllImport.CharSet),
System.Reflection.MetadataLoadContext (2)
System\Reflection\TypeLoading\Methods\RoDefinitionMethod.DllImport.cs (2)
43attributeType.ToCustomAttributeNamedArgument(nameof(DllImportAttribute.CharSet), ct[CoreType.CharSet], (int)dia.CharSet),