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