160 references to GCHandleType
mscorlib (18)
parent\parent\parent\parent\InternalApis\NDP_Common\inc\PinnableBufferCache.cs (1)
515
m_weakTargetObj = GCHandle.Alloc(targetObj,
GCHandleType
.Weak);
system\diagnostics\eventing\eventprovider.cs (1)
1052
rgGCHandle[i] = GCHandle.Alloc(dataRefObj[i],
GCHandleType
.Pinned);
System\Diagnostics\Eventing\TraceLogging\DataCollector.cs (1)
284
*pinsTemp = GCHandle.Alloc(value,
GCHandleType
.Pinned);
system\io\filestream.cs (1)
1110
pinningHandle = GCHandle.Alloc(sd,
GCHandleType
.Pinned);
system\io\pinnedbuffermemorystream.cs (1)
45
_pinningHandle = new GCHandle(array,
GCHandleType
.Pinned);
system\rttype.cs (1)
2747
IntPtr newgcHandle = new RuntimeTypeHandle(this).GetGCHandle(
GCHandleType
.WeakTrackResurrection);
system\runtime\interopservices\gchandle.cs (8)
48
private const
GCHandleType
MaxHandleType =
GCHandleType
.Pinned;
62
internal GCHandle(Object value,
GCHandleType
type)
72
if (type ==
GCHandleType
.Pinned)
93
return new GCHandle(value,
GCHandleType
.Normal);
97
public static GCHandle Alloc(Object value,
GCHandleType
type)
300
internal static extern IntPtr InternalAlloc(Object value,
GCHandleType
type);
328
internal static extern
GCHandleType
InternalGetHandleType(IntPtr handle);
system\runtime\remoting\serveridentity.cs (1)
90
_srvIdentityHandle = new GCHandle(this,
GCHandleType
.Normal);
system\runtimehandles.cs (2)
407
private extern static IntPtr GetGCHandle(RuntimeTypeHandle handle,
GCHandleType
type);
410
internal IntPtr GetGCHandle(
GCHandleType
type)
system\security\principal\sid.cs (1)
956
HandleArray[currentSid] = GCHandle.Alloc(sid.BinaryForm,
GCHandleType
.Pinned);
PresentationCore (9)
Core\CSharp\MS\Internal\FontCache\FontSource.cs (1)
437
_memoryHandle = GCHandle.Alloc(bits,
GCHandleType
.Pinned);
Core\CSharp\System\Windows\Media\EventProxy.cs (1)
190
epd.m_handle = System.Runtime.InteropServices.GCHandle.Alloc(epw, System.Runtime.InteropServices.
GCHandleType
.Normal);
Core\CSharp\System\Windows\Media\Geometry.cs (1)
759
handle = GCHandle.Alloc(dashArray,
GCHandleType
.Pinned);
Core\CSharp\System\Windows\Media\Imaging\PropVariant.cs (1)
178
handle = GCHandle.Alloc(array,
GCHandleType
.Pinned);
Core\CSharp\System\Windows\Media\Imaging\WriteableBitmap.cs (2)
461
GCHandle arrayHandle = GCHandle.Alloc(sourceBuffer,
GCHandleType
.Pinned);
621
GCHandle arrayHandle = GCHandle.Alloc(pixels,
GCHandleType
.Pinned);
Core\CSharp\System\Windows\Media\StreamAsIStream.cs (1)
795
sd.m_handle = System.Runtime.InteropServices.GCHandle.Alloc(sais, System.Runtime.InteropServices.
GCHandleType
.Normal);
Shared\MS\Internal\CharacterBuffer.cs (2)
240
gcHandle = GCHandle.Alloc(_characterArray,
GCHandleType
.Pinned);
355
gcHandle = GCHandle.Alloc(_string,
GCHandleType
.Pinned);
System (46)
net\System\IriHelper.cs (2)
142
GCHandle destHandle = GCHandle.Alloc(dest,
GCHandleType
.Pinned);
348
destHandle = GCHandle.Alloc(dest,
GCHandleType
.Pinned);
net\System\Net\_AutoWebProxyScriptHelper.cs (1)
649
GCHandles[i] = GCHandle.Alloc(SockAddrIn6List[i].m_Buffer,
GCHandleType
.Pinned);
net\System\Net\_SafeNetHandles.cs (6)
1508
pinnedOutBytes = GCHandle.Alloc(outSecBuffer.token,
GCHandleType
.Pinned);
1538
pinnedInBytes[index] = GCHandle.Alloc(securityBuffer.token,
GCHandleType
.Pinned);
1833
pinnedOutBytes = GCHandle.Alloc(outSecBuffer.token,
GCHandleType
.Pinned);
1863
pinnedInBytes[index] = GCHandle.Alloc(securityBuffer.token,
GCHandleType
.Pinned);
2120
pinnedInBytes[index] = GCHandle.Alloc(securityBuffer.token,
GCHandleType
.Pinned);
2236
pinnedInBytes[index] = GCHandle.Alloc(securityBuffer.token,
GCHandleType
.Pinned);
net\System\Net\_SSPIWrapper.cs (1)
402
pinnedBuffers[i] = GCHandle.Alloc(iBuffer.token,
GCHandleType
.Pinned);
net\System\Net\HttpListener.cs (4)
251
m_PinnedHandle = GCHandle.Alloc(RequestBuffer,
GCHandleType
.Pinned);
2361
headersArrayHandle = GCHandle.Alloc(headersArray,
GCHandleType
.Pinned);
2363
wwwAuthenticateHandle = GCHandle.Alloc(s_WwwAuthenticateBytes,
GCHandleType
.Pinned);
2369
challengeHandles[i] = GCHandle.Alloc(byteChallenge,
GCHandleType
.Pinned);
net\System\Net\HttpListenerResponse.cs (4)
806
gcHandle = GCHandle.Alloc(unknownHeaders,
GCHandleType
.Pinned);
822
gcHandle = GCHandle.Alloc(bytes,
GCHandleType
.Pinned);
831
gcHandle = GCHandle.Alloc(bytes,
GCHandleType
.Pinned);
845
gcHandle = GCHandle.Alloc(bytes,
GCHandleType
.Pinned);
net\System\Net\Sockets\_BaseOverlappedAsyncResult.cs (2)
258
m_GCHandles[i] = GCHandle.Alloc(objectsArray[i],
GCHandleType
.Pinned);
265
m_GCHandles[0] = GCHandle.Alloc(objectsToPin,
GCHandleType
.Pinned);
net\System\Net\Sockets\Socket.cs (8)
1337
objectsToPin[i] = GCHandle.Alloc(buffer.Array,
GCHandleType
.Pinned);
1873
objectsToPin[i] = GCHandle.Alloc(buffer.Array,
GCHandleType
.Pinned);
6999
objectsToPin[i] = GCHandle.Alloc(buffers[i].Buffer,
GCHandleType
.Pinned);
9184
m_WSAMessageBufferGCHandle = GCHandle.Alloc(m_WSAMessageBuffer,
GCHandleType
.Pinned);
9207
m_ControlBufferGCHandle = GCHandle.Alloc(m_ControlBuffer,
GCHandleType
.Pinned);
9218
m_WSARecvMsgWSABufferArrayGCHandle = GCHandle.Alloc(m_WSARecvMsgWSABufferArray,
GCHandleType
.Pinned);
9222
m_WSARecvMsgWSABufferArrayGCHandle = GCHandle.Alloc(m_WSABufferArray,
GCHandleType
.Pinned);
9463
m_SocketAddressGCHandle = GCHandle.Alloc(m_SocketAddress.m_Buffer,
GCHandleType
.Pinned);
net\System\Net\WebSockets\WebSocketBuffer.cs (2)
73
m_GCHandle = GCHandle.Alloc(internalBuffer.Array,
GCHandleType
.Pinned);
209
m_PinnedSendBufferHandle = GCHandle.Alloc(m_PinnedSendBuffer.Array,
GCHandleType
.Pinned);
net\System\Net\WebSockets\WebSocketHttpListenerDuplexStream.cs (1)
1122
m_DataChunksGCHandle = GCHandle.Alloc(m_DataChunks,
GCHandleType
.Pinned);
parent\parent\parent\InternalApis\NDP_Common\inc\PinnableBufferCache.cs (1)
515
m_weakTargetObj = GCHandle.Alloc(targetObj,
GCHandleType
.Weak);
security\system\security\cryptography\cryptoapi.cs (3)
3492
GCHandle handle = GCHandle.Alloc(pvObject,
GCHandleType
.Pinned);
3557
GCHandle handle = GCHandle.Alloc(pvObject,
GCHandleType
.Pinned);
3639
GCHandle handle = GCHandle.Alloc(pbData,
GCHandleType
.Pinned);
services\monitoring\system\diagnosticts\EventLog.cs (2)
1290
GCHandle stringsRoot = GCHandle.Alloc(addresses,
GCHandleType
.Pinned);
1301
handles[i] = GCHandle.Alloc(insertionStrings[i],
GCHandleType
.Pinned);
services\monitoring\system\diagnosticts\EventLogInternal.cs (2)
1709
GCHandle stringsRootHandle = GCHandle.Alloc(stringRoots,
GCHandleType
.Pinned);
1712
stringHandles[strIndex] = GCHandle.Alloc(strings[strIndex],
GCHandleType
.Pinned);
services\monitoring\system\diagnosticts\Process.cs (1)
2049
environmentHandle = GCHandle.Alloc(environmentBytes,
GCHandleType
.Pinned);
services\monitoring\system\diagnosticts\ProcessManager.cs (5)
361
bufferHandle = GCHandle.Alloc(buffer,
GCHandleType
.Pinned);
431
bufferHandle = GCHandle.Alloc(buffer,
GCHandleType
.Pinned);
587
moduleHandlesArrayHandle = GCHandle.Alloc(moduleHandles,
GCHandleType
.Pinned);
797
dataHandle = GCHandle.Alloc(data,
GCHandleType
.Pinned);
1090
bufferHandle = GCHandle.Alloc(buffer,
GCHandleType
.Pinned);
sys\System\IO\compression\DeflaterZLib.cs (1)
146
_inputBufferHandle = GCHandle.Alloc(inputBuffer,
GCHandleType
.Pinned);
System.Core (3)
System\IO\MemoryMappedFiles\MemoryMappedFile.cs (1)
793
pinningHandle = GCHandle.Alloc(sd,
GCHandleType
.Pinned);
System\IO\Pipes\PipeStream.cs (1)
1196
pinningHandle = GCHandle.Alloc(sd,
GCHandleType
.Pinned);
System\Security\Cryptography\X509Certificates\X509Native.cs (1)
468
System.Runtime.InteropServices.
GCHandleType
.Pinned),
System.Data (6)
fx\src\bid\inc\cs\bidPrivateBase.cs (1)
752
hCookie = GCHandle.Alloc(cookieObject,
GCHandleType
.Pinned);
fx\src\data\System\Data\OleDb\ColumnBinding.cs (3)
632
_pinnedBuffer = GCHandle.Alloc(value,
GCHandleType
.Pinned);
672
_pinnedBuffer = GCHandle.Alloc(value,
GCHandleType
.Pinned);
689
_pinnedBuffer = GCHandle.Alloc(value,
GCHandleType
.Pinned);
fx\src\data\System\Data\SqlClient\TdsParserStateObject.cs (1)
741
_gcHandle = GCHandle.Alloc(this,
GCHandleType
.Normal);
fx\src\data\System\Data\SQLTypes\SQLFileStream.cs (1)
980
m_hQos = GCHandle.Alloc(m_qos,
GCHandleType
.Pinned);
System.Drawing (1)
commonui\System\Drawing\Advanced\GraphicsPath.cs (1)
312
GCHandle typesHandle = GCHandle.Alloc(pathData.Types,
GCHandleType
.Pinned);
System.IdentityModel (5)
System\IdentityModel\SspiSafeHandles.cs (4)
215
pinnedOutBytes = GCHandle.Alloc(outSecBuffer.token,
GCHandleType
.Pinned);
245
pinnedInBytes[index] = GCHandle.Alloc(securityBuffer.token,
GCHandleType
.Pinned);
495
pinnedOutBytes = GCHandle.Alloc(outSecBuffer.token,
GCHandleType
.Pinned);
525
pinnedInBytes[index] = GCHandle.Alloc(securityBuffer.token,
GCHandleType
.Pinned);
System\IdentityModel\SspiWrapper.cs (1)
720
pinnedBuffers[i] = GCHandle.Alloc(iBuffer.token,
GCHandleType
.Pinned);
System.IdentityModel.Selectors (2)
infocard\Diagnostics\Managed\Microsoft\InfoCards\Diagnostics\InfocardTrace.cs (2)
493
stringsRootHandle = GCHandle.Alloc(stringRoots,
GCHandleType
.Pinned);
498
stringParamHandle = GCHandle.Alloc(parameter,
GCHandleType
.Pinned);
System.IO.Log (9)
System\IO\Log\AppendHelper.cs (2)
37
this.handles[0] = GCHandle.Alloc(header.Bits,
GCHandleType
.Pinned);
43
handles[i + 1] = GCHandle.Alloc(data[i].Array,
GCHandleType
.Pinned);
System\IO\Log\LogFlushAsyncResult.cs (1)
54
GCHandleType
.Pinned);
System\IO\Log\LogReserveAndAppendState.cs (4)
465
this.handles[(int)PinIndex.ReturnLsn] = GCHandle.Alloc(this.boxedResultLsn,
GCHandleType
.Pinned);
472
this.handles[(int)PinIndex.Reservations] = GCHandle.Alloc(this.alignedReservations,
GCHandleType
.Pinned);
478
this.handles[(int)PinIndex.Header] = GCHandle.Alloc(this.headerBits,
GCHandleType
.Pinned);
490
this.handles[(int)PinIndex.FirstData + i] = GCHandle.Alloc(segment.Array,
GCHandleType
.Pinned);
System\IO\Log\LogStore.cs (1)
518
pinningHandle = GCHandle.Alloc(sd,
GCHandleType
.Pinned);
System\IO\Log\LogWriteRestartAreaState.cs (1)
412
GCHandleType
.Pinned);
System.Messaging (9)
System\Messaging\AccessControlList.cs (1)
126
GCHandle mem = GCHandle.Alloc(entries,
GCHandleType
.Pinned);
System\Messaging\Interop\MessagePropertyVariants.cs (5)
320
GCHandle handle = GCHandle.Alloc(objects[i],
GCHandleType
.Pinned);
334
GCHandle handle = GCHandle.Alloc(objects[i],
GCHandleType
.Pinned);
347
handleVectorIdentifiers = GCHandle.Alloc(newVectorIdentifiers,
GCHandleType
.Pinned);
348
handleVectorProperties = GCHandle.Alloc(newVectorProperties,
GCHandleType
.Pinned);
349
handleVectorStatus = GCHandle.Alloc(newVectorStatus,
GCHandleType
.Pinned);
System\Messaging\Message.cs (1)
1647
GCHandle handle = GCHandle.Alloc(bytes,
GCHandleType
.Pinned);
System\Messaging\MessageQueue.cs (2)
3465
GCHandle sdHandle = GCHandle.Alloc(SecurityDescriptor,
GCHandleType
.Pinned);
3478
sdHandle = GCHandle.Alloc(SecurityDescriptor,
GCHandleType
.Pinned);
System.Net (23)
net\PeerToPeer\Collaboration\ContactManager.cs (2)
1410
pepName = GCHandle.Alloc(peerEndPoint.Name,
GCHandleType
.Pinned);
1414
GCHandle peerEP = GCHandle.Alloc(pe,
GCHandleType
.Pinned);
net\PeerToPeer\Collaboration\Peer.cs (9)
382
pepName = GCHandle.Alloc(peerEndPoint.Name,
GCHandleType
.Pinned);
386
GCHandle peerEP = GCHandle.Alloc(pep,
GCHandleType
.Pinned);
537
guidHandle = GCHandle.Alloc(guid,
GCHandleType
.Pinned);
551
pepName = GCHandle.Alloc(peerEndPoint.Name,
GCHandleType
.Pinned);
554
GCHandle peerEP = GCHandle.Alloc(pep,
GCHandleType
.Pinned);
700
pepName = GCHandle.Alloc(peerEndPoint.Name,
GCHandleType
.Pinned);
703
GCHandle peerEP = GCHandle.Alloc(pep,
GCHandleType
.Pinned);
1168
pepName = GCHandle.Alloc(peerEndPoint.Name,
GCHandleType
.Pinned);
1171
GCHandle peerEP = GCHandle.Alloc(pep,
GCHandleType
.Pinned);
net\PeerToPeer\Collaboration\PeerApplication.cs (1)
265
GCHandle guidHandle = GCHandle.Alloc(guid,
GCHandleType
.Pinned);
net\PeerToPeer\Collaboration\PeerCollaboration.cs (1)
529
descHandle = GCHandle.Alloc(application.Description,
GCHandleType
.Pinned);
net\PeerToPeer\Collaboration\PeerContact.cs (3)
1026
guidHandle = GCHandle.Alloc(guid,
GCHandleType
.Pinned);
1037
GCHandle pepName = GCHandle.Alloc(peerEndPoint.Name,
GCHandleType
.Pinned);
1040
GCHandle peerEP = GCHandle.Alloc(pep,
GCHandleType
.Pinned);
net\PeerToPeer\Collaboration\PeerNearMe.cs (2)
388
GCHandle pepName = GCHandle.Alloc(peerEndPoint.Name,
GCHandleType
.Pinned);
391
GCHandle peerEP = GCHandle.Alloc(pep,
GCHandleType
.Pinned);
net\PeerToPeer\Collaboration\PeerObject.cs (1)
217
GCHandle guidHandle = GCHandle.Alloc(guid,
GCHandleType
.Pinned);
net\PeerToPeer\PeerNameRegistration.cs (4)
339
handle = GCHandle.Alloc(m_PeerNameRecord.Data,
GCHandleType
.Pinned);
401
GCHandles[i] = GCHandle.Alloc(sockaddr,
GCHandleType
.Pinned);
531
GCHandle handle = GCHandle.Alloc(m_PeerNameRecord.Data,
GCHandleType
.Pinned);
584
GCHandles[i] = GCHandle.Alloc(sockaddr,
GCHandleType
.Pinned);
System.Runtime.Remoting (1)
channels\ipc\ipcport.cs (1)
86
GCHandle pinningHandle = GCHandle.Alloc(sd,
GCHandleType
.Pinned);
System.Security (5)
system\security\cryptography\dataprotection.cs (4)
52
pbDataIn = GCHandle.Alloc(userData,
GCHandleType
.Pinned);
58
pOptionalEntropy = GCHandle.Alloc(optionalEntropy,
GCHandleType
.Pinned);
127
pbDataIn = GCHandle.Alloc(encryptedData,
GCHandleType
.Pinned);
133
pOptionalEntropy = GCHandle.Alloc(optionalEntropy,
GCHandleType
.Pinned);
system\security\cryptography\pkcs\pkcsmisc.cs (1)
523
m_gcHandle = GCHandle.Alloc(m_content,
GCHandleType
.Pinned);
System.ServiceModel (10)
System\ServiceModel\Channels\MsmqSubqueueLockingQueue.cs (3)
362
GCHandle propsHandle = GCHandle.Alloc(null,
GCHandleType
.Pinned);
363
GCHandle nativePropertyIdsHandle = GCHandle.Alloc(null,
GCHandleType
.Pinned);
364
GCHandle propHandle = GCHandle.Alloc(null,
GCHandleType
.Pinned);
System\ServiceModel\Channels\NativeMsmqMessage.cs (5)
35
this.nativePropertiesHandle = GCHandle.Alloc(null,
GCHandleType
.Pinned);
36
this.idsHandle = GCHandle.Alloc(null,
GCHandleType
.Pinned);
37
this.variantsHandle = GCHandle.Alloc(null,
GCHandleType
.Pinned);
314
bufferHandle = GCHandle.Alloc(null,
GCHandleType
.Pinned);
433
this.bufferHandle = GCHandle.Alloc(null,
GCHandleType
.Pinned);
System\ServiceModel\Channels\SelfSignedCertificate.cs (2)
128
GCHandle pfxHandle = GCHandle.Alloc(blob,
GCHandleType
.Pinned);
148
pfxHandle = GCHandle.Alloc(blob,
GCHandleType
.Pinned);
System.ServiceModel.Internals (2)
System\Runtime\Diagnostics\EventLogger.cs (2)
143
stringsRootHandle = GCHandle.Alloc(stringRoots,
GCHandleType
.Pinned);
147
stringHandles[strIndex] = GCHandle.Alloc(logValues[strIndex],
GCHandleType
.Pinned);
System.Web (3)
Hosting\ISAPIWorkerRequest.cs (2)
499
_pinnedArrayData = GCHandle.Alloc(_arrayData,
GCHandleType
.Pinned);
562
_pinnedCharBufferHandle = GCHandle.Alloc(_charBuffer,
GCHandleType
.Pinned);
Util\PinnedArraySegment.cs (1)
34
_gcHandle = GCHandle.Alloc(segment.Array,
GCHandleType
.Pinned); // pin the array so that unmanaged code can access it
System.Windows.Forms (5)
winforms\Managed\System\WinForms\ComponentModel\COM2Interop\COM2PropertyDescriptor.cs (1)
1238
GCHandle gcHandle = GCHandle.Alloc(namedArgs,
GCHandleType
.Pinned);
winforms\Managed\System\WinForms\Control.cs (1)
14589
rootRef = GCHandle.Alloc(GetControl(),
GCHandleType
.Normal);
winforms\Managed\System\WinForms\NativeWindow.cs (2)
366
GCHandle root = GCHandle.Alloc(window,
GCHandleType
.Weak);
1228
hashBuckets[bn].window = GCHandle.Alloc(prevWindow,
GCHandleType
.Weak);
winforms\Managed\System\WinForms\NotifyIcon.cs (1)
1016
rootRef = GCHandle.Alloc(reference,
GCHandleType
.Normal);
WindowsBase (1)
Base\MS\Internal\IO\Packaging\CompoundFile\CompoundFileDeflateTransform.cs (1)
378
gcHandle = GCHandle.Alloc(buffer,
GCHandleType
.Pinned); // pinned so unmanaged code can read/write it
WsatConfig (1)
Configuration\HttpWrapper.cs (1)
199
pinnedAddress = GCHandle.Alloc(address,
GCHandleType
.Pinned);
WsatUI (1)
Configuration\HttpWrapper.cs (1)
199
pinnedAddress = GCHandle.Alloc(address,
GCHandleType
.Pinned);