31 references to SetHandle
Infrastructure.Common (1)
SafeKeychainHandle.cs (1)
42SetHandle(IntPtr.Zero);
Microsoft.AspNetCore.Server.HttpSys (1)
NativeInterop\SafeNativeOverlapped.cs (1)
25SetHandle((IntPtr)handle);
Microsoft.CodeAnalysis.Workspaces (9)
Storage\SQLite\Interop\SafeSqliteBlobHandle.cs (3)
25SetHandle(wrapper.DangerousGetHandle()); 30SetHandle(IntPtr.Zero); 48SetHandle(IntPtr.Zero);
Storage\SQLite\Interop\SafeSqliteHandle.cs (3)
24SetHandle(wrapper.DangerousGetHandle()); 29SetHandle(IntPtr.Zero); 43SetHandle(IntPtr.Zero);
Storage\SQLite\Interop\SafeSqliteStatementHandle.cs (3)
25SetHandle(wrapper.DangerousGetHandle()); 30SetHandle(IntPtr.Zero); 48SetHandle(IntPtr.Zero);
PresentationCore (6)
System\Windows\Media\ColorContextHelper.cs (1)
31SetHandle(profile);
System\Windows\Media\ColorTransformHelper.cs (1)
30SetHandle(profile);
System\Windows\Media\Imaging\BitmapSourceSafeMILHandle.cs (1)
40SetHandle(handle);
System\Windows\Media\safemediahandle.cs (1)
25SetHandle(handle);
System\Windows\Media\SafeMILHandle.cs (1)
33SetHandle(handle);
System\Windows\Media\SafeReversePInvokeHandle.cs (1)
38SetHandle(reversePInvokeWrapper);
System.Private.CoreLib (5)
src\libraries\System.Private.CoreLib\src\Microsoft\Win32\SafeHandles\SafeFileHandle.cs (1)
19SetHandle(preexistingHandle);
src\libraries\System.Private.CoreLib\src\Microsoft\Win32\SafeHandles\SafeFileHandle.Unix.cs (1)
53SetHandle(new IntPtr(-1));
src\libraries\System.Private.CoreLib\src\Microsoft\Win32\SafeHandles\SafeWaitHandle.cs (1)
24SetHandle(existingHandle);
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\Marshal.cs (1)
1322safeHandle.SetHandle(handle);
src\libraries\System.Private.CoreLib\src\System\Security\SecureString.cs (1)
429buffer.SetHandle(Marshal.AllocHGlobal(byteLength));
System.Text.Encoding.CodePages (1)
Microsoft\Win32\SafeHandles\SafeAllocHHandle.cs (1)
16SetHandle(handle);
UIAutomationClient (3)
MS\Internal\Automation\SafeProcessHandle.cs (1)
28SetHandle(Misc.OpenProcess(UnsafeNativeMethods.PROCESS_QUERY_INFORMATION | UnsafeNativeMethods.PROCESS_VM_READ, false, processId, hwnd));
System\Windows\Automation\Condition.cs (2)
44sh.SetHandle(mem); 61sh.SetHandle(mem);
UIAutomationClientSideProviders (4)
MS\Internal\AutomationProxies\CommonRemoteMemoryBlock.cs (1)
42SetHandle(Misc.VirtualAllocEx(_processHandle, IntPtr.Zero, new UIntPtr((uint)cbSize), UnsafeNativeMethods.MEM_COMMIT, UnsafeNativeMethods.PAGE_READWRITE));
MS\Internal\AutomationProxies\SafeCoTaskMem.cs (1)
18SetHandle(Marshal.AllocCoTaskMem(length * sizeof (char)));
MS\Internal\AutomationProxies\SafeProcessHandle.cs (1)
32SetHandle(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)
23SetHandle(preexistingHandle);
UIAutomationTypes (1)
src\Microsoft.DotNet.Wpf\src\Shared\MS\Win32\NativeMethodsOther.cs (1)
556 base.SetHandle(existingHandle);