200 references to Size
ComSvcConfig (13)
ComAdminWrapper.cs (1)
349
if (IntPtr.
Size
== 8)
SafeNativeMethods.cs (12)
74
if (is64bit && IntPtr.
Size
== 8) // No worries we are trying to open up a 64 bit hive just return
76
else if (is64bit && IntPtr.
Size
== 4) // we are running under wow get the 64 bit hive
78
else if (!is64bit && IntPtr.
Size
== 8) // we are running in 64 bit but need to open a 32 bit hive
80
else if (!is64bit && IntPtr.
Size
== 4)
94
if (is64bit && IntPtr.
Size
== 8) // No worries we are trying to open up a 64 bit hive just return
96
else if (is64bit && IntPtr.
Size
== 4) // we are running under wow get the 64 bit hive
98
else if (!is64bit && IntPtr.
Size
== 8) // we are running in 64 bit but need to open a 32 bit hive
100
else if (!is64bit && IntPtr.
Size
== 4)
108
if (is64bit && IntPtr.
Size
== 8) // No worries we are trying to open up a 64 bit hive just return
110
else if (is64bit && IntPtr.
Size
== 4) // we are running under wow get the 64 bit hive
112
else if (!is64bit && IntPtr.
Size
== 8) // we are running in 64 bit but need to open a 32 bit hive
114
else if (!is64bit && IntPtr.
Size
== 4)
mscorlib (23)
system\Collections\Concurrent\ConcurrentDictionary.cs (1)
165
return IntPtr.
Size
== 8;
system\collections\concurrent\PartitionerStatic.cs (2)
1731
Contract.Assert((DEFAULT_BYTES_PER_CHUNK % IntPtr.
Size
) == 0, "bytes per chunk should be a multiple of pointer size");
1732
chunkSize = (DEFAULT_BYTES_PER_CHUNK / IntPtr.
Size
);
System\Diagnostics\Eventing\TraceLogging\Statics.cs (3)
33
public static readonly TraceLoggingDataType IntPtrType = IntPtr.
Size
== 8
36
public static readonly TraceLoggingDataType UIntPtrType = IntPtr.
Size
== 8
39
public static readonly TraceLoggingDataType HexIntPtrType = IntPtr.
Size
== 8
System\Diagnostics\Eventing\TraceLogging\TraceLoggingDataCollector.cs (2)
151
DataCollector.ThreadInstance.AddScalar(&value, IntPtr.
Size
);
322
DataCollector.ThreadInstance.AddArray(value, value == null ? 0 : value.Length, IntPtr.
Size
);
system\gc.cs (2)
150
if( (4 == IntPtr.
Size
) && (bytesAllocated > Int32.MaxValue) ) {
166
if( (4 == IntPtr.
Size
) && (bytesAllocated > Int32.MaxValue) ) {
system\intptr.cs (1)
82
if (
Size
==4 && (l>Int32.MaxValue || l<Int32.MinValue)) {
system\number.cs (1)
362
public static readonly Int32 NumberBufferBytes = 12 + ((NumberMaxDigits + 1) * 2) + IntPtr.
Size
;
system\runtime\interopservices\marshal.cs (1)
247
if (IntPtr.
Size
== 8 && size == 4)
system\runtime\interopservices\safebuffer.cs (2)
106
if (IntPtr.
Size
== 4 && numBytes > UInt32.MaxValue)
128
if (IntPtr.
Size
== 4 && numElements * sizeOfEachElement > UInt32.MaxValue)
system\security\principal\windowsidentity.cs (1)
1072
Contract.Assert(Marshal.SizeOf(typeof(Win32Native.KERB_S4U_LOGON)) % IntPtr.
Size
== 0, "Potential allignment issue setting up S4U logon buffer");
system\stubhelpers.cs (2)
1050
vt = (IntPtr.
Size
== 4 ? VarEnum.VT_I4 : VarEnum.VT_I8);
1054
vt = (IntPtr.
Size
== 4 ? VarEnum.VT_UI4 : VarEnum.VT_UI8);
system\threading\Tasks\ParallelLoopState.cs (3)
502
if (IntPtr.
Size
>= 8) return rval;
557
if (IntPtr.
Size
>= 8) return m_lowestBreakIteration;
570
if (IntPtr.
Size
>= 8) return m_lowestBreakIteration;
system\threading\Tasks\ParallelRangeManager.cs (2)
119
if (IntPtr.
Size
== 4 && _use32BitCurrentIndex)
265
_use32BitCurrentIndex = IntPtr.
Size
== 4 && nRangeSize <= int.MaxValue;
PresentationFramework (3)
src\Framework\System\Windows\Standard\NativeMethods.cs (3)
3163
if (8 == IntPtr.
Size
)
3438
if (8 == IntPtr.
Size
)
3501
if (8 == IntPtr.
Size
)
System (32)
compmod\microsoft\win32\UnsafeNativeMethods.cs (2)
97
if (IntPtr.
Size
== 4) {
117
if (IntPtr.
Size
== 4)
net\System\Net\_SSPIWrapper.cs (3)
522
int nativeBlockSize = IntPtr.
Size
;
649
nativeBuffer = new byte[IntPtr.
Size
];
650
if (IntPtr.
Size
== 4) // 32bit
net\System\Net\_Win32.cs (5)
11
internal static int OverlappedInternalHighOffset = IntPtr.
Size
;
12
internal static int OverlappedOffsetOffset = IntPtr.
Size
*2;
13
internal static int OverlappedOffsetHighOffset = IntPtr.
Size
*2 + 4;
14
internal static int OverlappedhEventOffset = IntPtr.
Size
*2 + 8;
15
internal static int OverlappedSize = IntPtr.
Size
*3 + 8;
net\System\Net\Cache\HttpRequestCacheValidator.cs (1)
906
if (IntPtr.
Size
== 4) {
net\System\Net\DNS.cs (2)
119
currentArrayElement = IntPtrHelper.Add(currentArrayElement, IntPtr.
Size
);
153
currentArrayElement = IntPtrHelper.Add(currentArrayElement, IntPtr.
Size
);
net\System\Net\Internal.cs (1)
1320
cIssuers = *((uint*)(voidPtr + IntPtr.
Size
));
net\System\Net\SocketAddress.cs (7)
123
m_Buffer = new byte[(size/IntPtr.
Size
+2)*IntPtr.
Size
];//sizeof DWORD
220
m_Buffer[m_Buffer.Length-IntPtr.
Size
] = unchecked((byte)(m_Size));
221
m_Buffer[m_Buffer.Length-IntPtr.
Size
+1] = unchecked((byte)(m_Size >> 8));
222
m_Buffer[m_Buffer.Length-IntPtr.
Size
+2] = unchecked((byte)(m_Size >> 16));
223
m_Buffer[m_Buffer.Length-IntPtr.
Size
+3] = unchecked((byte)(m_Size >> 24));
230
return m_Buffer.Length-IntPtr.
Size
;
net\System\Net\WebSockets\WebSocketBuffer.cs (3)
36
private static readonly int s_PropertyBufferSize = 2 * s_SizeOfUInt + s_SizeOfBool + IntPtr.
Size
;
148
offset += IntPtr.
Size
;
179
offset += IntPtr.
Size
;
net\System\Net\WebSockets\WebSocketProtocolComponent.cs (4)
795
IntPtr lengthPtr = IntPtr.Add(httpHeaderPtr, IntPtr.
Size
);
818
int valueOffset = 2 * IntPtr.
Size
;
819
int lengthOffset = 3 * IntPtr.
Size
;
851
int httpHeaderStructSize = 4 * IntPtr.
Size
;
net\System\URI.cs (1)
3622
if (IntPtr.
Size
== 4) {
services\monitoring\system\diagnosticts\ProcessManager.cs (3)
588
enumResult = NativeMethods.EnumProcessModules(processHandle, moduleHandlesArrayHandle.AddrOfPinnedObject(), moduleHandles.Length * IntPtr.
Size
, ref moduleCount);
640
enumResult = NativeMethods.EnumProcessModules(processHandle, moduleHandlesArrayHandle.AddrOfPinnedObject(), moduleHandles.Length * IntPtr.
Size
, ref moduleCount);
656
moduleCount /= IntPtr.
Size
;
System.Activities.Presentation (6)
Microsoft.Tools.Common\Microsoft\Tools\Common\Win32Interop.cs (3)
57
if (IntPtr.
Size
== 4)
72
if (IntPtr.
Size
== 8)
83
if (IntPtr.
Size
== 8)
System.Activities.Presentation\System\Activities\Presentation\View\WindowExtensionMethods.cs (3)
18
if (IntPtr.
Size
== 4)
33
if (IntPtr.
Size
== 4)
68
if (IntPtr.
Size
== 4)
System.AddIn (1)
System\Addin\Hosting\AddInProcess.cs (1)
317
return System.IntPtr.
Size
== 4;
System.Core (10)
System\IO\MemoryMappedFiles\MemoryMappedFile.cs (4)
279
if (IntPtr.
Size
== 4 && capacity > UInt32.MaxValue) {
345
if (IntPtr.
Size
== 4 && capacity > UInt32.MaxValue) {
565
if (IntPtr.
Size
== 4 && size > UInt32.MaxValue) {
598
if (IntPtr.
Size
== 4 && size > UInt32.MaxValue) {
System\IO\MemoryMappedFiles\MemoryMappedView.cs (1)
98
if (IntPtr.
Size
== 4 && nativeSize > UInt32.MaxValue) {
System\Linq\Parallel\Scheduling\Scheduling.cs (2)
102
Contract.Assert((DEFAULT_BYTES_PER_CHUNK % IntPtr.
Size
) == 0, "bytes per chunk should be a multiple of pointer size");
103
chunkSize = (DEFAULT_BYTES_PER_CHUNK / IntPtr.
Size
);
System\Security\Cryptography\NCryptNative.cs (2)
1449
int bufferSize = IntPtr.
Size
;
1454
IntPtr.
Size
,
System\Security\Cryptography\X509Certificates\X509Native.cs (1)
59
int cbData = IntPtr.
Size
;
System.Data (37)
cdf\src\NetFx40\Tools\Microsoft.Tools.Common\Microsoft\Tools\Common\Win32Interop.cs (3)
57
if (IntPtr.
Size
== 4)
72
if (IntPtr.
Size
== 8)
83
if (IntPtr.
Size
== 8)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\WindowExtensionMethods.cs (3)
18
if (IntPtr.
Size
== 4)
33
if (IntPtr.
Size
== 4)
68
if (IntPtr.
Size
== 4)
fx\src\data\System\Data\Common\AdapterUtil.cs (1)
1855
static internal readonly int PtrSize = IntPtr.
Size
;
fx\src\data\System\Data\Odbc\OdbcDataReader.cs (5)
2072
buffer.PtrOffset(256, IntPtr.
Size
).Handle);
2141
buffer.PtrOffset(256, IntPtr.
Size
).Handle);
2230
IntPtr colnameActual = buffer.PtrOffset(colnameActualOffset, IntPtr.
Size
).Handle;
2231
IntPtr indexActual = buffer.PtrOffset(indexActualOffset, IntPtr.
Size
).Handle;
2232
IntPtr ordinalActual = buffer.PtrOffset(ordinalActualOffset, IntPtr.
Size
).Handle;
fx\src\data\System\Data\Odbc\OdbcParameter.cs (3)
686
_preparedValueOffset = _preparedIntOffset + IntPtr.
Size
;
687
parameterBufferSize += (cbParameterSize + IntPtr.
Size
);
705
HandleRef intBuffer = parameterBuffer.PtrOffset(_preparedIntOffset, IntPtr.
Size
);
fx\src\data\System\Data\Odbc\OdbcParameterCollection.cs (2)
117
parameterBufferSize = (parameterBufferSize + (IntPtr.
Size
-1)) & ~(IntPtr.
Size
-1); // align buffer;
fx\src\data\System\Data\OleDb\OleDbWrapper.cs (5)
41
IntPtr method = Marshal.ReadIntPtr(vtable, 3 * IntPtr.
Size
); // GetDataSource is the 4'th vtable entry
121
method = Marshal.ReadIntPtr(vtable, 3 * IntPtr.
Size
); // Initialize is the 4'th vtable entry
147
method = Marshal.ReadIntPtr(vtable, 3 * IntPtr.
Size
); // CreateSession is the 4'th vtable entry
249
method = Marshal.ReadIntPtr(vtable, 3 * IntPtr.
Size
);
280
IntPtr method = Marshal.ReadIntPtr(vtable, 3 * IntPtr.
Size
);
fx\src\data\System\Data\OleDb\RowBinding.cs (6)
59
Debug.Assert(_bindingCount * 3 * IntPtr.
Size
<= _dataLength, "_dataLength too small");
228
ValidateCheck(offset, 2*IntPtr.
Size
);
259
ValidateCheck(offset, 2*IntPtr.
Size
);
364
ValidateCheck(valueOffset, 2*IntPtr.
Size
);
376
ValidateCheck(valueOffset, 2*IntPtr.
Size
);
540
ValidateCheck(offset, IntPtr.
Size
);
fx\src\data\System\Data\ProviderBase\DbBuffer.cs (5)
286
Debug.Assert(0 == offset%IntPtr.
Size
, "invalid alignment");
307
ValidateCheck(offset, IntPtr.
Size
);
518
Debug.Assert(0 == offset%IntPtr.
Size
, "invalid alignment");
537
ValidateCheck(offset, IntPtr.
Size
);
538
Debug.Assert(0 == offset%IntPtr.
Size
, "invalid alignment");
fx\src\data\System\Data\ProviderBase\DbConnectionPool.cs (4)
329
internal PoolWaitHandles() : base(3*IntPtr.
Size
) {
351
WriteIntPtr(SEMAPHORE_HANDLE*IntPtr.
Size
, _poolHandle.DangerousGetHandle());
352
WriteIntPtr(ERROR_HANDLE*IntPtr.
Size
, _errorHandle.DangerousGetHandle());
353
WriteIntPtr(CREATION_HANDLE*IntPtr.
Size
, _creationHandle.DangerousGetHandle());
System.Drawing (11)
commonui\System\Drawing\Advanced\GraphicsPath.cs (3)
309
IntPtr memoryPathData = Marshal.AllocHGlobal(3*IntPtr.
Size
);
318
Marshal.StructureToPtr(memoryPoints, (IntPtr)((long)memoryPathData+IntPtr.
Size
), false);
319
Marshal.StructureToPtr(typesPtr, (IntPtr)((long)memoryPathData+2*IntPtr.
Size
), false);
commonui\System\Drawing\Icon.cs (2)
759
if ((bestImageOffset % IntPtr.
Size
) != 0) {
905
if (IntPtr.
Size
== 4) {
commonui\System\Drawing\Printing\PrinterSettings.cs (6)
225
if (IntPtr.
Size
== 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);
853
if (IntPtr.
Size
== 8)
909
if (IntPtr.
Size
== 8)
System.IdentityModel (2)
System\IdentityModel\SspiWrapper.cs (2)
533
int nativeBlockSize = IntPtr.
Size
;
661
int nativeBlockSize = IntPtr.
Size
;
System.Management (2)
managementobject.cs (2)
1494
ppwbemCallResult = Marshal.AllocHGlobal(IntPtr.
Size
);
1795
ppwbemCallResult = Marshal.AllocHGlobal(IntPtr.
Size
);
System.Messaging (3)
System\Messaging\Interop\Restrictions.cs (2)
55
Marshal.WriteIntPtr(restrictionStructure.GetNextValidPtr(16 + IntPtr.
Size
), (IntPtr)0);
121
return 16 + (IntPtr.
Size
* 2);
System\Messaging\MessageQueue.cs (1)
2046
IntPtr stringPointer = Marshal.ReadIntPtr((IntPtr)((long)basePointer + index * IntPtr.
Size
));
System.Runtime.Caching (1)
System\Caching\CacheMemoryMonitor.cs (1)
80
bool is64bit = (IntPtr.
Size
== 8);
System.Security (1)
system\security\cryptography\pkcs\pkcsutils.cs (1)
834
uint cbSize = (uint)IntPtr.
Size
;
System.ServiceModel (13)
System\ServiceModel\Channels\OverlappedContext.cs (1)
68
(IntPtr.
Size
== 4 ? HandleOffsetFromOverlapped32 : HandleOffsetFromOverlapped64)));
System\ServiceModel\Channels\PnrpPeerResolver.cs (1)
1550
Fx.Assert(start % IntPtr.
Size
== 0, "Invalid alignment!!");
System\ServiceModel\Channels\WebSocketHelper.cs (1)
44
static readonly int PropertyBufferSize = ((2 * Marshal.SizeOf(typeof(uint))) + Marshal.SizeOf(typeof(bool))) + IntPtr.
Size
;
System\ServiceModel\ComIntegration\OuterProxyWrapper.cs (1)
53
using (RegistryHandle regKey = RegistryHandle.GetCorrectBitnessHKLMSubkey((IntPtr.
Size
== 8), ServiceModelInstallStrings.WinFXRegistryKey))
System\ServiceModel\ComIntegration\SafeNativeMethods.cs (8)
638
if (is64bit && IntPtr.
Size
== 8) // No worries we are trying to open up a 64 bit hive just return
640
else if (is64bit && IntPtr.
Size
== 4) // we are running under wow get the 64 bit hive
642
else if (!is64bit && IntPtr.
Size
== 8) // we are running in 64 bit but need to open a 32 bit hive
644
else if (!is64bit && IntPtr.
Size
== 4)
657
if (is64bit && IntPtr.
Size
== 8) // No worries we are trying to open up a 64 bit hive just return
659
else if (is64bit && IntPtr.
Size
== 4) // we are running under wow get the 64 bit hive
661
else if (!is64bit && IntPtr.
Size
== 8) // we are running in 64 bit but need to open a 32 bit hive
663
else if (!is64bit && IntPtr.
Size
== 4)
System\ServiceModel\ComIntegration\TypeCacheManager.cs (1)
398
using (RegistryHandle hkcr = RegistryHandle.GetBitnessHKCR(IntPtr.
Size
== 8 ? false : true))
System.Web (15)
Configuration\IdentitySection.cs (2)
236
byte[] bOut = new byte[IntPtr.
Size
];
248
for (int iter = 0; iter < IntPtr.
Size
; iter++) {
Configuration\RemoteWebConfigurationHost.cs (1)
481
if (IntPtr.
Size
== 8)
Hosting\ISAPIWorkerRequest.cs (3)
400
_size = IntPtr.
Size
;
465
byte[] bytes = new byte[2 * sizeof(long) + IntPtr.
Size
];
475
if (IntPtr.
Size
== 4) {
HttpWriter.cs (1)
34
internal static readonly int INTEGRATED_MODE_BUFFER_SIZE = 16*1024 - 4*IntPtr.
Size
; // native buffer size for integrated mode
State\StateWorkerRequest.cs (3)
102
Debug.Assert(_contentLength == IntPtr.
Size
);
406
Debug.Assert(length == IntPtr.
Size
, "length == IntPtr.Size");
411
if (IntPtr.
Size
== 4) {
Util\altserialization.cs (4)
129
if (IntPtr.
Size
== 4) {
133
Debug.Assert(IntPtr.
Size
== 8);
250
if (IntPtr.
Size
== 4) {
254
Debug.Assert(IntPtr.
Size
== 8);
Util\SystemInfo.cs (1)
35
if (IntPtr.
Size
== 4) {
System.Windows.Forms (17)
winforms\Managed\System\WinForms\AccessibleObject.cs (1)
3004
int variantSize = 8 + (IntPtr.
Size
* 2);
winforms\Managed\System\WinForms\ComponentModel\COM2Interop\BaseCAMarshaler.cs (1)
123
addr = Marshal.ReadIntPtr(caArrayAddress, i * IntPtr.
Size
);
winforms\Managed\System\WinForms\ComponentModel\COM2Interop\COM2Properties.cs (1)
389
countOffset = Marshal.SizeOf(typeof(Guid)) + IntPtr.
Size
+ 24;
winforms\Managed\System\WinForms\ImageList.cs (1)
647
if (IntPtr.
Size
== 4) {
winforms\Managed\System\WinForms\MenuItem.cs (3)
928
if (IntPtr.
Size
== 4) {
1014
if (IntPtr.
Size
== 4) {
1052
if (IntPtr.
Size
== 4) {
winforms\Managed\System\WinForms\Printing\PrintDialog.cs (1)
289
if (IntPtr.
Size
== 4) {
winforms\Managed\System\WinForms\RichTextBox.cs (4)
3066
if (IntPtr.
Size
== 8) {
3163
if (IntPtr.
Size
== 8) {
3332
if (IntPtr.
Size
== 8) {
3489
if (IntPtr.
Size
== 8) {
winforms\Managed\System\WinForms\UnsafeNativeMethods.cs (5)
197
if (IntPtr.
Size
== 4)
313
if (IntPtr.
Size
== 4) {
1375
if (IntPtr.
Size
== 4)
1397
if (IntPtr.
Size
== 4)
1414
if (IntPtr.
Size
== 4)
System.Workflow.Runtime (2)
DebugEngine\DebugControllerThread.cs (2)
63
if (this.controllerThread.IsAlive && IntPtr.
Size
== 8)
164
if (IntPtr.
Size
== 8)
UIAutomationClient (1)
MS\Internal\Automation\Misc.cs (1)
439
if (IntPtr.
Size
== 4)
UIAutomationClientsideProviders (1)
MS\Win32\UnsafeNativeMethods.cs (1)
389
if (IntPtr.
Size
== 4)
WindowsBase (6)
Shared\MS\Win32\UnsafeNativeMethodsOther.cs (6)
659
if (IntPtr.
Size
== 4)
682
if (IntPtr.
Size
== 4)
706
if (IntPtr.
Size
== 4)
738
if (IntPtr.
Size
== 4)
775
if (IntPtr.
Size
== 4)
813
if (IntPtr.
Size
== 4)