690 references to SizeOf
mscorlib (40)
microsoft\win32\win32native.cs (2)
637internal static readonly long SizeOf = (long)Marshal.SizeOf(typeof(SID_AND_ATTRIBUTES)); 788buffer.length = Marshal.SizeOf(typeof(MEMORYSTATUSEX));
system\collections\concurrent\PartitionerStatic.cs (1)
1717chunkSize = Math.Max(1, DEFAULT_BYTES_PER_CHUNK / Marshal.SizeOf(typeof(TSource)));
system\deployment\isolationinterop.cs (15)
1221Size = (UInt32)Marshal.SizeOf(typeof(StoreOperationStageComponent)); 1261Size = (UInt32)Marshal.SizeOf(typeof(StoreOperationStageComponentFile)); 1292Size = (UInt32)Marshal.SizeOf(typeof(StoreApplicationReference)); 1344Size = (UInt32)Marshal.SizeOf(typeof(StoreOperationPinDeployment)); 1390Size = (UInt32)Marshal.SizeOf(typeof(StoreOperationUnpinDeployment)); 1434Size = (UInt32)Marshal.SizeOf(typeof(StoreOperationInstallDeployment)); 1478Size = (UInt32)Marshal.SizeOf(typeof(StoreOperationUninstallDeployment)); 1545Size = (UInt32)Marshal.SizeOf(typeof(StoreOperationSetDeploymentMetadata)); 1604ulong iSlotSize = (ulong)Marshal.SizeOf(typeof(StoreOperationMetadataProperty)); 1623int iSlotSize = Marshal.SizeOf(typeof(StoreOperationMetadataProperty)); 1655Size = (UInt32)Marshal.SizeOf(typeof(StoreOperationSetCanonicalizationContext)); 1687Size = (UInt32)Marshal.SizeOf(typeof(StoreOperationScavenge)); 2809Parameters.Size = (UInt32)Marshal.SizeOf(typeof(CreateActContextParameters)); 2817SourceInfo.Size = (UInt32)Marshal.SizeOf(typeof(CreateActContextParametersSource)); 2822DefAppIdSource.Size = (UInt32)Marshal.SizeOf(typeof(CreateActContextParametersSourceDefinitionAppid));
system\diagnostics\eventing\eventprovider.cs (1)
536if (System.Runtime.InteropServices.Marshal.SizeOf(typeof(IntPtr)) == 8)
system\globalization\compareinfo.cs (1)
1328v.dwNLSVersionInfoSize = Marshal.SizeOf(typeof(Win32Native.NlsVersionInfoEx));
system\runtime\interopservices\marshal.cs (1)
230return SizeOf(typeof(T));
system\runtime\interopservices\windowsruntime\clripropertyvalueimpl.cs (5)
515Contract.Requires(Marshal.SizeOf(expectedBoxedType) == Marshal.SizeOf(typeof(T))); 536Contract.Requires(Marshal.SizeOf(expectedArrayElementType) == Marshal.SizeOf(typeof(T))); 551Buffer.Memcpy(pConverted, pData, checked(Marshal.SizeOf(typeof(T)) * converted.Length));
system\security\principal\ntaccount.cs (3)
364SidsPtr.Initialize((uint)sourceAccounts.Count, (uint)Marshal.SizeOf(typeof(Win32Native.LSA_TRANSLATED_SID2))); 396SidsPtr.Initialize((uint)sourceAccounts.Count, (uint)Marshal.SizeOf(typeof(Win32Native.LSA_TRANSLATED_SID))); 403Win32Native.LSA_TRUST_INFORMATION ti = ( Win32Native.LSA_TRUST_INFORMATION )Marshal.PtrToStructure( new IntPtr(( long )rdl.Domains + i * Marshal.SizeOf( typeof( Win32Native.LSA_TRUST_INFORMATION ))), typeof( Win32Native.LSA_TRUST_INFORMATION ));
system\security\principal\sid.cs (2)
1003NamesPtr.Initialize((uint)sourceSids.Count, (uint)Marshal.SizeOf(typeof(Win32Native.LSA_TRANSLATED_NAME))); 1023Win32Native.LSA_TRUST_INFORMATION ti = ( Win32Native.LSA_TRUST_INFORMATION )Marshal.PtrToStructure( new IntPtr(( long )rdl.Domains + i * Marshal.SizeOf( typeof( Win32Native.LSA_TRUST_INFORMATION ))), typeof( Win32Native.LSA_TRUST_INFORMATION ));
system\security\principal\win32.cs (2)
129Loa.Length = Marshal.SizeOf( typeof( Win32Native.LSA_OBJECT_ATTRIBUTES )); 327referencedDomains.Initialize((uint)Marshal.SizeOf(typeof(Win32Native.LSA_REFERENCED_DOMAIN_LIST)));
system\security\principal\windowsidentity.cs (7)
175uint dwLength = (uint) Marshal.SizeOf(typeof(uint)); 317pLogonSessionData.Initialize((uint)Marshal.SizeOf(typeof(Win32Native.SECURITY_LOGON_SESSION_DATA))); 889Contract.Assert(information.ByteLength >= (ulong)Marshal.SizeOf(typeof(T)), 940uint dwLength = (uint) Marshal.SizeOf(typeof(uint)); 1072Contract.Assert(Marshal.SizeOf(typeof(Win32Native.KERB_S4U_LOGON)) % IntPtr.Size == 0, "Potential allignment issue setting up S4U logon buffer"); 1073uint logonInfoSize = (uint) (Marshal.SizeOf(typeof(Win32Native.KERB_S4U_LOGON)) + upnBytes.Length); 1082ulong upnOffset = (ulong)Marshal.SizeOf(typeof(Win32Native.KERB_S4U_LOGON));
PresentationBuildTasks (2)
Base\MS\Internal\IO\Packaging\Compoundfile\ContainerUtilities.cs (2)
306return Marshal.SizeOf(typeof(Int16)); 319return Marshal.SizeOf(typeof(Int32));
PresentationCore (14)
Core\CSharp\MS\Internal\Ink\GestureRecognizer\NativeRecognizer.cs (3)
600packetDescription.cbPacketSize = (uint)(propertyGuids.Length * Marshal.SizeOf(typeof(Int32))); 632int allocationSize = (int)(Marshal.SizeOf(typeof(MS.Win32.Recognizer.PACKET_PROPERTY)) * packetDescription.cPacketProperties); 649countOfBytes = packetCount * Marshal.SizeOf(typeof(Int32));
Core\CSharp\System\Windows\Input\InputProcessorProfiles.cs (1)
189int sizeOfShort = Marshal.SizeOf(typeof(short));
Core\CSharp\System\Windows\Media\Imaging\PropVariant.cs (1)
170long size = Marshal.SizeOf(type) * length;
Core\CSharp\System\Windows\Media\PixelFormat.cs (1)
180Debug.Assert(Marshal.SizeOf(typeof(Guid)) == 16);
Shared\MS\Internal\Ink\Native.cs (8)
22SizeOfInt = (uint)Marshal.SizeOf(typeof(int)); 23SizeOfUInt = (uint)Marshal.SizeOf(typeof(uint)); 24SizeOfUShort = (uint)Marshal.SizeOf(typeof(ushort)); 25SizeOfByte = (uint)Marshal.SizeOf(typeof(byte)); 26SizeOfFloat = (uint)Marshal.SizeOf(typeof(float)); 27SizeOfDouble = (uint)Marshal.SizeOf(typeof(double)); 28SizeOfGuid = (uint)Marshal.SizeOf(typeof(Guid)); 29SizeOfDecimal = (uint)Marshal.SizeOf(typeof(decimal));
PresentationFramework (45)
src\Framework\Microsoft\Win32\FileDialog.cs (1)
1008ofn.lStructSize = Marshal.SizeOf(typeof(NativeMethods.OPENFILENAME_I));
src\Framework\MS\Internal\AppModel\AppSecurityManager.cs (1)
461Marshal.SizeOf( typeof (int) ),
src\Framework\MS\Internal\Controls\ActiveXSite.cs (1)
297lpFrameInfo.cb = (uint)Marshal.SizeOf(typeof(NativeMethods.OLEINPLACEFRAMEINFO));
src\Framework\MS\Internal\IO\Packaging\indexingfiltermarshaler.cs (1)
246pNative = Marshal.AllocCoTaskMem(Marshal.SizeOf(typeof(PROPVARIANT)));
src\Framework\MS\Internal\Printing\NativeMethods.cs (2)
28public int lStructSize = Marshal.SizeOf(typeof(PRINTDLGEX32)); 54public int lStructSize = Marshal.SizeOf(typeof(PRINTDLGEX64));
src\Framework\MS\Internal\Printing\PrintDlgExMarshaler.cs (6)
582pdex.lpPageRanges = Marshal.AllocHGlobal(Marshal.SizeOf(typeof(NativeMethods.PRINTPAGERANGE))); 621int cbBufferSize = Marshal.SizeOf(typeof(NativeMethods.PRINTDLGEX32)); 659pdex.lpPageRanges = Marshal.AllocHGlobal(Marshal.SizeOf(typeof(NativeMethods.PRINTPAGERANGE))); 698int cbBufferSize = Marshal.SizeOf(typeof(NativeMethods.PRINTDLGEX64)); 831Marshal.SizeOf(typeof(NativeMethods.DEVNAMES))); 834ushort baseOffset = (ushort)Marshal.SizeOf(typeof(NativeMethods.DEVNAMES));
src\Framework\System\Windows\Controls\Primitives\Popup.cs (2)
2681monitorInfo.cbSize = Marshal.SizeOf(typeof(NativeMethods.MONITORINFOEX)); 2795resultOfGetObject = UnsafeNativeMethods.GetObject(iconInfo.hbmMask.MakeHandleRef(null), Marshal.SizeOf(typeof(NativeMethods.BITMAP)), bm);
src\Framework\System\Windows\Documents\ImmComposition.cs (11)
520result = new char[size / Marshal.SizeOf(typeof(short))]; 537composition = new char[size / Marshal.SizeOf(typeof(short))]; 567attributes = new byte[size / Marshal.SizeOf(typeof(byte))]; 1493int requestSize = Marshal.SizeOf(typeof(NativeMethods.RECONVERTSTRING)) + (target.Length * Marshal.SizeOf(typeof(short))) + ((_maxSrounding + 1) * Marshal.SizeOf(typeof(short)) * 2); 1507reconv.dwStrOffset = Marshal.SizeOf(typeof(NativeMethods.RECONVERTSTRING)); // in byte count 1509reconv.dwCompStrOffset = offsetStart * Marshal.SizeOf(typeof(short)); // in byte count 1511reconv.dwTargetStrOffset = offsetStart * Marshal.SizeOf(typeof(short)); // in byte count 1543p += Marshal.SizeOf(typeof(NativeMethods.RECONVERTSTRING)); 1697start = MoveToNextCharPos(start, (reconv.dwCompStrOffset - _reconv.dwCompStrOffset) / Marshal.SizeOf(typeof(short)));
src\Framework\System\Windows\Documents\InputScopeAttribute.cs (6)
78ppinputscopes = Marshal.AllocCoTaskMem(Marshal.SizeOf(typeof(Int32)) * count); 88offset += Marshal.SizeOf(typeof(Int32)); 93ppinputscopes = Marshal.AllocCoTaskMem(Marshal.SizeOf(typeof(Int32)) * 1); 111ppbstrPhrases = Marshal.AllocCoTaskMem(Marshal.SizeOf(typeof(IntPtr))*count); 132offset += Marshal.SizeOf(typeof(IntPtr)); 138offset += Marshal.SizeOf(typeof(IntPtr));
src\Framework\System\Windows\Standard\MessageWindow.cs (1)
78cbSize = Marshal.SizeOf(typeof(WNDCLASSEX)),
src\Framework\System\Windows\Standard\NativeMethods.cs (8)
1993ncm.cbSize = Marshal.SizeOf(typeof(NONCLIENTMETRICS)); 2005ncm.cbSize = Marshal.SizeOf(typeof(NONCLIENTMETRICS)) - sizeof(int); 2052public int cbSize = Marshal.SizeOf(typeof(MONITORINFO)); 2288public int length = Marshal.SizeOf(typeof(WINDOWPLACEMENT)); 2487var filterstruct = new CHANGEFILTERSTRUCT { cbSize = (uint)Marshal.SizeOf(typeof(CHANGEFILTERSTRUCT)) }; 2535IntPtr currArg = Marshal.ReadIntPtr(argv, i * Marshal.SizeOf(typeof(IntPtr))); 3639var hc = new HIGHCONTRAST { cbSize = Marshal.SizeOf(typeof(HIGHCONTRAST)) }; 3898var dti = new DWM_TIMING_INFO { cbSize = Marshal.SizeOf(typeof(DWM_TIMING_INFO)) };
src\Framework\System\Windows\SystemParameters.cs (1)
197highContrast.cbSize = Marshal.SizeOf(typeof(NativeMethods.HIGHCONTRAST_I));
src\Framework\System\Windows\Window.cs (4)
4083wp.length = Marshal.SizeOf(typeof(NativeMethods.WINDOWPLACEMENT)); 6190wp.length = Marshal.SizeOf(typeof(NativeMethods.WINDOWPLACEMENT)); 6285monitorInfo.cbSize = Marshal.SizeOf(typeof(NativeMethods.MONITORINFOEX)); 7863monitorInfo.cbSize = Marshal.SizeOf(typeof(NativeMethods.MONITORINFOEX));
System (65)
net\System\Net\_AutoWebProxyScriptHelper.cs (2)
643int cbRequiredBytes = Marshal.SizeOf(typeof(UnsafeNclNativeMethods.OSSOCK.SOCKET_ADDRESS_LIST)) + 644 (SockAddrIn6List.Length -1)*Marshal.SizeOf(typeof(UnsafeNclNativeMethods.OSSOCK.SOCKET_ADDRESS));
net\System\Net\_DigestClient.cs (1)
1156private static int SizeOfInt = Marshal.SizeOf(typeof(int));
net\System\Net\_OSSOCK.cs (2)
19internal static readonly int Size = Marshal.SizeOf(typeof(IPMulticastRequest)); 95internal static readonly int Size = Marshal.SizeOf(typeof(IPv6MulticastRequest));
net\System\Net\_SSPIWrapper.cs (8)
332int alertTokenByteSize = Marshal.SizeOf(typeof(Interop.SChannel.SCHANNEL_ALERT_TOKEN)); 543nativeBlockSize = Marshal.SizeOf(typeof(NegotiationInfo)); 559nativeBlockSize = Marshal.SizeOf(typeof(IssuerListInfoEx)); 564nativeBlockSize = Marshal.SizeOf(typeof(SslConnectionInfo)); 739public static readonly int SizeOf = Marshal.SizeOf(typeof(StreamSizes)); 767public static readonly int SizeOf = Marshal.SizeOf(typeof(SecSizes)); 868internal static readonly int Size = Marshal.SizeOf(typeof(NegotiationInfo)); 930internal static readonly int Size = Marshal.SizeOf(typeof(SecurityPackageInfo));
net\System\Net\Cache\WinInetCache.cs (1)
151public static int MarshalSize = Marshal.SizeOf(typeof(EntryBuffer));
net\System\Net\DNS.cs (1)
415Marshal.SizeOf(typeof(int)),
net\System\Net\HttpListener.cs (4)
286Marshal.SizeOf(typeof(UnsafeNclNativeMethods.HttpApi.HTTP_REQUEST_CHANNEL_BIND_STATUS)); 544infoptr, (uint)Marshal.SizeOf(typeof(UnsafeNclNativeMethods.HttpApi.HTTP_TIMEOUT_LIMIT_INFO))); 929infoptr, (uint)Marshal.SizeOf(typeof(UnsafeNclNativeMethods.HttpApi.HTTP_BINDING_INFO))); 950infoptr, (uint)Marshal.SizeOf(typeof(UnsafeNclNativeMethods.HttpApi.HTTP_BINDING_INFO)));
net\System\Net\Internal.cs (4)
1206public static readonly uint StructSize = (uint) Marshal.SizeOf(typeof(ChainPolicyParameter)); 1232static readonly uint StructSize = (uint) Marshal.SizeOf(typeof(SSL_EXTRA_CERT_CHAIN_POLICY_PARA)); 1243public static readonly uint StructSize = (uint) Marshal.SizeOf(typeof(ChainPolicyStatus)); 1280public static readonly uint StructSize = (uint) Marshal.SizeOf(typeof(ChainParameters));
net\System\Net\Sockets\_ReceiveMessageOverlappedAsyncResult.cs (4)
33private static readonly int s_ControlDataSize = Marshal.SizeOf(typeof(UnsafeNclNativeMethods.OSSOCK.ControlData)); 34private static readonly int s_ControlDataIPv6Size = Marshal.SizeOf(typeof(UnsafeNclNativeMethods.OSSOCK.ControlDataIPv6)); 35private static readonly int s_WSABufferSize=Marshal.SizeOf(typeof(WSABuffer)); 36private static readonly int s_WSAMsgSize = Marshal.SizeOf(typeof(UnsafeNclNativeMethods.OSSOCK.WSAMsg));
net\System\Net\Sockets\Socket.cs (4)
114private readonly static int protocolInformationSize = Marshal.SizeOf(typeof(UnsafeNclNativeMethods.OSSOCK.WSAPROTOCOL_INFO)); 8581internal static readonly int s_ControlDataSize = Marshal.SizeOf(typeof(UnsafeNclNativeMethods.OSSOCK.ControlData)); 8582internal static readonly int s_ControlDataIPv6Size = Marshal.SizeOf(typeof(UnsafeNclNativeMethods.OSSOCK.ControlDataIPv6)); 8583internal static readonly int s_WSAMsgSize = Marshal.SizeOf(typeof(UnsafeNclNativeMethods.OSSOCK.WSAMsg));
net\System\Net\UnsafeNativeMethods.cs (2)
288uint dwSize = (uint) Marshal.SizeOf(typeof(RASCONN)); 1730+ i * Marshal.SizeOf(typeof(IntPtr))), true))
net\System\Net\WebSockets\WebSocketBuffer.cs (2)
34private static readonly int s_SizeOfUInt = Marshal.SizeOf(typeof(uint)); 35private static readonly int s_SizeOfBool = Marshal.SizeOf(typeof(bool));
security\system\security\cryptography\cryptoapi.cs (2)
3081CRYPT_OID_INFO pOIDInfo = new CRYPT_OID_INFO(Marshal.SizeOf(typeof(CRYPT_OID_INFO))); 3106CRYPT_OID_INFO pOIDInfo = new CRYPT_OID_INFO(Marshal.SizeOf(typeof(CRYPT_OID_INFO)));
security\system\security\cryptography\x509\x509certificate2.cs (4)
617ptr = CAPI.LocalAlloc(CAPI.LPTR, new IntPtr(Marshal.SizeOf(typeof(CAPI.CRYPTOAPI_BLOB)))); 841s_publicKeyOffset = Marshal.SizeOf(typeof(CAPIBase.BLOBHEADER)); 995IntPtr pAltInfoPtr = new IntPtr((long) altNameInfo.rgAltEntry + index * Marshal.SizeOf(typeof(CAPI.CERT_ALT_NAME_ENTRY))); 1401ptr = CAPI.LocalAlloc(CAPI.LPTR, new IntPtr(Marshal.SizeOf(typeof(CAPI.CRYPT_KEY_PROV_INFO))));
security\system\security\cryptography\x509\x509certificate2collection.cs (2)
912IntPtr pszOid = Marshal.ReadIntPtr(new IntPtr((long) rghOIDs.DangerousGetHandle() + index * Marshal.SizeOf(typeof(IntPtr)))); 956IntPtr pPolicyInfoPtr = new IntPtr((long) pInfo.rgPolicyInfo + index * Marshal.SizeOf(typeof(CAPI.CERT_POLICY_INFO)));
security\system\security\cryptography\x509\x509chain.cs (3)
225CAPI.CERT_CHAIN_POLICY_PARA PolicyPara = new CAPI.CERT_CHAIN_POLICY_PARA(Marshal.SizeOf(typeof(CAPI.CERT_CHAIN_POLICY_PARA))); 226CAPI.CERT_CHAIN_POLICY_STATUS PolicyStatus = new CAPI.CERT_CHAIN_POLICY_STATUS(Marshal.SizeOf(typeof(CAPI.CERT_CHAIN_POLICY_STATUS))); 277CAPI.CERT_CHAIN_CONTEXT pChain = new CAPI.CERT_CHAIN_CONTEXT(Marshal.SizeOf(typeof(CAPI.CERT_CHAIN_CONTEXT)));
security\system\security\cryptography\x509\x509chainelement.cs (3)
26CAPI.CERT_CHAIN_ELEMENT chainElement = new CAPI.CERT_CHAIN_ELEMENT(Marshal.SizeOf(typeof(CAPI.CERT_CHAIN_ELEMENT))); 75CAPI.CERT_SIMPLE_CHAIN simpleChain = new CAPI.CERT_SIMPLE_CHAIN(Marshal.SizeOf(typeof(CAPI.CERT_SIMPLE_CHAIN))); 82m_elements[index] = new X509ChainElement(Marshal.ReadIntPtr(new IntPtr((long) simpleChain.rgpElement + index * Marshal.SizeOf(typeof(IntPtr)))));
security\system\security\cryptography\x509\x509extension.cs (4)
328IntPtr pszOid = Marshal.ReadIntPtr(new IntPtr((long) pEnhKeyUsage.rgpszUsageIdentifier + index * Marshal.SizeOf(typeof(IntPtr)))); 484uint cbPublicKeyInfo = (uint) (Marshal.SizeOf(typeof(CAPI.CERT_PUBLIC_KEY_INFO2)) + 491IntPtr pszObjId = new IntPtr((long) pPublicKeyInfo + Marshal.SizeOf(typeof(CAPI.CERT_PUBLIC_KEY_INFO2))); 611X509Extension extension = new X509Extension(new IntPtr((long)rgExtensions + (index * Marshal.SizeOf(typeof(CAPI.CERT_EXTENSION)))));
security\system\security\cryptography\x509\x509utils.cs (4)
502int ptrSize = oidStrs.Count * Marshal.SizeOf(typeof(IntPtr)); 511Marshal.WriteIntPtr(new IntPtr((long) safeLocalAllocHandle.DangerousGetHandle() + index * Marshal.SizeOf(typeof(IntPtr))), pOid); 556CAPI.CERT_CHAIN_POLICY_PARA PolicyPara = new CAPI.CERT_CHAIN_POLICY_PARA(Marshal.SizeOf(typeof(CAPI.CERT_CHAIN_POLICY_PARA))); 557CAPI.CERT_CHAIN_POLICY_STATUS PolicyStatus = new CAPI.CERT_CHAIN_POLICY_STATUS(Marshal.SizeOf(typeof(CAPI.CERT_CHAIN_POLICY_STATUS)));
services\monitoring\system\diagnosticts\ProcessManager.cs (2)
358int entrySize = (int)Marshal.SizeOf(typeof(NativeMethods.WinProcessEntry)); 428int entrySize = Marshal.SizeOf(typeof(NativeMethods.WinModuleEntry));
services\monitoring\system\diagnosticts\SharedPerformanceCounter.cs (4)
37private static readonly int CategoryEntrySize = Marshal.SizeOf(typeof(CategoryEntry)); 38private static readonly int InstanceEntrySize = Marshal.SizeOf(typeof(InstanceEntry)); 39private static readonly int CounterEntrySize = Marshal.SizeOf(typeof(CounterEntry)); 40private static readonly int ProcessLifetimeEntrySize = Marshal.SizeOf(typeof(ProcessLifetimeEntry));
sys\system\Media\SoundPlayer.cs (2)
589if (dw < Marshal.SizeOf(typeof(NativeMethods.WAVEFORMATEX))) 590dw = Marshal.SizeOf(typeof(NativeMethods.WAVEFORMATEX));
System.Configuration (1)
System\Configuration\DPAPIProtectedConfigurationProvider.cs (1)
250cps.cbSize = Marshal.SizeOf(typeof(CRYPTPROTECT_PROMPTSTRUCT));
System.Core (19)
Microsoft\Win32\UnsafeNativeMethods.cs (1)
1480lpBuffer.dwLength = (uint)Marshal.SizeOf(typeof(MEMORYSTATUSEX));
System\Linq\Parallel\Scheduling\Scheduling.cs (1)
90chunkSize = Math.Max(1, DEFAULT_BYTES_PER_CHUNK / Marshal.SizeOf(typeof(T)));
System\Security\Cryptography\CapiNative.cs (10)
582int keyDataOffset = Marshal.SizeOf(typeof(BLOBHEADER)) + Marshal.SizeOf(typeof(int)); 585int keyLength = BitConverter.ToInt32(keyBlob, Marshal.SizeOf(typeof(BLOBHEADER))); 666Debug.Assert(Marshal.SizeOf(typeof(T)) <= bufferSize, "Buffer size does not match structure size"); 732int blobSize = Marshal.SizeOf(typeof(BLOBHEADER)) + Marshal.SizeOf(typeof(int)) + key.Length; 748Buffer.BlockCopy(key, 0, keyBlob, Marshal.SizeOf(typeof(BLOBHEADER)) + Marshal.SizeOf(typeof(int)), key.Length); 928CRYPT_OID_INFO pOIDInfo = new CRYPT_OID_INFO(Marshal.SizeOf(typeof(CRYPT_OID_INFO))); 958CRYPT_OID_INFO pOIDInfo = new CRYPT_OID_INFO(Marshal.SizeOf(typeof(CRYPT_OID_INFO)));
System\Security\Cryptography\NCryptNative.cs (1)
1717byte[] buffer = new byte[Marshal.SizeOf(typeof(T))];
System\Security\Cryptography\RsaCng.cs (3)
255int offset = Marshal.SizeOf(typeof(BCryptNative.BCRYPT_RSAKEY_BLOB)); 339int blobSize = Marshal.SizeOf(typeof(BCryptNative.BCRYPT_RSAKEY_BLOB)) + 369int offset = Marshal.SizeOf(typeof(BCryptNative.BCRYPT_RSAKEY_BLOB));
System\Security\Cryptography\X509Certificates\X509Native.cs (1)
156Debug.Assert(rawProperty.Length >= Marshal.SizeOf(typeof(T)), "Property did not return expected structure");
System\Security\Cryptography\Xml\ManifestSignedXml.cs (2)
486signer.cbSize = Marshal.SizeOf(typeof(X509Native.AXL_AUTHENTICODE_SIGNER_INFO)); 489timestamper.cbsize = Marshal.SizeOf(typeof(X509Native.AXL_AUTHENTICODE_TIMESTAMPER_INFO));
System.Data (13)
fx\src\data\System\Data\OleDb\OLEDB_Util.cs (9)
506static internal readonly int SizeOf_tagDBBINDING = Marshal.SizeOf(typeof(tagDBBINDING)); 507static internal readonly int SizeOf_tagDBCOLUMNINFO = Marshal.SizeOf(typeof(tagDBCOLUMNINFO)); 508static internal readonly int SizeOf_tagDBLITERALINFO = Marshal.SizeOf(typeof(tagDBLITERALINFO)); 509static internal readonly int SizeOf_tagDBPROPSET = Marshal.SizeOf(typeof(tagDBPROPSET)); 510static internal readonly int SizeOf_tagDBPROP = Marshal.SizeOf(typeof(tagDBPROP)); 511static internal readonly int SizeOf_tagDBPROPINFOSET = Marshal.SizeOf(typeof(tagDBPROPINFOSET)); 512static internal readonly int SizeOf_tagDBPROPINFO = Marshal.SizeOf(typeof(tagDBPROPINFO)); 513static internal readonly int SizeOf_tagDBPROPIDSET = Marshal.SizeOf(typeof(tagDBPROPIDSET)); 514static internal readonly int SizeOf_Guid = Marshal.SizeOf(typeof(Guid));
fx\src\data\System\Data\ProviderBase\DbBuffer.cs (1)
345ValidateCheck(offset, Marshal.SizeOf(structure.GetType()));
fx\src\data\System\Data\SqlClient\SqlConnection.cs (1)
2488Marshal.SizeOf(typeof(MEMMAP)),
fx\src\data\System\Data\SQLTypes\SQLFileStream.cs (2)
683oa.length = Marshal.SizeOf(typeof(UnsafeNativeMethods.OBJECT_ATTRIBUTES)); 964m_qos.length = (uint)Marshal.SizeOf(typeof(UnsafeNativeMethods.SECURITY_QUALITY_OF_SERVICE));
System.Drawing (55)
commonui\System\Drawing\Advanced\EncoderParameter.cs (12)
103parameterValue = Marshal.AllocHGlobal(Marshal.SizeOf(typeof(Byte))); 125parameterValue = Marshal.AllocHGlobal(Marshal.SizeOf(typeof(Byte))); 144parameterValue = Marshal.AllocHGlobal(Marshal.SizeOf(typeof(Int16))); 163parameterValue = Marshal.AllocHGlobal(Marshal.SizeOf(typeof(Int32))); 183int size = Marshal.SizeOf(typeof(Int32)); 205int size = Marshal.SizeOf(typeof(Int32)); 229int size = Marshal.SizeOf(typeof(Int32)); 312int size = Marshal.SizeOf(typeof(short)); 333int size = Marshal.SizeOf(typeof(Int32)); 363int size = Marshal.SizeOf(typeof(Int32)); 392int size = Marshal.SizeOf(typeof(Int32)); 425int size = Marshal.SizeOf(typeof(Int32));
commonui\System\Drawing\Advanced\EncoderParameters.cs (5)
78int size = Marshal.SizeOf(typeof(EncoderParameter)); 81IntPtr memory = Marshal.AllocHGlobal(checked(length * size + Marshal.SizeOf(typeof(IntPtr)))); 89long arrayOffset = checked((long) memory + Marshal.SizeOf(typeof(IntPtr))); 111int size = Marshal.SizeOf(typeof(EncoderParameter)); 112long arrayOffset = (long)memory + Marshal.SizeOf(typeof(IntPtr));
commonui\System\Drawing\Advanced\Gdiplus.cs (7)
3219int size = (int)Marshal.SizeOf(pt.GetType()); 3241int size = (int)Marshal.SizeOf(pt.GetType()); 3260int size = (int)Marshal.SizeOf(typeof(GPPOINTF)); 3281int size = (int)Marshal.SizeOf(typeof(GPPOINT)); 3302int size = (int)Marshal.SizeOf(typeof(GPRECTF)); 3323int size = (int)Marshal.SizeOf(typeof(GPRECT)); 4879return GetObject(hObject, System.Runtime.InteropServices.Marshal.SizeOf(typeof(SafeNativeMethods.LOGFONT)), lp);
commonui\System\Drawing\Advanced\GraphicsPath.cs (2)
302int ptSize = (int) Marshal.SizeOf(typeof(GPPOINTF)); 1722int size = (int) Marshal.SizeOf(typeof(GPPOINTF));
commonui\System\Drawing\Advanced\GraphicsPathIterator.cs (2)
270int size = (int)Marshal.SizeOf(typeof(GPPOINTF)); 312int size = (int)Marshal.SizeOf(typeof(GPPOINTF));
commonui\System\Drawing\Advanced\ImageCodecInfo.cs (1)
269IntPtr curcodec = (IntPtr)((long)memoryStart + (int)Marshal.SizeOf(typeof(ImageCodecInfoPrivate))*index);
commonui\System\Drawing\Advanced\Metafile.cs (3)
818IntPtr memory = Marshal.AllocHGlobal(Marshal.SizeOf(typeof(MetafileHeaderEmf))); 863IntPtr memory = Marshal.AllocHGlobal(Marshal.SizeOf(typeof(MetafileHeaderEmf))); 910IntPtr memory = Marshal.AllocHGlobal(Marshal.SizeOf(typeof(MetafileHeaderEmf)));
commonui\System\Drawing\Advanced\MetafileHeaderWmf.cs (1)
25public int size = Marshal.SizeOf(typeof(MetafileHeaderWmf));
commonui\System\Drawing\BufferedGraphicsContext.cs (1)
259pbmi.bmiHeader_biSize = Marshal.SizeOf(typeof(NativeMethods.BITMAPINFOHEADER));
commonui\System\Drawing\Icon.cs (6)
331SafeNativeMethods.GetObject(new HandleRef(null, info.hbmColor), Marshal.SizeOf(typeof(SafeNativeMethods.BITMAP)), bmp); 336SafeNativeMethods.GetObject(new HandleRef(null, info.hbmMask), Marshal.SizeOf(typeof(SafeNativeMethods.BITMAP)), bmp); 611int icondirSize = Marshal.SizeOf(typeof(SafeNativeMethods.ICONDIR)); 658int icondirEntrySize = Marshal.SizeOf(typeof(SafeNativeMethods.ICONDIRENTRY)); 979int newOffset = bestImageOffset + Marshal.SizeOf(typeof(SafeNativeMethods.BITMAPINFOHEADER)); 1005SafeNativeMethods.GetObject(new HandleRef(null, info.hbmColor), Marshal.SizeOf(typeof(SafeNativeMethods.BITMAP)), bmp);
commonui\System\Drawing\Image.cs (1)
1084int size = (int) Marshal.SizeOf(typeof(Guid));
commonui\System\Drawing\NativeMethods.cs (1)
102public int cbSize = Marshal.SizeOf(typeof(NONCLIENTMETRICS));
commonui\System\Drawing\Printing\PrinterSettings.cs (8)
226sizeofstruct = (IntPtr.Size * 2) + (Marshal.SizeOf(typeof(int)) * 1) + PADDING_IA64; 229sizeofstruct = (IntPtr.Size * 2) + (Marshal.SizeOf(typeof(int)) * 1); 235sizeofstruct = (IntPtr.Size * 2) + (Marshal.SizeOf(typeof(int)) * 3); 534isDirectPrintingSupported = SafeNativeMethods.ExtEscape(hdc, SafeNativeMethods.QUERYESCSUPPORT, Marshal.SizeOf(typeof(int)), ref nEscape, 0, out outData) > 0; 577bool querySupported = SafeNativeMethods.ExtEscape(hdc, SafeNativeMethods.QUERYESCSUPPORT, Marshal.SizeOf(typeof(int)), ref nEscape, 0, out outData) > 0; 579isDirectPrintingSupported = (SafeNativeMethods.ExtEscape(hdc, nEscape, pvImageLen, pvImage, Marshal.SizeOf(typeof(int)), out outData) > 0) 776data.lStructSize = Marshal.SizeOf(typeof(SafeNativeMethods.PRINTDLGX86)); 804data.lStructSize = Marshal.SizeOf(typeof(SafeNativeMethods.PRINTDLG));
commonui\System\Drawing\PropertyItemInternal.cs (1)
90 propdata = (IntPtr)((long)propdata + (int)Marshal.SizeOf(typeof(PropertyItemInternal)));
commonui\System\Drawing\Region.cs (1)
1001int rectsize = (int)Marshal.SizeOf(typeof(GPRECTF));
misc\GDI\NativeMethods.cs (1)
250private int cbSize = Marshal.SizeOf(typeof(DRAWTEXTPARAMS));
misc\GDI\UnsafeNativeMethods.cs (2)
264int retVal = IntGetObject(hBrush, System.Runtime.InteropServices.Marshal.SizeOf(typeof(IntNativeMethods.LOGBRUSH)), lb); 275int retVal = IntGetObject(hFont, System.Runtime.InteropServices.Marshal.SizeOf(typeof(IntNativeMethods.LOGFONT)), lp);
System.IdentityModel (21)
System\IdentityModel\Claims\WindowsClaimSet.cs (1)
316dwLength = (uint)Marshal.SizeOf(typeof(uint));
System\IdentityModel\CryptoApi.cs (1)
166static internal int Size = Marshal.SizeOf(typeof(CRYPTOAPI_BLOB));
System\IdentityModel\NativeMethods.cs (4)
86internal static readonly long SizeOf = (long)Marshal.SizeOf(typeof(SID_AND_ATTRIBUTES)); 105internal static readonly int SizeOf = Marshal.SizeOf(typeof(PLAINTEXTKEYBLOBHEADER)); 128internal static readonly uint Size = (uint)Marshal.SizeOf(typeof(TOKEN_PRIVILEGE)); 157internal static int Size = Marshal.SizeOf(typeof(KERB_CERTIFICATE_S4U_LOGON));
System\IdentityModel\Selectors\X509CertificateChain.cs (5)
113CAPI.CERT_CHAIN_POLICY_PARA PolicyPara = new CAPI.CERT_CHAIN_POLICY_PARA(Marshal.SizeOf(typeof(CAPI.CERT_CHAIN_POLICY_PARA))); 114CAPI.CERT_CHAIN_POLICY_STATUS PolicyStatus = new CAPI.CERT_CHAIN_POLICY_STATUS(Marshal.SizeOf(typeof(CAPI.CERT_CHAIN_POLICY_STATUS))); 154ChainPara.cbSize = (uint)Marshal.SizeOf(typeof(CAPI.CERT_CHAIN_PARA)); 335int ptrSize = oidStrs.Count * Marshal.SizeOf(typeof(IntPtr)); 345Marshal.WriteIntPtr(new IntPtr((long) safeAllocHandle.DangerousGetHandle() + index * Marshal.SizeOf(typeof(IntPtr))), pOid);
System\IdentityModel\SspiHelper.cs (1)
169Length = Marshal.SizeOf(typeof(AuthIdentityEx));
System\IdentityModel\SspiWrapper.cs (9)
87internal static readonly int Size = Marshal.SizeOf(typeof(SecurityPackageInfo)); 97internal static readonly int Size = Marshal.SizeOf(typeof(LifeSpan_Struct)); 108internal static readonly int Size = Marshal.SizeOf(typeof(NegotiationInfo)); 119internal static readonly int Size = Marshal.SizeOf(typeof(SecPkgContext_SessionKey)); 283public static readonly int SizeOf = Marshal.SizeOf(typeof(StreamSizes)); 554nativeBlockSize = Marshal.SizeOf(typeof(NegotiationInfo)); 563nativeBlockSize = Marshal.SizeOf(typeof(SslConnectionInfo)); 818credui_Info.cbSize = Marshal.SizeOf(typeof(CREDUI_INFO)); 913public static readonly int SizeOf = Marshal.SizeOf(typeof(SecSizes));
System.IdentityModel.Selectors (1)
infocard\client\System\IdentityModel\Selectors\InternalPolicyElement.cs (1)
51return Marshal.SizeOf(typeof(NativePolicyElement));
System.IO.Log (10)
System\IO\Log\LogExtentCollection.cs (1)
183infoSize = Marshal.SizeOf(typeof(CLFS_CONTAINER_INFORMATION_WRAPPER));
System\IO\Log\LogStore.cs (1)
450int size = Marshal.SizeOf(typeof(CLFS_INFORMATION));
System\IO\Log\UnsafeNativeMethods.cs (8)
242(uint)Marshal.SizeOf(typeof(CLFS_MGMT_POLICY_MAXIMUMSIZE)), 260(uint)Marshal.SizeOf(typeof(CLFS_MGMT_POLICY_MINIMUMSIZE)), 278(uint)Marshal.SizeOf(typeof(CLFS_MGMT_POLICY_GROWTHRATE)), 296(uint)Marshal.SizeOf(typeof(CLFS_MGMT_POLICY_LOGTAIL)), 314(uint)Marshal.SizeOf(typeof(CLFS_MGMT_POLICY_AUTOSHRINK)), 332(uint)Marshal.SizeOf(typeof(CLFS_MGMT_POLICY_AUTOGROW)), 352(uint)Marshal.SizeOf(typeof(CLFS_MGMT_POLICY_NEWCONTAINERPREFIX)), 369(uint)Marshal.SizeOf(typeof(CLFS_MGMT_POLICY_NEXTCONTAINERSUFFIX)),
System.Net (5)
net\PeerToPeer\Cloud.cs (1)
229pPEER_PNRP_CLOUD_INFO = (IntPtr)((long)pPEER_PNRP_CLOUD_INFO + Marshal.SizeOf(typeof(PEER_PNRP_CLOUD_INFO)));
net\PeerToPeer\PeerNameRegistration.cs (2)
390int cbRequriedBytes = numAddresses * Marshal.SizeOf(typeof(IntPtr)); 573int cbRequriedBytes = numAddresses * Marshal.SizeOf(typeof(IntPtr));
net\PeerToPeer\PeerNameResolver.cs (2)
338ppSOCKADDRs = (IntPtr)((long)ppSOCKADDRs + Marshal.SizeOf(typeof(IntPtr))); 706ppSOCKADDRs = (IntPtr)((long)ppSOCKADDRs + Marshal.SizeOf(typeof(IntPtr)));
System.Runtime.Caching (1)
System\Caching\UnsafeNativeMethods.cs (1)
56dwLength = Marshal.SizeOf(typeof(MEMORYSTATUSEX));
System.Security (64)
system\security\cryptography\cryptoapi.cs (2)
2553CRYPT_OID_INFO pOIDInfo = new CRYPT_OID_INFO(Marshal.SizeOf(typeof(CRYPT_OID_INFO))); 2575CRYPT_OID_INFO pOIDInfo = new CRYPT_OID_INFO(Marshal.SizeOf(typeof(CRYPT_OID_INFO)));
system\security\cryptography\cryptographicattribute.cs (1)
97IntPtr pCryptAttribute = new IntPtr((long)cryptAttributes.rgAttr + (index * Marshal.SizeOf(typeof(CAPI.CRYPT_ATTRIBUTE))));
system\security\cryptography\pkcs\envelopedpkcs7.cs (23)
284CAPI.CMSG_CTRL_DECRYPT_PARA ctrlDecryptPara = new CAPI.CMSG_CTRL_DECRYPT_PARA(Marshal.SizeOf(typeof(CAPI.CMSG_CTRL_DECRYPT_PARA))); 303CAPI.CMSG_CTRL_KEY_AGREE_DECRYPT_PARA keyAgreeDecryptPara = new CAPI.CMSG_CTRL_KEY_AGREE_DECRYPT_PARA(Marshal.SizeOf(typeof(CAPI.CMSG_CTRL_KEY_AGREE_DECRYPT_PARA))); 410CAPI.CMSG_ENVELOPED_ENCODE_INFO encodeInfo = new CAPI.CMSG_ENVELOPED_ENCODE_INFO(Marshal.SizeOf(typeof(CAPI.CMSG_ENVELOPED_ENCODE_INFO))); 411SafeLocalAllocHandle ceei = CAPI.LocalAlloc(CAPI.LPTR, new IntPtr(Marshal.SizeOf(typeof(CAPI.CMSG_ENVELOPED_ENCODE_INFO)))); 604CAPI.CMSG_RC2_AUX_INFO auxInfo = new CAPI.CMSG_RC2_AUX_INFO(Marshal.SizeOf(typeof(CAPI.CMSG_RC2_AUX_INFO))); 610SafeLocalAllocHandle pvAuxInfo = CAPI.LocalAlloc(CAPI.LPTR, new IntPtr(Marshal.SizeOf(typeof(CAPI.CMSG_RC2_AUX_INFO)))); 631int reiSize = recipients.Count * Marshal.SizeOf(typeof(CAPI.CMSG_RECIPIENT_ENCODE_INFO)); 638totalSize += Marshal.SizeOf(typeof(CAPI.CMSG_KEY_TRANS_RECIPIENT_ENCODE_INFO)); 642totalSize += Marshal.SizeOf(typeof(CAPI.CMSG_KEY_AGREE_RECIPIENT_ENCODE_INFO)); 667encryptParam.rgCertEncoded = CAPI.LocalAlloc(CAPI.LPTR, new IntPtr(certificates.Count * Marshal.SizeOf(typeof(CAPI.CRYPTOAPI_BLOB)))); 671(index * Marshal.SizeOf(typeof(CAPI.CRYPTOAPI_BLOB)))); 692(index * Marshal.SizeOf(typeof(CAPI.CMSG_RECIPIENT_ENCODE_INFO)))); 704Marshal.WriteInt32(pcbSize, Marshal.SizeOf(typeof(CAPI.CMSG_KEY_TRANS_RECIPIENT_ENCODE_INFO))); 812pKeyInfo = new IntPtr((long) pKeyInfo + Marshal.SizeOf(typeof(CAPI.CMSG_KEY_TRANS_RECIPIENT_ENCODE_INFO))); 819Marshal.WriteInt32(pcbSize, Marshal.SizeOf(typeof(CAPI.CMSG_KEY_AGREE_RECIPIENT_ENCODE_INFO))); 869encryptParam.rgEphemeralIdentifier[cKeyAgree] = CAPI.LocalAlloc(CAPI.LPTR, new IntPtr(Marshal.SizeOf(typeof(CAPI.CRYPT_ALGORITHM_IDENTIFIER)))); 898encryptParam.prgpEncryptedKey[cKeyAgree] = CAPI.LocalAlloc(CAPI.LPTR, new IntPtr(Marshal.SizeOf(typeof(IntPtr)))); 901encryptParam.rgpEncryptedKey[cKeyAgree] = CAPI.LocalAlloc(CAPI.LPTR, new IntPtr(Marshal.SizeOf(typeof(CAPI.CMSG_RECIPIENT_ENCRYPTED_KEY_ENCODE_INFO)))); 906Marshal.WriteInt32(pcbSize, Marshal.SizeOf(typeof(CAPI.CMSG_RECIPIENT_ENCRYPTED_KEY_ENCODE_INFO))); 991pKeyInfo = new IntPtr((long) pKeyInfo + Marshal.SizeOf(typeof(CAPI.CMSG_KEY_AGREE_RECIPIENT_ENCODE_INFO))); 1022uint totalSize = (uint)numRecipients * (uint)Marshal.SizeOf(typeof(IntPtr)); 1034pCertInfo = new IntPtr((long) pCertInfo + Marshal.SizeOf(typeof(IntPtr))); 1036Debug.Assert(index == totalSize / (uint)Marshal.SizeOf(typeof(IntPtr)));
system\security\cryptography\pkcs\pkcs9attribute.cs (1)
127SafeLocalAllocHandle pbSigningTime = CAPI.LocalAlloc(CAPI.LPTR, new IntPtr(Marshal.SizeOf(typeof(Int64))));
system\security\cryptography\pkcs\pkcsmisc.cs (4)
91CAPI.CERT_RDN certRdn = (CAPI.CERT_RDN) Marshal.PtrToStructure(new IntPtr((long) certNameInfo.rgRDN + (long) (i * Marshal.SizeOf(typeof(CAPI.CERT_RDN)))), typeof(CAPI.CERT_RDN)); 95CAPI.CERT_RDN_ATTR certRdnAttr = (CAPI.CERT_RDN_ATTR)Marshal.PtrToStructure(new IntPtr((long)certRdn.rgRDNAttr + (long)(j * Marshal.SizeOf(typeof(CAPI.CERT_RDN_ATTR)))), typeof(CAPI.CERT_RDN_ATTR)); 321SafeLocalAllocHandle pKeyInfo = CAPI.LocalAlloc(CAPI.LPTR, new IntPtr(Marshal.SizeOf(typeof(CAPI.CERT_PUBLIC_KEY_INFO)))); 381if (cbParameters > Marshal.SizeOf(typeof(CAPI.CRYPTOAPI_BLOB))) {
system\security\cryptography\pkcs\pkcsutils.cs (13)
76uint cbPeex = (uint) Marshal.SizeOf(typeof(CAPI.PROV_ENUMALGS_EX)); 77SafeLocalAllocHandle pPeex = CAPI.LocalAlloc(CAPI.LPTR, new IntPtr(Marshal.SizeOf(typeof(CAPI.PROV_ENUMALGS_EX)))); 96uint cbCount = (uint) Marshal.SizeOf(typeof(uint)); 110uint cbMsgType = (uint) Marshal.SizeOf(typeof(uint)); 215uint cbCount = (uint) Marshal.SizeOf(typeof(uint)); 281uint cbCount = (uint) Marshal.SizeOf(typeof(uint)); 573IntPtr pAttributeBlob = new IntPtr((long)cryptAttribute.rgValue + (index * Marshal.SizeOf(typeof(CAPI.CRYPTOAPI_BLOB)))); 626uint cryptAttrSize = AlignedLength((uint) Marshal.SizeOf(typeof(I_CRYPT_ATTRIBUTE))); 627uint cryptBlobSize = AlignedLength((uint) Marshal.SizeOf(typeof(CAPI.CRYPTOAPI_BLOB))); 714CAPI.CMSG_SIGNER_ENCODE_INFO cmsSignerEncodeInfo = new CAPI.CMSG_SIGNER_ENCODE_INFO(Marshal.SizeOf(typeof(CAPI.CMSG_SIGNER_ENCODE_INFO))); 959certBlob = CAPI.LocalAlloc(CAPI.LMEM_FIXED, new IntPtr(certificates.Count * Marshal.SizeOf(typeof(CAPI.CRYPTOAPI_BLOB)))); 1073new IntPtr(Marshal.SizeOf(typeof(CAPI.CRYPT_KEY_PROV_INFO)))); 1081new IntPtr( Marshal.SizeOf(typeof(CAPI.CRYPT_ALGORITHM_IDENTIFIER))));
system\security\cryptography\pkcs\recipientinfo.cs (3)
222IntPtr pEncryptedKeyInfo = Marshal.ReadIntPtr(new IntPtr((long) certIdRecipient.rgpRecipientEncryptedKeys + (long) (subIndex * Marshal.SizeOf(typeof(IntPtr))))); 231IntPtr pEncryptedKeyInfo = Marshal.ReadIntPtr(new IntPtr((long) publicKeyRecipient.rgpRecipientEncryptedKeys + (long) (subIndex * Marshal.SizeOf(typeof(IntPtr))))); 392uint cbCount = (uint) Marshal.SizeOf(typeof(uint));
system\security\cryptography\pkcs\signedpkcs7.cs (4)
222uint cbCount = (uint) Marshal.SizeOf(typeof(uint)); 297CAPI.CMSG_SIGNED_ENCODE_INFO signedEncodeInfo = new CAPI.CMSG_SIGNED_ENCODE_INFO(Marshal.SizeOf(typeof(CAPI.CMSG_SIGNED_ENCODE_INFO))); 303SafeLocalAllocHandle pSignerEncodeInfo = CAPI.LocalAlloc(CAPI.LMEM_FIXED, new IntPtr(Marshal.SizeOf(typeof(CAPI.CMSG_SIGNER_ENCODE_INFO)))); 376SafeLocalAllocHandle pSignerEncodeInfo = CAPI.LocalAlloc(CAPI.LPTR, new IntPtr(Marshal.SizeOf(typeof(CAPI.CMSG_SIGNER_ENCODE_INFO))));
system\security\cryptography\pkcs\signerinfo.cs (9)
242int cvseSize = Marshal.SizeOf(typeof(CAPI.CMSG_CTRL_VERIFY_SIGNATURE_EX_PARA)); 303SafeLocalAllocHandle pSignerEncodeInfo = CAPI.LocalAlloc(CAPI.LPTR, new IntPtr(Marshal.SizeOf(typeof(CAPI.CMSG_SIGNER_ENCODE_INFO)))); 572CAPI.CMSG_CTRL_DEL_SIGNER_UNAUTH_ATTR_PARA delPara = new CAPI.CMSG_CTRL_DEL_SIGNER_UNAUTH_ATTR_PARA(Marshal.SizeOf(typeof(CAPI.CMSG_CTRL_DEL_SIGNER_UNAUTH_ATTR_PARA))); 588uint cbCounterSignatureValue = (uint) ((attr.cValue - 1) * Marshal.SizeOf(typeof(CAPI.CRYPTOAPI_BLOB))); 608SafeLocalAllocHandle pNewAttr = CAPI.LocalAlloc(CAPI.LPTR, new IntPtr(Marshal.SizeOf(typeof(CAPI.CRYPT_ATTRIBUTE)))); 624CAPI.CMSG_CTRL_ADD_SIGNER_UNAUTH_ATTR_PARA addPara = new CAPI.CMSG_CTRL_ADD_SIGNER_UNAUTH_ATTR_PARA(Marshal.SizeOf(typeof(CAPI.CMSG_CTRL_ADD_SIGNER_UNAUTH_ATTR_PARA))); 646CAPI.CMSG_CTRL_ADD_SIGNER_UNAUTH_ATTR_PARA addPara = new CAPI.CMSG_CTRL_ADD_SIGNER_UNAUTH_ATTR_PARA(Marshal.SizeOf(typeof(CAPI.CMSG_CTRL_ADD_SIGNER_UNAUTH_ATTR_PARA))); 664pAttr = new IntPtr((long) pAttr + (long) Marshal.SizeOf(typeof(CAPI.CRYPT_ATTRIBUTE))); 728uint cbCount = (uint) Marshal.SizeOf(typeof(uint));
system\security\cryptography\x509\x509utils.cs (4)
259int ptrSize = oids.Count * Marshal.SizeOf(typeof(IntPtr)); 267Marshal.WriteIntPtr(new IntPtr((long) safeLocalAllocHandle.DangerousGetHandle() + index * Marshal.SizeOf(typeof(IntPtr))), pOid); 377CAPI.CERT_CHAIN_POLICY_PARA PolicyPara = new CAPI.CERT_CHAIN_POLICY_PARA(Marshal.SizeOf(typeof(CAPI.CERT_CHAIN_POLICY_PARA))); 378CAPI.CERT_CHAIN_POLICY_STATUS PolicyStatus = new CAPI.CERT_CHAIN_POLICY_STATUS(Marshal.SizeOf(typeof(CAPI.CERT_CHAIN_POLICY_STATUS)));
System.ServiceModel (35)
System\ServiceModel\Channels\PeerUnsafeNativeMethods.cs (4)
277if (!(socketAddressList.Addresses[i].SockAddrLength == Marshal.SizeOf(typeof(sockaddr_in6)))) 303int size = Marshal.SizeOf(typeof(sockaddr_in6)); 357int size = Marshal.SizeOf(typeof(T)); 368int guidSize = Marshal.SizeOf(typeof(Guid));
System\ServiceModel\Channels\PnrpPeerResolver.cs (23)
1255socketAddress.iSockaddrLength = Marshal.SizeOf(typeof(sockaddr_in)); 1265socketAddress.iSockaddrLength = Marshal.SizeOf(typeof(sockaddr_in6)); 1353result.dwSize = Marshal.SizeOf(typeof(WsaQuerySetNative)); 1385int blobSize = Marshal.SizeOf(typeof(PnrpInfoNative)); 1386blob.pBlobData = CriticalAllocHandle.FromSize(blobSize + Marshal.SizeOf(typeof(BlobNative))); 1391nativeBlob.pBlobData = (IntPtr)(((IntPtr)blob.pBlobData).ToInt64() + Marshal.SizeOf(typeof(BlobNative))); 1402int blobSize = Marshal.SizeOf(input.GetType()); 1403blob.pBlobData = CriticalAllocHandle.FromSize(blobSize + Marshal.SizeOf(typeof(BlobNative))); 1408nativeBlob.pBlobData = (IntPtr)(((IntPtr)blob.pBlobData).ToInt64() + Marshal.SizeOf(typeof(BlobNative))); 1411cloudInfo.dwSize = Marshal.SizeOf(typeof(PnrpCloudInfo)); 1444int structSize = Marshal.SizeOf(typeof(WsaQuerySetNative)); 1446structSize += safeQuerySet.addressList.Length * Marshal.SizeOf(typeof(CsAddrInfoNative)); 1535Int64 sockAddressStart = target.ToInt64() + Marshal.SizeOf(typeof(WsaQuerySetNative)); 1548int sizeOfCsAddrInfo = Marshal.SizeOf(typeof(CsAddrInfoNative)); 1732Marshal.SizeOf(typeof(WsaNamespaceInfo))); 1776cloudInfo.dwSize = Marshal.SizeOf(typeof(PnrpCloudInfo)); 1800int size = Marshal.SizeOf(typeof(WsaQuerySetSafe)) + 200; 1929identityInfo.dwSize = Marshal.SizeOf(typeof(PnrpInfo)); 2010resolveQueryInfo.dwSize = Marshal.SizeOf(typeof(PnrpInfo)); 2057int size = Marshal.SizeOf(typeof(WsaQuerySetSafe)) + 400; 2152int sizeOfCsAddrInfo = Marshal.SizeOf(typeof(CsAddrInfoNative)); 2229if (socketAddress.iSockaddrLength == Marshal.SizeOf(typeof(sockaddr_in))) 2240if (socketAddress.iSockaddrLength == Marshal.SizeOf(typeof(sockaddr_in6)))
System\ServiceModel\Channels\UnsafeNativeMethods.cs (1)
474internal int nLength = Marshal.SizeOf(typeof(SECURITY_ATTRIBUTES));
System\ServiceModel\Channels\WebSocketHelper.cs (2)
44static readonly int PropertyBufferSize = ((2 * Marshal.SizeOf(typeof(uint))) + Marshal.SizeOf(typeof(bool))) + IntPtr.Size;
System\ServiceModel\ComIntegration\DispatchProxy.cs (5)
364uint displacement = (uint)(index * Marshal.SizeOf(typeof(TagVariant))); 400uint displacement = (uint)(index * Marshal.SizeOf(typeof(TagVariant))); 418if (sizeofElement != Marshal.SizeOf(typeof(TagVariant))) 507uint displacement = (uint)(index * Marshal.SizeOf(typeof(TagVariant))); 535uint displacement = (uint)(index * Marshal.SizeOf(typeof(TagVariant)));
System.ServiceModel.Activation (1)
System\ServiceModel\Activation\ServiceMemoryGates.cs (1)
68memoryStatus.dwLength = (uint)Marshal.SizeOf(typeof(UnsafeNativeMethods.MEMORYSTATUSEX));
System.Web (1)
UnsafeNativeMethods.cs (1)
298dwLength = Marshal.SizeOf(typeof(UnsafeNativeMethods.MEMORYSTATUSEX));
System.Web.Mobile (1)
UI\MobileControls\Design\Util\MSHTMLHost.cs (1)
201lpFrameInfo.cb = System.Runtime.InteropServices.Marshal.SizeOf(typeof(NativeMethods.tagOIFI));
System.Windows.Forms (127)
misc\GDI\NativeMethods.cs (1)
250private int cbSize = Marshal.SizeOf(typeof(DRAWTEXTPARAMS));
misc\GDI\UnsafeNativeMethods.cs (2)
264int retVal = IntGetObject(hBrush, System.Runtime.InteropServices.Marshal.SizeOf(typeof(IntNativeMethods.LOGBRUSH)), lb); 275int retVal = IntGetObject(hFont, System.Runtime.InteropServices.Marshal.SizeOf(typeof(IntNativeMethods.LOGFONT)), lp);
parent\parent\parent\public\Internal\NDP\Inc\IsolationInterop.cs (18)
1234Size = (UInt32)Marshal.SizeOf(typeof(StoreOperationStageComponent)); 1275Size = (UInt32)Marshal.SizeOf(typeof(StoreOperationStageComponentFile)); 1307Size = (UInt32)Marshal.SizeOf(typeof(StoreApplicationReference)); 1359Size = (UInt32)Marshal.SizeOf(typeof(StoreOperationPinDeployment)); 1405Size = (UInt32)Marshal.SizeOf(typeof(StoreOperationUnpinDeployment)); 1449Size = (UInt32)Marshal.SizeOf(typeof(StoreOperationInstallDeployment)); 1493Size = (UInt32)Marshal.SizeOf(typeof(StoreOperationUninstallDeployment)); 1560Size = (UInt32)Marshal.SizeOf(typeof(StoreOperationSetDeploymentMetadata)); 1619ulong iSlotSize = (ulong)Marshal.SizeOf(typeof(StoreOperationMetadataProperty)); 1638int iSlotSize = Marshal.SizeOf(typeof(StoreOperationMetadataProperty)); 1670Size = (UInt32)Marshal.SizeOf(typeof(StoreOperationSetCanonicalizationContext)); 1703Size = (UInt32)Marshal.SizeOf(typeof(StoreOperationScavenge)); 2825Parameters.Size = (UInt32)Marshal.SizeOf(typeof(CreateActContextParameters)); 2833SourceInfo.Size = (UInt32)Marshal.SizeOf(typeof(CreateActContextParametersSource)); 2838DefAppIdSource.Size = (UInt32)Marshal.SizeOf(typeof(CreateActContextParametersSourceDefinitionAppid)); 2875Parameters.Size = (UInt32)Marshal.SizeOf(typeof(CreateActContextParameters)); 2883SourceInfo.Size = (UInt32)Marshal.SizeOf(typeof(CreateActContextParametersSource)); 2888RefAppIdSource.Size = (UInt32)Marshal.SizeOf(typeof(CreateActContextParametersSourceReferenceAppid));
parent\parent\parent\public\Internal\NDP\Inc\mansign.cs (2)
524signerInfo.cbSize = (uint) Marshal.SizeOf(typeof(Win32.AXL_SIGNER_INFO)); 526timestamperInfo.cbSize = (uint) Marshal.SizeOf(typeof(Win32.AXL_TIMESTAMPER_INFO));
parent\parent\parent\public\Internal\NDP\Inc\mansign2.cs (2)
270signerInfo.cbSize = (uint)Marshal.SizeOf(typeof(Win32.AXL_SIGNER_INFO)); 272timestamperInfo.cbSize = (uint)Marshal.SizeOf(typeof(Win32.AXL_TIMESTAMPER_INFO));
winforms\Managed\System\WinForms\Application.cs (1)
2545info.cbSize = Marshal.SizeOf(typeof(NativeMethods.MSOCRINFOSTRUCT));
winforms\Managed\System\WinForms\AxHost.cs (1)
4273lpFrameInfo.cb = Marshal.SizeOf(typeof(NativeMethods.tagOIFI));
winforms\Managed\System\WinForms\ComponentModel\COM2Interop\COM2Properties.cs (1)
389countOffset = Marshal.SizeOf(typeof(Guid)) + IntPtr.Size + 24;
winforms\Managed\System\WinForms\Control.cs (5)
8831si.cbSize = Marshal.SizeOf(typeof(NativeMethods.SCROLLINFO)); 10612int sizeOfIntPtr = Marshal.SizeOf(typeof(IntPtr)); 15277pCI.cb = Marshal.SizeOf(typeof(NativeMethods.tagCONTROLINFO)); 19318lpbmi.bmiHeader_biSize = Marshal.SizeOf(typeof(NativeMethods.BITMAPINFOHEADER)); 19335byte[] aj = new byte[Marshal.SizeOf(typeof(NativeMethods.PALETTEENTRY)) * 256];
winforms\Managed\System\WinForms\Cursor.cs (2)
597UnsafeNativeMethods.GetObject(new HandleRef(null, info.hbmColor), Marshal.SizeOf(typeof(NativeMethods.BITMAP)), bmp); 602UnsafeNativeMethods.GetObject(new HandleRef(null, info.hbmMask), Marshal.SizeOf(typeof(NativeMethods.BITMAP)), bmp);
winforms\Managed\System\WinForms\FileDialog.cs (1)
1007ofn.lStructSize = Marshal.SizeOf(typeof(NativeMethods.OPENFILENAME_I));
winforms\Managed\System\WinForms\FontDialog.cs (2)
577logFontPtr = Marshal.AllocCoTaskMem(Marshal.SizeOf(typeof(NativeMethods.LOGFONT))); 580cf.lStructSize = Marshal.SizeOf(typeof(NativeMethods.CHOOSEFONT));
winforms\Managed\System\WinForms\Form.cs (3)
5513wp.length = Marshal.SizeOf(typeof(NativeMethods.WINDOWPLACEMENT)); 6847wp.length = Marshal.SizeOf(typeof(NativeMethods.WINDOWPLACEMENT)); 7844toolInfo.cbSize = Marshal.SizeOf(typeof(NativeMethods.TOOLINFO_T));
winforms\Managed\System\WinForms\ListView.cs (3)
3914hGlobalColumns = Marshal.AllocHGlobal(lvItem.cColumns * Marshal.SizeOf(typeof(int))); 4573prc = Marshal.AllocHGlobal(Marshal.SizeOf(typeof(NativeMethods.RECT))); 4579pwpos = Marshal.AllocHGlobal(Marshal.SizeOf(typeof(NativeMethods.WINDOWPOS)));
winforms\Managed\System\WinForms\MDIClient.cs (1)
251wp.length = Marshal.SizeOf(typeof(NativeMethods.WINDOWPLACEMENT));
winforms\Managed\System\WinForms\MenuItem.cs (4)
451info.cbSize = Marshal.SizeOf(typeof(NativeMethods.MENUITEMINFO_T)); 476info.cbSize = Marshal.SizeOf(typeof(NativeMethods.MENUITEMINFO_T)); 1049msaaMenuInfoPtr = Marshal.AllocHGlobal(Marshal.SizeOf(typeof(MsaaMenuInfoWithId))); 1431info.cbSize = Marshal.SizeOf(typeof(NativeMethods.MENUITEMINFO_T));
winforms\Managed\System\WinForms\MonthCalendar.cs (1)
1574mchi.cbSize = Marshal.SizeOf(typeof(NativeMethods.MCHITTESTINFO));
winforms\Managed\System\WinForms\NativeMethods.cs (37)
2691public int cbSizeOfStruct = Marshal.SizeOf(typeof(FONTDESC)); 2708internal int cbSizeOfStruct = Marshal.SizeOf(typeof(PICTDESCbmp)); 2725internal int cbSizeOfStruct = Marshal.SizeOf(typeof(PICTDESCicon)); 2741internal int cbSizeOfStruct = Marshal.SizeOf(typeof(PICTDESCemf)); 2783internal int cbStruct=Marshal.SizeOf(typeof(HH_AKLINK)); 2795internal int cbStruct=Marshal.SizeOf(typeof(HH_POPUP)); 2811internal int cbStruct = Marshal.SizeOf(typeof(HH_FTS_QUERY)); 2825internal int cbSize = Marshal.SizeOf(typeof(MONITORINFOEX)); 2835internal int cbSize = Marshal.SizeOf(typeof(MONITORINFO)); 3000public int cbSize = Marshal.SizeOf(typeof(IMAGELISTDRAWPARAMS)); 3034public int cbSize = Marshal.SizeOf(typeof(TRACKMOUSEEVENT)); 3137public int cbSize = Marshal.SizeOf(typeof(NONCLIENTMETRICS)); 3208public int cbSize = Marshal.SizeOf(typeof(SCROLLINFO)); 3230public int cbSize = Marshal.SizeOf(typeof(TPMPARAMS)); 3588public int cbSizeofstruct = Marshal.SizeOf(typeof(tagFONTDESC)); 3614public int lStructSize = Marshal.SizeOf(typeof(CHOOSECOLOR)); //ndirect.DllLib.sizeOf(this); 3758public int cbSize = Marshal.SizeOf(typeof(NOTIFYICONDATA)); 3779public int cbSize = Marshal.SizeOf(typeof(MENUITEMINFO_T)); 3798public int cbSize = Marshal.SizeOf(typeof(MENUITEMINFO_T_RW)); 3833public int lStructSize = Marshal.SizeOf(typeof(OPENFILENAME_I)); //ndirect.DllLib.sizeOf(this); 3860public int lStructSize = Marshal.SizeOf(typeof(CHOOSEFONT)); // ndirect.DllLib.sizeOf(this); 4075public int cbSize = Marshal.SizeOf(typeof(MSOCRINFOSTRUCT)); // size of MSOCRINFO structure in bytes. 4235public int cb = Marshal.SizeOf(typeof(tagCONTROLINFO)); 4564public int cbLicInfo = Marshal.SizeOf(typeof(tagLICINFO)); 4761public int cbSize = Marshal.SizeOf(typeof(TOOLINFO_T)); 4775public int cbSize = Marshal.SizeOf(typeof(TOOLINFO_TOOLTIP)); 5048public int cbSize = Marshal.SizeOf(typeof(HELPINFO)); 5244public int cbSize = Marshal.SizeOf(typeof(MCHITTESTINFO)); 5435public uint cbSize = (uint)Marshal.SizeOf(typeof(LVGROUP)); 5453public uint cbSize = (uint)Marshal.SizeOf(typeof(LVINSERTMARK)); 5461public uint cbSize = (uint)Marshal.SizeOf(typeof(LVTILEVIEWINFO)); 5607public int cbSize = Marshal.SizeOf(typeof(CHARFORMATW)); 5622public int cbSize = Marshal.SizeOf(typeof(CHARFORMATA)); 5637public int cbSize = Marshal.SizeOf(typeof(CHARFORMAT2A)); 5683public int cbSize = Marshal.SizeOf(typeof(PARAFORMAT)); 5743public int cbSizeOfStruct = Marshal.SizeOf(typeof(OCPFIPARAMS)); 5760public int cbSize = Marshal.SizeOf(typeof(DOCHOSTUIINFO));
winforms\Managed\System\WinForms\Printing\PrintDialog.cs (1)
333data.nMaxPageRanges * Marshal.SizeOf(typeof(NativeMethods.PRINTPAGERANGE)));
winforms\Managed\System\WinForms\Printing\PrintPreviewControl.cs (1)
366si.cbSize = Marshal.SizeOf(typeof(NativeMethods.SCROLLINFO));
winforms\Managed\System\WinForms\PropertyGridInternal\GridToolTip.cs (1)
129toolInfos[index].cbSize = Marshal.SizeOf(typeof(NativeMethods.TOOLINFO_T));
winforms\Managed\System\WinForms\ScrollBar.cs (1)
794si.cbSize = Marshal.SizeOf(typeof(NativeMethods.SCROLLINFO));
winforms\Managed\System\WinForms\ScrollProperties.cs (1)
314si.cbSize = Marshal.SizeOf(typeof(NativeMethods.SCROLLINFO));
winforms\Managed\System\WinForms\SendKeys.cs (1)
594int INPUTSize = Marshal.SizeOf(typeof(NativeMethods.INPUT));
winforms\Managed\System\WinForms\StatusBar.cs (2)
1855ti.cbSize = Marshal.SizeOf(typeof(NativeMethods.TOOLINFO_T)); 1877ti.cbSize = Marshal.SizeOf(typeof(NativeMethods.TOOLINFO_T));
winforms\Managed\System\WinForms\SystemInformation.cs (1)
1794dm.dmSize = (short) Marshal.SizeOf(typeof(NativeMethods.DEVMODE));
winforms\Managed\System\WinForms\ToolBar.cs (3)
1141tbbi.cbSize = Marshal.SizeOf(typeof(NativeMethods.TBBUTTONINFO)); 1290SendMessage(NativeMethods.TB_BUTTONSTRUCTSIZE, Marshal.SizeOf(typeof(NativeMethods.TBBUTTON)), 0); 1375int cb = Marshal.SizeOf(typeof(NativeMethods.TBBUTTON));
winforms\Managed\System\WinForms\ToolBarButton.cs (2)
556button.cbSize = Marshal.SizeOf(typeof(NativeMethods.TBBUTTONINFO)); 630button.cbSize = Marshal.SizeOf(typeof(NativeMethods.TBBUTTONINFO));
winforms\Managed\System\WinForms\ToolStripDropDownMenu.cs (3)
290info.cbSize = Marshal.SizeOf(typeof(NativeMethods.MENUITEMINFO_T_RW)); 302 info.cbSize = Marshal.SizeOf(typeof(NativeMethods.MENUITEMINFO_T_RW)); 313 info.cbSize = Marshal.SizeOf(typeof(NativeMethods.MENUITEMINFO_T_RW));
winforms\Managed\System\WinForms\ToolStripMenuItem.cs (1)
708info.cbSize = Marshal.SizeOf(typeof(NativeMethods.MENUITEMINFO_T_RW));
winforms\Managed\System\WinForms\ToolTip.cs (10)
1145ti.cbSize = Marshal.SizeOf(typeof(NativeMethods.TOOLINFO_TOOLTIP)); 1163ti.cbSize = Marshal.SizeOf(typeof(NativeMethods.TOOLINFO_TOOLTIP)); 1202ti.cbSize = Marshal.SizeOf(typeof(NativeMethods.TOOLINFO_TOOLTIP)); 2015ti.cbSize = Marshal.SizeOf(typeof(NativeMethods.TOOLINFO_TOOLTIP)); 2188ti.cbSize = Marshal.SizeOf(typeof(NativeMethods.TOOLINFO_TOOLTIP)); 2232ti.cbSize = Marshal.SizeOf(typeof(NativeMethods.TOOLINFO_TOOLTIP)); 2288ti.cbSize = Marshal.SizeOf(typeof(NativeMethods.TOOLINFO_TOOLTIP)); 2399ti.cbSize = Marshal.SizeOf(typeof(NativeMethods.TOOLINFO_TOOLTIP)); 2493ti.cbSize = Marshal.SizeOf(typeof(NativeMethods.TOOLINFO_TOOLTIP)); 2609ti.cbSize = Marshal.SizeOf(typeof(NativeMethods.TOOLINFO_TOOLTIP));
winforms\Managed\System\WinForms\TreeView.cs (1)
2730si.cbSize = Marshal.SizeOf(typeof(NativeMethods.SCROLLINFO));
winforms\Managed\System\WinForms\UnsafeNativeMethods.cs (9)
673return GetObject(hObject, Marshal.SizeOf(typeof(NativeMethods.LOGPEN)), lp); 680return GetObject(hObject, Marshal.SizeOf(typeof(NativeMethods.LOGBRUSH)), lb); 687return GetObject(hObject, Marshal.SizeOf(typeof(NativeMethods.LOGFONT)), lp); 1680Debug.Assert(Marshal.SizeOf(typeof(NativeMethods.RECT)) == pRgnDataHeader->nRgnSize || pRgnDataHeader->nRgnSize == 0); 1686regionRects[i] = *((NativeMethods.RECT*)((byte*)pBytes + rectStart + (Marshal.SizeOf(typeof(NativeMethods.RECT)) * i))); 7333public int cbSize = Marshal.SizeOf(typeof(tagQACONTAINER)); 7385public int cbSize = Marshal.SizeOf(typeof(tagQACONTROL)); 7536return Marshal.SizeOf(t); 8205enableThemingActivationContext.cbSize = Marshal.SizeOf(typeof(ACTCTX));
winforms\Managed\System\WinForms\WebBrowserSiteBase.cs (1)
313lpFrameInfo.cb = Marshal.SizeOf(typeof(NativeMethods.tagOIFI));
winforms\Managed\System\WinForms\WinFormsUtils.cs (1)
362Debug.Assert(Marshal.SizeOf(typeof(int)) == 4, "The impossible has happened.");
UIAutomationClient (4)
MS\Internal\Automation\HwndProxyElementProvider.cs (3)
328wp.length = Marshal.SizeOf(typeof(UnsafeNativeMethods.WINDOWPLACEMENT)); 719wp.length = Marshal.SizeOf(typeof(UnsafeNativeMethods.WINDOWPLACEMENT)); 832wp.length = Marshal.SizeOf(typeof(UnsafeNativeMethods.WINDOWPLACEMENT));
System\Windows\Automation\Condition.cs (1)
74int intPtrSize = Marshal.SizeOf(typeof(IntPtr));
UIAutomationClientsideProviders (146)
MS\Internal\AutomationProxies\CommonXSendMessage.cs (68)
417return GetTextWithinStructure(hwnd, NativeMethods.LVM_GETITEMW, IntPtr.Zero, new IntPtr(&item), Marshal.SizeOf(item.GetType()), new IntPtr(&item.pszText), item.cchTextMax); 424new IntPtr(&item32), Marshal.SizeOf(item32.GetType()), new IntPtr(&item32.pszText), 432return GetTextWithinStructure(hwnd, NativeMethods.LVM_GETITEMW, IntPtr.Zero, new IntPtr(&item64), Marshal.SizeOf(item64.GetType()), new IntPtr(&item64.pszText), item64.cchTextMax); 446return XSend(hwnd, NativeMethods.LVM_SETITEMSTATE, new IntPtr(index), new IntPtr(&item), Marshal.SizeOf(item.GetType())); 452return XSend(hwnd, NativeMethods.LVM_SETITEMSTATE, new IntPtr(index), new IntPtr(&item32), Marshal.SizeOf(item32.GetType())); 458return XSend(hwnd, NativeMethods.LVM_SETITEMSTATE, new IntPtr(index), new IntPtr(&item64), Marshal.SizeOf(item64.GetType())); 474return XSend(hwnd, NativeMethods.LVM_GETITEMW, IntPtr.Zero, new IntPtr(pItem), Marshal.SizeOf(item.GetType()), XSendMessage.ErrorValue.NoCheck); 481bool result = XSend(hwnd, NativeMethods.LVM_GETITEMW, IntPtr.Zero, new IntPtr(&item32), Marshal.SizeOf(item32.GetType()), XSendMessage.ErrorValue.NoCheck); 493bool result = XSend(hwnd, NativeMethods.LVM_GETITEMW, IntPtr.Zero, new IntPtr(&item64), Marshal.SizeOf(item64.GetType()), XSendMessage.ErrorValue.NoCheck); 514new IntPtr(group.iGroupID), new IntPtr(&group), Marshal.SizeOf(group.GetType())); 521new IntPtr(group.iGroupID), new IntPtr(&group32), Marshal.SizeOf(group32.GetType())); 528new IntPtr(group.iGroupID), new IntPtr(&group64), Marshal.SizeOf(group64.GetType())); 547new IntPtr(group.iGroupID), new IntPtr(pGroup), Marshal.SizeOf(group.GetType())); 558new IntPtr(group.iGroupID), new IntPtr(&group32), Marshal.SizeOf(group32.GetType())); 569new IntPtr(group.iGroupID), new IntPtr(&group64), Marshal.SizeOf(group64.GetType())); 592new IntPtr(group.iGroupID), new IntPtr(pGroup), Marshal.SizeOf(group.GetType())); 603new IntPtr(group.iGroupID), new IntPtr(&group32), Marshal.SizeOf(group32.GetType())); 614new IntPtr(group.iGroupID), new IntPtr(&group64), Marshal.SizeOf(group64.GetType())); 639return GetTextWithinStructure(hwnd, NativeMethods.LVM_GETGROUPINFO, new IntPtr(item.iGroupID), new IntPtr(&item), Marshal.SizeOf(item.GetType()), new IntPtr(&item.pszHeader), item.cchHeader); 651return GetTextWithinStructure(hwnd, NativeMethods.LVM_GETGROUPINFO, new IntPtr(item32.iGroupID), new IntPtr(&item32), Marshal.SizeOf(item32.GetType()), new IntPtr(&item32.pszHeader), item32.cchHeader); 663return GetTextWithinStructure(hwnd, NativeMethods.LVM_GETGROUPINFO, new IntPtr(item64.iGroupID), new IntPtr(&item64), Marshal.SizeOf(item64.GetType()), new IntPtr(&item64.pszHeader), item64.cchHeader); 698return GetTextWithinStructure(hwnd, NativeMethods.LVM_GETGROUPINFO, new IntPtr(item.iGroupID), new IntPtr(&item), Marshal.SizeOf(item.GetType()), textAddress, size, true); 716return GetTextWithinStructure(hwnd, NativeMethods.LVM_GETGROUPINFO, new IntPtr(item32.iGroupID), new IntPtr(&item32), Marshal.SizeOf(item32.GetType()), textAddress, size, true); 734return GetTextWithinStructure(hwnd, NativeMethods.LVM_GETGROUPINFO, new IntPtr(item64.iGroupID), new IntPtr(&item64), Marshal.SizeOf(item64.GetType()), textAddress, size, true); 760return XSend(hwnd, NativeMethods.TCM_GETITEMW, new IntPtr(index), new IntPtr(pItem), Marshal.SizeOf(item.GetType())); 767bool result = XSend(hwnd, NativeMethods.TCM_GETITEMW, new IntPtr(index), new IntPtr(&item32), Marshal.SizeOf(item32.GetType())); 780bool result = XSend(hwnd, NativeMethods.TCM_GETITEMW, new IntPtr(index), new IntPtr(&item64), Marshal.SizeOf(item64.GetType())); 801return GetTextWithinStructure(hwnd, NativeMethods.TCM_GETITEMW, new IntPtr(index), new IntPtr(&item), Marshal.SizeOf(item.GetType()), new IntPtr(&item.pszText), item.cchTextMax); 808new IntPtr(&item32), Marshal.SizeOf(item32.GetType()), new IntPtr(&item32.pszText), 816return GetTextWithinStructure(hwnd, NativeMethods.TCM_GETITEMW, new IntPtr(index), new IntPtr(&item64), Marshal.SizeOf(item64.GetType()), new IntPtr(&item64.pszText), item64.cchTextMax); 842return XSend(hwnd, NativeMethods.HDM_GETITEMW, new IntPtr(index), new IntPtr(pItem), Marshal.SizeOf(item.GetType())); 849bool result = XSend(hwnd, NativeMethods.HDM_GETITEMW, new IntPtr(index), new IntPtr(&item32), Marshal.SizeOf(item32.GetType())); 862bool result = XSend(hwnd, NativeMethods.HDM_GETITEMW, new IntPtr(index), new IntPtr(&item64), Marshal.SizeOf(item64.GetType())); 883return GetTextWithinStructure(hwnd, NativeMethods.HDM_GETITEMW, new IntPtr(index), new IntPtr(&item), Marshal.SizeOf(item.GetType()), new IntPtr(&item.pszText), item.cchTextMax); 891Marshal.SizeOf(item32.GetType()), new IntPtr(&item32.pszText), item32.cchTextMax, 898return GetTextWithinStructure(hwnd, NativeMethods.HDM_GETITEMW, new IntPtr(index), new IntPtr(&item64), Marshal.SizeOf(item64.GetType()), new IntPtr(&item64.pszText), item64.cchTextMax); 924return XSend(hwnd, NativeMethods.TVM_GETITEMW, IntPtr.Zero, new IntPtr(pItem), Marshal.SizeOf(item.GetType())); 931bool result = XSend(hwnd, NativeMethods.TVM_GETITEMW, IntPtr.Zero, new IntPtr(&item32), Marshal.SizeOf(item32.GetType())); 944bool result = XSend(hwnd, NativeMethods.TVM_GETITEMW, IntPtr.Zero, new IntPtr(&item64), Marshal.SizeOf(item64.GetType())); 965return XSend(hwnd, NativeMethods.TVM_SETITEMW, IntPtr.Zero, new IntPtr(&item), Marshal.SizeOf(item.GetType())); 971return XSend(hwnd, NativeMethods.TVM_SETITEMW, IntPtr.Zero, new IntPtr(&item32), Marshal.SizeOf(item32.GetType())); 977return XSend(hwnd, NativeMethods.TVM_SETITEMW, IntPtr.Zero, new IntPtr(&item64), Marshal.SizeOf(item64.GetType())); 999Marshal.SizeOf(hitTestInfo.GetType()), XSendMessage.ErrorValue.Zero)) 1008Marshal.SizeOf(hitTestInfo32.GetType()), XSendMessage.ErrorValue.Zero)) 1017Marshal.SizeOf(hitTestInfo64.GetType()), XSendMessage.ErrorValue.Zero)) 1036return GetTextWithinStructure(hwnd, NativeMethods.TVM_GETITEMW, IntPtr.Zero, new IntPtr(&item), Marshal.SizeOf(item.GetType()), new IntPtr(&item.pszText), item.cchTextMax); 1044Marshal.SizeOf(item32.GetType()), new IntPtr(&item32.pszText), item32.cchTextMax, 1051return GetTextWithinStructure(hwnd, NativeMethods.TVM_GETITEMW, IntPtr.Zero, new IntPtr(&item64), Marshal.SizeOf(item64.GetType()), new IntPtr(&item64.pszText), item64.cchTextMax); 1077return XSend(hwnd, NativeMethods.TB_GETBUTTON, new IntPtr(index), new IntPtr(pItem), Marshal.SizeOf(item.GetType()), ErrorValue.Zero); 1084bool result = XSend(hwnd, NativeMethods.TB_GETBUTTON, new IntPtr(index), new IntPtr(&item32), Marshal.SizeOf(item32.GetType()), ErrorValue.Zero); 1097bool result = XSend(hwnd, NativeMethods.TB_GETBUTTON, new IntPtr(index), new IntPtr(&item64), Marshal.SizeOf(item64.GetType()), ErrorValue.Zero); 1135Marshal.SizeOf(item.GetType()), new IntPtr(&item.pszText), maxTextLength, true); 1143Marshal.SizeOf(item32.GetType()), new IntPtr(&item32.pszText), maxTextLength, 1152Marshal.SizeOf(item64.GetType()), new IntPtr(&item64.pszText), maxTextLength, true); 1180int cMem = Marshal.SizeOf(rectW32.GetType()); 1522int status = UnsafeNativeMethods.NtQueryInformationProcess(hProcess, UnsafeNativeMethods.ProcessWow64Information, ref infoWOW64, Marshal.SizeOf(typeof(ulong)), null); 1980cbSize = Marshal.SizeOf(typeof(LVGROUP_32)); 1997nativeItem.cbSize = Marshal.SizeOf(typeof(NativeMethods.LVGROUP)); 2045cbSize = Marshal.SizeOf(typeof(LVGROUP_V6_32)); 2078nativeItem.cbSize = Marshal.SizeOf(typeof(NativeMethods.LVGROUP_V6)); 2127cbSize = Marshal.SizeOf(typeof(LVGROUP_64)); 2145nativeItem.cbSize = Marshal.SizeOf(typeof(NativeMethods.LVGROUP)); 2194cbSize = Marshal.SizeOf(typeof(LVGROUP_V6_64)); 2228nativeItem.cbSize = Marshal.SizeOf(typeof(NativeMethods.LVGROUP_V6)); 2521cbSize = Marshal.SizeOf(typeof(TOOLINFO_32)); 2536nativeItem.cbSize = Marshal.SizeOf(typeof(NativeMethods.TOOLINFO)); 2564cbSize = Marshal.SizeOf(typeof(TOOLINFO_64)); 2579nativeItem.cbSize = Marshal.SizeOf(typeof(NativeMethods.TOOLINFO));
MS\Internal\AutomationProxies\Misc.cs (5)
343tool.Init(Marshal.SizeOf(typeof(NativeMethods.TOOLINFO))); 1099gui.cbSize = Marshal.SizeOf(gui.GetType()); 1199ti.cbSize = Marshal.SizeOf(ti.GetType()); 1215ti.cbSize = Marshal.SizeOf(ti.GetType()); 1937tool.Init(Marshal.SizeOf(typeof(NativeMethods.TOOLINFO)));
MS\Internal\AutomationProxies\WindowsAltTab.cs (1)
256altTabInfo.cbSize = (uint)Marshal.SizeOf(typeof(UnsafeNativeMethods.ALTTABINFO));
MS\Internal\AutomationProxies\WindowsEditBox.cs (2)
619int cb = Marshal.SizeOf(typeof(NativeMethods.LOGFONT)); 771si.cbSize = System.Runtime.InteropServices.Marshal.SizeOf(typeof(NativeMethods.ScrollInfo));
MS\Internal\AutomationProxies\WindowsHyperlink.cs (3)
227bGetItemResult = XSendMessage.XSend(_hwnd, NativeMethods.LM_HITTEST, IntPtr.Zero, new IntPtr(&HitTestInfo), Marshal.SizeOf(HitTestInfo.GetType())); 412return XSendMessage.XSend(_hwnd, NativeMethods.LM_SETITEM, IntPtr.Zero, new IntPtr(&linkItem), Marshal.SizeOf(linkItem.GetType())); 511bGetItemResult = XSendMessage.XSend(_hwnd, NativeMethods.LM_HITTEST, IntPtr.Zero, new IntPtr(&HitTestInfo), Marshal.SizeOf(HitTestInfo.GetType()));
MS\Internal\AutomationProxies\WindowsListView.cs (7)
1284if (XSendMessage.XSend(hwnd, NativeMethods.LVM_GETITEMRECT, new IntPtr(item), new IntPtr(location), Marshal.SizeOf(itemRectangle.GetType()))) 1434result = XSendMessage.XSendGetIndex(hwnd, NativeMethods.LVM_SUBITEMHITTEST, IntPtr.Zero, new IntPtr(&hitTestNative), Marshal.SizeOf(hitTestNative.GetType())); 1442result = XSendMessage.XSendGetIndex(hwnd, NativeMethods.LVM_SUBITEMHITTEST, IntPtr.Zero, new IntPtr(&hitTestNative), Marshal.SizeOf(hitTestNative.GetType())); 1505if (XSendMessage.XSend(hwnd, NativeMethods.LVM_GETSUBITEMRECT, new IntPtr(item), new IntPtr(location), Marshal.SizeOf(itemRectangle.GetType()))) 1678scrollBarInfo.cbSize = Marshal.SizeOf(scrollBarInfo.GetType()); 1689si.cbSize = Marshal.SizeOf (si.GetType ()); 1806if (XSendMessage.XSend(hwnd, NativeMethods.LVM_GETITEMPOSITION, new IntPtr(item), new IntPtr(location), Marshal.SizeOf(pt.GetType())))
MS\Internal\AutomationProxies\WindowsListViewGroup.cs (12)
106group.Init(Marshal.SizeOf(typeof(NativeMethods.LVGROUP_V6))); 116group.Init(Marshal.SizeOf(typeof(NativeMethods.LVGROUP))); 162group.Init(Marshal.SizeOf(typeof(NativeMethods.LVGROUP_V6))); 250group.Init(Marshal.SizeOf(typeof(NativeMethods.LVGROUP_V6))); 316XSendMessage.XSendGetIndex(_hwnd, NativeMethods.LVM_HITTEST, new IntPtr(-1), new IntPtr(&hitTestNative), Marshal.SizeOf(hitTestNative.GetType())); 342groupInfo.Init(Marshal.SizeOf(typeof(NativeMethods.LVGROUP_V6))); 347bool lresult = XSendMessage.XSend(_hwnd, NativeMethods.LVM_GETGROUPINFOBYINDEX, new IntPtr(groupIndex), new IntPtr(&groupInfo), Marshal.SizeOf(typeof(NativeMethods.LVGROUP_V6))); 434group.Init(Marshal.SizeOf(typeof(NativeMethods.LVGROUP))); 499groupInfo.Init(Marshal.SizeOf(typeof(NativeMethods.LVGROUP_V6))); 504bool lresult = XSendMessage.XSend(hwnd, NativeMethods.LVM_GETGROUPINFOBYINDEX, new IntPtr(groupIndex), new IntPtr(&groupInfo), Marshal.SizeOf(typeof(NativeMethods.LVGROUP_V6))); 513groupInfo.Init(Marshal.SizeOf(typeof(NativeMethods.LVGROUP_V6))); 615group.Init(Marshal.SizeOf(typeof(NativeMethods.LVGROUP)));
MS\Internal\AutomationProxies\WindowsListViewGroupHelper.cs (5)
398while (XSendMessage.XSend (hwnd, NativeMethods.LVM_GETNEXTITEMINDEX, new IntPtr(&ii), flags, Marshal.SizeOf(ii.GetType()))) 402groupInfo.Init(Marshal.SizeOf(typeof(NativeMethods.LVGROUP_V6))); 405bool lresult = XSendMessage.XSend(hwnd, NativeMethods.LVM_GETGROUPINFOBYINDEX, new IntPtr(ii.iGroup), new IntPtr(&groupInfo), Marshal.SizeOf(typeof(NativeMethods.LVGROUP_V6))); 717new IntPtr(_groupID), new IntPtr(&rect), Marshal.SizeOf(rect.GetType())); 828sbi.cbSize = Marshal.SizeOf(sbi.GetType());
MS\Internal\AutomationProxies\WindowsListViewGroupSubsetLink.cs (3)
79XSendMessage.XSend(_hwnd, NativeMethods.LVM_GETGROUPRECT, new IntPtr(0), new IntPtr(&rect), Marshal.SizeOf(rect.GetType())); 90groupInfo.Init(Marshal.SizeOf(typeof(NativeMethods.LVGROUP_V6))); 107group.Init(Marshal.SizeOf(typeof(NativeMethods.LVGROUP_V6)));
MS\Internal\AutomationProxies\WindowsListViewItem.cs (2)
144if (XSendMessage.XSend(_hwnd, NativeMethods.LVM_GETITEMINDEXRECT, new IntPtr(&ii), new IntPtr(&itemRectangle), Marshal.SizeOf(ii.GetType()), Marshal.SizeOf(itemRectangle.GetType())))
MS\Internal\AutomationProxies\WindowsListViewScroll.cs (1)
66si.cbSize = Marshal.SizeOf (si.GetType ());
MS\Internal\AutomationProxies\WindowsMenu.cs (6)
521mbi.cbSize = Marshal.SizeOf(mbi.GetType()); 1907menuItemInfo.cbSize = Marshal.SizeOf(menuItemInfo.GetType()); 1922menuItemInfo.cbSize = Marshal.SizeOf (menuItemInfo.GetType ()); 1966menuItemInfo.cbSize = Marshal.SizeOf(menuItemInfo.GetType()); 2573menuItemInfo.cbSize = Marshal.SizeOf(menuItemInfo.GetType()); 2614int readSize = Marshal.SizeOf(msaaMenuInfo.GetType());
MS\Internal\AutomationProxies\WindowsRebar.cs (3)
223return XSendMessage.XSendGetIndex(_hwnd, NativeMethods.RB_HITTEST, IntPtr.Zero, new IntPtr(&rbHitTestInfo), Marshal.SizeOf(rbHitTestInfo.GetType())); 416if (!XSendMessage.XSend(hwnd, NativeMethods.RB_GETRECT, new IntPtr(item), new IntPtr(&rectW32), Marshal.SizeOf(rectW32.GetType()), XSendMessage.ErrorValue.Zero)) 450if (XSendMessage.XSend(_hwnd, NativeMethods.RB_GETBANDINFOA, new IntPtr(_item), new IntPtr(&rebarBandInfo), Marshal.SizeOf(rebarBandInfo.GetType()), XSendMessage.ErrorValue.Zero))
MS\Internal\AutomationProxies\WindowsScroll.cs (6)
138sbi.cbSize = Marshal.SizeOf(sbi.GetType()); 154si.cbSize = Marshal.SizeOf (si.GetType ()); 205si.cbSize = Marshal.SizeOf (si.GetType ()); 260si.cbSize = Marshal.SizeOf (si.GetType ()); 299si.cbSize = Marshal.SizeOf(si.GetType ()); 373si.cbSize = Marshal.SizeOf (si.GetType ());
MS\Internal\AutomationProxies\WindowsScrollBar.cs (8)
153sbi.cbSize = Marshal.SizeOf (sbi.GetType ()); 450si.cbSize = Marshal.SizeOf (si.GetType ()); 464sbi.cbSize = Marshal.SizeOf (sbi.GetType ()); 538sbi.cbSize = Marshal.SizeOf (sbi.GetType ()); 589si.cbSize = Marshal.SizeOf (si.GetType ()); 640si.cbSize = Marshal.SizeOf (si.GetType ()); 726sbi.cbSize = Marshal.SizeOf (sbi.GetType ()); 741sbi.cbSize = Marshal.SizeOf(sbi.GetType());
MS\Internal\AutomationProxies\WindowsScrollBarBits.cs (3)
215si.cbSize = Marshal.SizeOf (si.GetType ()); 233sbi.cbSize = Marshal.SizeOf (sbi.GetType ()); 550si.cbSize = Marshal.SizeOf (si.GetType ());
MS\Internal\AutomationProxies\WindowsSlider.cs (2)
477XSendMessage.XSend(hwnd, NativeMethods.TBM_GETCHANNELRECT, IntPtr.Zero, new IntPtr(&rcChannel), Marshal.SizeOf(rcChannel.GetType()), XSendMessage.ErrorValue.NoCheck); 489XSendMessage.XSend(hwnd, NativeMethods.TBM_GETTHUMBRECT, IntPtr.Zero, new IntPtr(&rcThumb), Marshal.SizeOf(rcThumb.GetType()), XSendMessage.ErrorValue.NoCheck);
MS\Internal\AutomationProxies\WindowsSysHeader.cs (2)
177index = XSendMessage.XSendGetIndex(_hwnd, NativeMethods.HDM_HITTEST, IntPtr.Zero, new IntPtr(&HitTestInfo), Marshal.SizeOf(HitTestInfo.GetType())); 587result = XSendMessage.XSend(_hwnd, NativeMethods.HDM_GETITEMRECT, new IntPtr(index), new IntPtr(&rectW32), Marshal.SizeOf(rectW32.GetType()), XSendMessage.ErrorValue.Zero);
MS\Internal\AutomationProxies\WindowsTab.cs (3)
279index = XSendMessage.XSendGetIndex(_hwnd, NativeMethods.TCM_HITTEST, IntPtr.Zero, new IntPtr(&hti), Marshal.SizeOf(hti.GetType())); 659result = XSendMessage.XSend(hwnd, NativeMethods.TCM_GETITEMRECT, new IntPtr(count - 1), new IntPtr(&rectW32), Marshal.SizeOf(rectW32.GetType()), XSendMessage.ErrorValue.Zero); 1278if (!XSendMessage.XSend(_hwnd, NativeMethods.TCM_GETITEMRECT, new IntPtr(_item), new IntPtr(&rectW32), Marshal.SizeOf(rectW32.GetType()), XSendMessage.ErrorValue.Zero))
MS\Internal\AutomationProxies\WindowsTreeView.cs (3)
571if (!XSendMessage.XSend(hwnd, NativeMethods.TVM_GETITEMRECT, partialDisplay, rectangle, Marshal.SizeOf(rc.GetType()))) 951if (Marshal.SizeOf(_hItem.GetType()) > sizeof(int)) 1608int readSize = Marshal.SizeOf(ent.GetType());
MS\Win32\NativeMethods.cs (1)
1505internal static int comboboxInfoSize = Marshal.SizeOf(typeof(NativeMethods.COMBOBOXINFO));
WindowsBase (18)
Base\MS\Internal\IO\Packaging\CompoundFile\ContainerUtilities.cs (3)
306return Marshal.SizeOf(typeof(Int16)); 319return Marshal.SizeOf(typeof(Int32)); 330return Marshal.SizeOf(typeof(Int64));
Base\System\Windows\SplashScreen.cs (1)
182wndClass.cbSize = Marshal.SizeOf(typeof(MS.Win32.NativeMethods.WNDCLASSEX_D));
Shared\MS\Win32\HwndWrapper.cs (1)
129wc_d.cbSize = Marshal.SizeOf(typeof(NativeMethods.WNDCLASSEX_D));
Shared\MS\Win32\NativeMethodsCLR.cs (7)
2805return Marshal.SizeOf(typeof(MONITORINFOEX)); 3065return Marshal.SizeOf(typeof(TRACKMOUSEEVENT)); 3207return Marshal.SizeOf(typeof(NONCLIENTMETRICS)); 3226return Marshal.SizeOf(typeof(ICONMETRICS)); 3834return Marshal.SizeOf(typeof(MENUITEMINFO_T)); 3934return Marshal.SizeOf(typeof(OPENFILENAME_I)); 4523return Marshal.SizeOf(typeof(tagCONTROLINFO));
Shared\MS\Win32\NativeMethodsOther.cs (5)
116return Marshal.SizeOf(typeof(OSVERSIONINFOEX)); 201return Marshal.SizeOf(typeof(DOCHOSTUIINFO)); 627return Marshal.SizeOf(typeof(BITMAPINFO)); 676return Marshal.SizeOf(typeof(SECURITY_ATTRIBUTES)); 1244return Marshal.SizeOf(typeof(ANIMATIONINFO));
Shared\MS\Win32\UnsafeNativeMethodsOther.cs (1)
425var filterstruct = new CHANGEFILTERSTRUCT { cbSize = (uint)Marshal.SizeOf(typeof(CHANGEFILTERSTRUCT)) };
WsatUI (1)
MMCUI\WSATPropertySheet.cs (1)
58propSheet.dwSize = Marshal.SizeOf(typeof(PropSheetPage));