48 references to SizeOf
csc (1)
src\roslyn\src\Compilers\Shared\BuildServerConnection.cs (1)
572startInfo.cb = Marshal.SizeOf(startInfo);
dotnet (1)
src\sdk\artifacts\.packages\microsoft.codeanalysis.buildclient\5.10.0-1.26377.101\contentFiles\cs\net11.0\BuildServerConnection.cs (1)
572startInfo.cb = Marshal.SizeOf(startInfo);
Microsoft.Build.Tasks.CodeAnalysis (1)
src\roslyn\src\Compilers\Shared\BuildServerConnection.cs (1)
572startInfo.cb = Marshal.SizeOf(startInfo);
Microsoft.NET.Sdk.Razor.Tasks (1)
src\sdk\src\RazorSdk\Tool\ServerProtocol\ServerConnection.cs (1)
347startInfo.cb = Marshal.SizeOf(startInfo);
NuGet.Packaging (16)
Signing\Cms\NativeCms.cs (11)
252var unmanagedBlob = hb.Alloc(Marshal.SizeOf(blob)); 300countersignatureDelAttr.cbSize = (uint)Marshal.SizeOf(countersignatureDelAttr); 301var unmanagedCountersignatureDelAttr = hb.Alloc(Marshal.SizeOf(countersignatureDelAttr)); 345var unmanagedSignerInfo = hb.Alloc(Marshal.SizeOf(signerInfo)); 384var unmanagedBlob = hb.Alloc(Marshal.SizeOf(encondedSignerBlob)); 398signerInfoAddAttr.cbSize = (uint)Marshal.SizeOf(signerInfoAddAttr); 399var unmanagedSignerInfoAddAttr = hb.Alloc(Marshal.SizeOf(signerInfoAddAttr)); 421timestampAddAttr.cbSize = (uint)Marshal.SizeOf(timestampAddAttr); 422var unmanagedTimestampAddAttr = hb.Alloc(Marshal.SizeOf(timestampAddAttr)); 446var unmanagedBlob = hb.Alloc(Marshal.SizeOf(blob)); 461var unmanagedAttr = hb.Alloc(Marshal.SizeOf(attr));
Signing\Cms\NativeUtility.cs (5)
47signedInfo.cbSize = Marshal.SizeOf(signedInfo); 50using (var signerInfoHandle = new SafeLocalAllocHandle(Marshal.AllocHGlobal(Marshal.SizeOf(signerInfo)))) 57using (var certificatesHandle = new SafeLocalAllocHandle(Marshal.AllocHGlobal(Marshal.SizeOf(certificateBlobs[0]) * certificateBlobs.Length))) 61Marshal.StructureToPtr(certificateBlobs[i], new IntPtr(certificatesHandle.DangerousGetHandle().ToInt64() + Marshal.SizeOf(certificateBlobs[i]) * i), fDeleteOld: false); 117signerInfo.cbSize = (uint)Marshal.SizeOf(signerInfo);
PresentationCore (2)
src\wpf\src\Microsoft.DotNet.Wpf\src\Shared\MS\Win32\WinInet.cs (1)
28UInt32 size = (UInt32)Marshal.SizeOf(icci);
System\Windows\InterOp\HwndMouseInputProvider.cs (1)
231int n = UnsafeNativeMethods.GetMouseMovePointsEx((uint)(Marshal.SizeOf(mp_in)), ref mp_in, mp_out, 64, mode);
PresentationFramework (2)
MS\Internal\AppModel\AppSecurityManager.cs (1)
119sei.cbSize = Marshal.SizeOf(sei);
System\Windows\Window.cs (1)
5210placement.length = Marshal.SizeOf(placement);
PresentationUI (1)
MS\Internal\Documents\PeoplePickerWrapper.cs (1)
144IntPtr queryInitParamsPtr = Marshal.AllocCoTaskMem(Marshal.SizeOf(queryInitParams));
rzc (1)
ServerProtocol\ServerConnection.cs (1)
347startInfo.cb = Marshal.SizeOf(startInfo);
System.Diagnostics.EventLog (2)
System\Diagnostics\Reader\NativeWrapper.cs (2)
878pointer = new IntPtr(((long)pointer + Marshal.SizeOf(varVal))); 922pointer = new IntPtr(((long)pointer + Marshal.SizeOf(varVal)));
System.DirectoryServices (7)
System\DirectoryServices\ActiveDirectory\DomainController.cs (3)
1107currentDc = IntPtr.Add(currentDc, Marshal.SizeOf(domainControllerInfo3)); 1129currentDc = IntPtr.Add(currentDc, Marshal.SizeOf(domainControllerInfo2)); 1262currentItem = IntPtr.Add(currentItem, Marshal.SizeOf(dsNameResultItem));
System\DirectoryServices\ActiveDirectory\Forest.cs (1)
879currentItem = IntPtr.Add(currentItem, Marshal.SizeOf(dsNameResultItem));
System\DirectoryServices\ActiveDirectory\NativeMethods.cs (1)
166osVersionInfoSize = (int)Marshal.SizeOf(this);
System\DirectoryServices\DirectorySearcher.cs (2)
814byte[] sortKeyBytes = new byte[Marshal.SizeOf(sortKey)]; 848byte[] vlvBytes = new byte[Marshal.SizeOf(vlvValue)];
System.DirectoryServices.Protocols (1)
System\DirectoryServices\Protocols\ldap\LdapConnection.Linux.cs (1)
140IntPtr ptrToDefaults = Marshal.AllocHGlobal(Marshal.SizeOf(defaults));
System.Net.Http.WinHttpHandler (1)
System\Net\Http\WinHttpHandler.cs (1)
1318(uint)Marshal.SizeOf(proxyInfo));
System.Windows.Forms (1)
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.CalendarButtonAccessibleObject.cs (1)
135PInvoke.SendInput(1, &mouseInput, Marshal.SizeOf(mouseInput));
UIAutomationClient (4)
MS\Internal\Automation\input.cs (2)
64Misc.SendInput(1, ref ki, Marshal.SizeOf(ki)); 83Misc.SendInput(1, ref ki, Marshal.SizeOf(ki));
MS\Internal\Automation\Misc.cs (1)
323guiThreadInfo.cbSize = Marshal.SizeOf(guiThreadInfo);
System\Windows\Automation\Condition.cs (1)
38int size = Marshal.SizeOf(uiaCondition);
UIAutomationClientSideProviders (3)
MS\Internal\AutomationProxies\Input.cs (3)
119if( UnsafeNativeMethods.SendInput( 1, ref mi, Marshal.SizeOf(mi) ) == 0 ) 144if( UnsafeNativeMethods.SendInput( 1, ref ki, Marshal.SizeOf(ki) ) == 0 ) 168Misc.SendInput(1, ref ki, Marshal.SizeOf(ki));
vbc (1)
src\roslyn\src\Compilers\Shared\BuildServerConnection.cs (1)
572startInfo.cb = Marshal.SizeOf(startInfo);
VBCSCompiler (2)
src\roslyn\src\Compilers\Server\VBCSCompiler\MemoryHelper.cs (1)
21this.Length = (int)Marshal.SizeOf(this);
src\roslyn\src\Compilers\Shared\BuildServerConnection.cs (1)
572startInfo.cb = Marshal.SizeOf(startInfo);