129 references to SetHandle
mscorlib (22)
microsoft\win32\safehandles\safefilehandle.cs (1)
35SetHandle(preexistingHandle);
microsoft\win32\safehandles\safefilemappinghandle.cs (1)
35SetHandle(handle);
microsoft\win32\safehandles\safelocalallochandle.cs (1)
15SetHandle(handle);
microsoft\win32\safehandles\saferegistryhandle.cs (1)
31SetHandle(preexistingHandle);
microsoft\win32\safehandles\safeviewoffilehandle.cs (1)
36SetHandle(handle);
microsoft\win32\safehandles\safewaithandle.cs (1)
40SetHandle(existingHandle);
system\io\isolatedstorage\isolatedstoragefile.cs (1)
2795SetHandle(IntPtr.Zero);
system\security\cryptography\safecryptohandles.cs (6)
32SetHandle(IntPtr.Zero); 36SetHandle(handle); 72SetHandle(IntPtr.Zero); 76SetHandle(handle); 108SetHandle(IntPtr.Zero); 112SetHandle(handle);
system\security\cryptography\x509certificates\safex509handles.cs (2)
28SetHandle(handle); 71SetHandle(handle);
system\security\safesecurityhandles.cs (7)
23SetHandle(handle); 52SetHandle(handle); 73SetHandle(handle); 93SetHandle(handle); 113SetHandle(handle); 134SetHandle(handle); 156SetHandle(handle);
PresentationCore (6)
Core\CSharp\System\Windows\Media\ColorContextHelper.cs (1)
57SetHandle(profile);
Core\CSharp\System\Windows\Media\ColorTransformHelper.cs (1)
56SetHandle(profile);
Core\CSharp\System\Windows\Media\Imaging\BitmapSourceSafeMILHandle.cs (1)
60SetHandle(handle);
Core\CSharp\System\Windows\Media\SafeMediaHandle.cs (1)
44SetHandle(handle);
Core\CSharp\System\Windows\Media\SafeMILHandle.cs (1)
46SetHandle(handle);
Core\CSharp\System\Windows\Media\SafeReversePInvokeHandle.cs (1)
61SetHandle(reversePInvokeWrapper);
System (18)
compmod\microsoft\win32\safehandles\SafeLocalMemHandle.cs (1)
37SetHandle(existingHandle);
compmod\microsoft\win32\safehandles\SafeProcessHandle.cs (2)
37SetHandle(handle); 42SetHandle(existingHandle);
compmod\microsoft\win32\safehandles\SafeThreadHandle.cs (1)
35base.SetHandle(h);
compmod\microsoft\win32\safehandles\SafeUserTokenHandle.cs (1)
37SetHandle(existingHandle);
net\System\Net\_SafeNetHandles.cs (7)
829SetHandle(handle); 835SetHandle(handle); 939SetHandle(criteriaArray); 2355SetHandle(handle); 2437SetHandle(socket.DangerousGetHandle()); 2974SetHandle(IntPtr.Zero); 3009handle.SetHandle((IntPtr)1);
security\system\security\cryptography\cryptoapi.cs (6)
3950SetHandle(handle); 3984SetHandle(handle); 4018SetHandle(handle); 4055SetHandle(handle); 4088SetHandle(handle); 4131SetHandle(handle);
System.Configuration (3)
Microsoft\Win32\SafeCryptContextHandle.cs (1)
24SetHandle(handle);
Microsoft\Win32\SafeNativeMemoryHandle.cs (2)
31SetHandle(handle); 35SetHandle(handle);
System.Core (17)
Microsoft\Win32\SafeHandles\CapiSafeHandles.cs (3)
207handle.SetHandle(IntPtr.Zero); 265handle.SetHandle(IntPtr.Zero); 396duplicate.SetHandle(originalHandle);
Microsoft\Win32\SafeHandles\NCryptSafeHandles.cs (5)
99SetHandle(handle); 271duplicate.SetHandle(Holder.DangerousGetHandle()); 310holder.SetHandle(DangerousGetHandle()); 325duplicate.SetHandle(holder.DangerousGetHandle()); 423SetHandle(newHandleValue);
Microsoft\Win32\SafeHandles\SafeMemoryMappedFileHandle.cs (1)
40SetHandle(handle);
Microsoft\Win32\SafeHandles\SafeMemoryMappedViewHandle.cs (1)
42base.SetHandle(handle);
Microsoft\Win32\SafeHandles\SafePipeHandle.cs (1)
30SetHandle(preexistingHandle);
System\Diagnostics\Eventing\Reader\CoTaskMemSafeHandle.cs (1)
35SetHandle(handle);
System\Diagnostics\Eventing\Reader\CoTaskMemUnicodeSafeHandle.cs (2)
36SetHandle(handle); 40SetHandle(handle);
System\Diagnostics\Eventing\Reader\EventLogHandle.cs (1)
38SetHandle(handle);
System\Security\Cryptography\CapiNative.cs (1)
1009SetHandle(handle);
System\Security\Cryptography\X509Certificates\X509Native.cs (1)
491SetHandle(handle);
System.Data (3)
fx\src\data\System\Data\SQLTypes\SQLFileStream.cs (3)
897SetHandle ( pbBuffer ); 985SetHandle ( pbBuffer ); 1064SetHandle ( pbBuffer );
System.Drawing (2)
commonui\System\Drawing\Advanced\SafeCustomLineCapHandle.cs (1)
26SetHandle(h);
commonui\System\Drawing\Printing\PrintController.cs (1)
44SetHandle(handle);
System.IdentityModel (10)
System\IdentityModel\CryptoApi.cs (3)
356SetHandle(handle); 383SetHandle(handle); 409SetHandle(handle);
System\IdentityModel\SafeCryptHandles.cs (2)
24SetHandle(handle); 51SetHandle(handle);
System\IdentityModel\SspiSafeHandles.cs (5)
1369SetHandle(handle); 1398SetHandle(handle); 1448result.SetHandle(ptr); 1462SetHandle(handle); 1485SetHandle(handle);
System.IdentityModel.Selectors (1)
infocard\common\managed\HGlobalSafeHandle.cs (1)
58SetHandle(toManage);
System.Messaging (1)
System\Messaging\Interop\SafeHandles.cs (1)
127SetHandle(existingHandle);
System.Net (9)
net\PeerToPeer\Collaboration\UnsafeCollabNativeMethods.cs (6)
39SetHandle(IntPtr.Zero); //Mark it invalid - Change the value to Zero 63SetHandle(IntPtr.Zero); //Mark it invalid - Change the value to Zero 87SetHandle(IntPtr.Zero); //Mark it invalid - Change the value to Zero 111SetHandle(IntPtr.Zero); //Mark it invalid - Change the value to Zero 147SetHandle(IntPtr.Zero); //Mark it invalid - Change the value to Zero 169SetHandle(IntPtr.Zero); //Mark it invalid - Change the value to Zero
net\PeerToPeer\UnsafePeerToPeerMethods.cs (3)
196SetHandle(IntPtr.Zero); //Mark it invalid - Change the value to Zero 217SetHandle(IntPtr.Zero); //Mark it invalid - Change the value to Zero 237SetHandle(IntPtr.Zero); //Mark it invalid - Change the value to Zero
System.Security (9)
system\security\cryptography\cryptoapi.cs (9)
2952SetHandle(handle); 2985SetHandle(handle); 2989SetHandle(handle); 3004SetHandle(handle); 3045SetHandle(IntPtr.Zero); 3068SetHandle(handle); 3099SetHandle(handle); 3129SetHandle(handle); 3159SetHandle(handle);
System.ServiceModel (4)
System\ServiceModel\Activation\ListenerUnsafeNativeMethods.cs (1)
255SetHandle(handle);
System\ServiceModel\Channels\ChannelBindingUtility.cs (2)
265base.SetHandle(Marshal.AllocHGlobal(bytesToAllocate)); 272base.SetHandle(IntPtr.Zero);
System\ServiceModel\Channels\UnsafeNativeMethods.cs (1)
1206SetHandle(handle);
System.ServiceModel.Activation (2)
System\ServiceModel\Activation\Interop\SafeHGlobalHandleCritical.cs (2)
30SetHandle(handle); 80result.SetHandle(ptr);
System.Web (2)
HttpChannelBindingToken.cs (2)
24SetHandle(token); 29SetHandle(IntPtr.Zero);
UIAutomationClient (3)
MS\Internal\Automation\SafeProcessHandle.cs (1)
47SetHandle(Misc.OpenProcess(UnsafeNativeMethods.PROCESS_QUERY_INFORMATION | UnsafeNativeMethods.PROCESS_VM_READ, false, processId, hwnd));
System\Windows\Automation\Condition.cs (2)
61sh.SetHandle(mem); 81sh.SetHandle(mem);
UIAutomationClientsideProviders (4)
MS\Internal\AutomationProxies\CommonRemoteMemoryBlock.cs (1)
54SetHandle(Misc.VirtualAllocEx(_processHandle, IntPtr.Zero, new UIntPtr((uint)cbSize), UnsafeNativeMethods.MEM_COMMIT, UnsafeNativeMethods.PAGE_READWRITE));
MS\Internal\AutomationProxies\SafeCoTaskMem.cs (1)
32SetHandle(Marshal.AllocCoTaskMem(length * sizeof (char)));
MS\Internal\AutomationProxies\SafeProcessHandle.cs (1)
46SetHandle(Misc.OpenProcess(NativeMethods.PROCESS_QUERY_INFORMATION | NativeMethods.PROCESS_VM_OPERATION | NativeMethods.PROCESS_VM_READ | NativeMethods.PROCESS_VM_WRITE, false, processId, hwnd));
MS\Internal\AutomationProxies\SafeThemeHandle.cs (1)
35SetHandle(preexistingHandle);
WindowsBase (7)
Base\MS\Internal\Security\RightsManagement\SafeRightsManagementEnvironmentHandle.cs (1)
63base.SetHandle(IntPtr.Zero);
Base\MS\Internal\Security\RightsManagement\SafeRightsManagementHandle.cs (1)
63base.SetHandle(IntPtr.Zero);
Base\MS\Internal\Security\RightsManagement\SafeRightsManagementPubHandle.cs (1)
63base.SetHandle(IntPtr.Zero);
Base\MS\Internal\Security\RightsManagement\SafeRightsManagementQueryHandle.cs (1)
63base.SetHandle(IntPtr.Zero);
Base\MS\Internal\Security\RightsManagement\SafeRightsManagementSessionHandle.cs (1)
63base.SetHandle(IntPtr.Zero);
Shared\MS\Win32\NativeMethodsOther.cs (1)
702 base.SetHandle(existingHandle);
Shared\MS\Win32\UnsafeNativeMethodsOther.cs (1)
547SetHandle(handle);
WsatConfig (2)
Configuration\SafeLocalAllocation.cs (1)
24SetHandle(pointer);
Configuration\SafeRegistryKey.cs (1)
24SetHandle(preexistingHandle);
WsatUI (4)
Configuration\SafeLocalAllocation.cs (2)
24SetHandle(pointer); 35SetHandle(pointer);
Configuration\SafeRegistryKey.cs (1)
24SetHandle(preexistingHandle);
MMCUI\SafePropertyPage.cs (1)
21SetHandle(SafeNativeMethods.CreatePropertySheetPage(ref psp));