33 writes to SizeConst
Microsoft.CodeAnalysis (2)
InternalUtilities\FileLockCheck.cs (2)
42[MarshalAs(UnmanagedType.ByValTStr, SizeConst = CCH_RM_MAX_APP_NAME + 1)] 44[MarshalAs(UnmanagedType.ByValTStr, SizeConst = CCH_RM_MAX_SVC_NAME + 1)]
Microsoft.Extensions.Diagnostics.ResourceMonitoring (1)
Windows\Network\IN6_ADDR.cs (1)
12[MarshalAs(UnmanagedType.ByValArray, SizeConst = 16)]
PresentationCore (1)
MS\Win32\UnsafeNativeMethodsPointer.cs (1)
338[MarshalAs(UnmanagedType.ByValTStr, SizeConst = POINTER_DEVICE_PRODUCT_STRING_MAX)]
PresentationFramework (10)
MS\Internal\AppModel\ShellProvider.cs (1)
80[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 260)]
MS\Internal\Printing\NativeMethods.cs (2)
83[MarshalAs(UnmanagedType.ByValTStr, SizeConst = CCHDEVICENAME)] 101[MarshalAs(UnmanagedType.ByValTStr, SizeConst = CCHFORMNAME)]
System\Windows\Standard\NativeMethods.cs (6)
1765[MarshalAs(UnmanagedType.ByValArray, SizeConst = 128)] 1774[MarshalAs(UnmanagedType.ByValArray, SizeConst = 256)] 1778[MarshalAs(UnmanagedType.ByValArray, SizeConst = 64)] 1836[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 32)] 2146[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 260)] 2148[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 14)]
System\Windows\Standard\ShellProvider.cs (1)
332[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 260)]
PresentationUI (1)
MS\Internal\Documents\Application\NativeDirectoryServicesQueryAPIs.cs (1)
158[MarshalAs(UnmanagedType.ByValArray, SizeConst=1)]
System.DirectoryServices (1)
System\DirectoryServices\ActiveDirectory\NativeMethods.cs (1)
175[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 128)]
System.Reflection.MetadataLoadContext (3)
System\Reflection\TypeLoading\CustomAttributes\Ecma\EcmaCustomAttributeHelpers.cs (3)
197ma.SizeConst = br.ReadCompressedInteger(); 207ma.SizeConst = br.ReadCompressedInteger(); 231ma.SizeConst = br.ReadCompressedInteger();
System.Runtime.InteropServices (1)
System\Runtime\InteropServices\ComTypes\IEnumSTATDATA.cs (1)
26int Next(int celt, [Out, MarshalAs(UnmanagedType.LPArray, SizeParamIndex = 0)] STATDATA[] rgelt, [Out, MarshalAs(UnmanagedType.LPArray, SizeConst = 1)] int[] pceltFetched);
System.Speech (3)
Internal\SapiInterop\SapiRecoInterop.cs (2)
250[MarshalAs(UnmanagedType.ByValArray, SizeConst = 20)] // SP_MAX_LANGIDS 259[MarshalAs(UnmanagedType.ByValArray, SizeConst = 255)]
src\runtime\src\libraries\Common\src\Interop\Windows\WinMm\Interop.waveOutGetDevCaps.cs (1)
25[MarshalAs(UnmanagedType.ByValTStr, SizeConst = szPnameLength)]
System.Transactions.Local (1)
System\Transactions\DtcProxyShim\Xactopt.cs (1)
21[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 40)]
System.Windows.Controls.Ribbon (1)
Microsoft\Windows\Controls\Ribbon\NativeMethods.cs (1)
289[MarshalAs(UnmanagedType.ByValArray, SizeConst = 0x20)]
UIAutomationClientSideProviders (4)
MS\Win32\NativeMethods.cs (1)
658[MarshalAs (UnmanagedType.ByValTStr, SizeConst = 32)]
MS\Win32\UnsafeNativeMethods.cs (3)
325[MarshalAs(System.Runtime.InteropServices.UnmanagedType.ByValArray, SizeConst = NativeMethods.CCHILDREN_TITLEBAR + 1)] 334[MarshalAs(System.Runtime.InteropServices.UnmanagedType.ByValArray, SizeConst = NativeMethods.CCHILDREN_TITLEBAR + 1)] 336[MarshalAs(System.Runtime.InteropServices.UnmanagedType.ByValArray, SizeConst = NativeMethods.CCHILDREN_TITLEBAR + 1)]
UIAutomationTypes (4)
src\wpf\src\Microsoft.DotNet.Wpf\src\Shared\MS\Win32\NativeMethodsCLR.cs (3)
1520[MarshalAs(UnmanagedType.ByValArray, SizeConst=32)] 1717[MarshalAs(UnmanagedType.ByValTStr, SizeConst=32)] 1898[MarshalAs(UnmanagedType.ByValArray, SizeConst=6)/*leftover(offset=0, widths)*/]
src\wpf\src\Microsoft.DotNet.Wpf\src\Shared\MS\Win32\NativeMethodsOther.cs (1)
76[MarshalAs(UnmanagedType.ByValTStr, SizeConst=128)]
3 references to SizeConst
Microsoft.Interop.SourceGeneration (1)
MarshalAsParser.cs (1)
176if (namedArguments.TryGetValue(nameof(MarshalAsAttribute.SizeConst), out TypedConstant sizeConstArg))
System.Reflection.MetadataLoadContext (2)
System\Reflection\TypeLoading\CustomAttributes\CustomAttributeHelpers.cs (2)
119attributeType.ToCustomAttributeNamedArgument(nameof(MarshalAsAttribute.SizeConst), ct[CoreType.Int32], ma.SizeConst),