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