14 instantiations of SafeProcessHandle
UIAutomationClientsideProviders (14)
MS\Internal\AutomationProxies\CommonXSendMessage.cs (12)
78
using (SafeProcessHandle hProcess = new
SafeProcessHandle
(hwnd))
188
using (SafeProcessHandle hProcess = new
SafeProcessHandle
(hwnd))
225
using (SafeProcessHandle hProcess = new
SafeProcessHandle
(hwnd))
272
using (SafeProcessHandle hProcess = new
SafeProcessHandle
(hwnd))
319
using (SafeProcessHandle hProcess = new
SafeProcessHandle
(hwnd))
370
using (SafeProcessHandle hProcess = new
SafeProcessHandle
(hwnd))
1171
using (SafeProcessHandle hProcess = new
SafeProcessHandle
(hwnd))
1249
using (SafeProcessHandle hProcess = new
SafeProcessHandle
(hwnd))
1370
using (SafeProcessHandle hProcess = new
SafeProcessHandle
(hwnd))
1418
using (SafeProcessHandle hProcess = new
SafeProcessHandle
(hwnd))
1466
using (SafeProcessHandle hProcess = new
SafeProcessHandle
(hwnd))
1487
using (SafeProcessHandle hProcess = new
SafeProcessHandle
(hwnd))
MS\Internal\AutomationProxies\WindowsMenu.cs (1)
2605
using (SafeProcessHandle hProcess = new
SafeProcessHandle
(_hwnd))
MS\Internal\AutomationProxies\WindowsTreeView.cs (1)
1600
using (SafeProcessHandle hProcess = new
SafeProcessHandle
(_hwnd))
29 references to SafeProcessHandle
UIAutomationClientsideProviders (29)
MS\Internal\AutomationProxies\CommonRemoteMemoryBlock.cs (2)
50
internal RemoteMemoryBlock(int cbSize,
SafeProcessHandle
processHandle) : base(true)
165
private
SafeProcessHandle
_processHandle; // Handle of remote process
MS\Internal\AutomationProxies\CommonXSendMessage.cs (12)
78
using (
SafeProcessHandle
hProcess = new SafeProcessHandle(hwnd))
188
using (
SafeProcessHandle
hProcess = new SafeProcessHandle(hwnd))
225
using (
SafeProcessHandle
hProcess = new SafeProcessHandle(hwnd))
272
using (
SafeProcessHandle
hProcess = new SafeProcessHandle(hwnd))
319
using (
SafeProcessHandle
hProcess = new SafeProcessHandle(hwnd))
370
using (
SafeProcessHandle
hProcess = new SafeProcessHandle(hwnd))
1171
using (
SafeProcessHandle
hProcess = new SafeProcessHandle(hwnd))
1249
using (
SafeProcessHandle
hProcess = new SafeProcessHandle(hwnd))
1370
using (
SafeProcessHandle
hProcess = new SafeProcessHandle(hwnd))
1418
using (
SafeProcessHandle
hProcess = new SafeProcessHandle(hwnd))
1466
using (
SafeProcessHandle
hProcess = new SafeProcessHandle(hwnd))
1487
using (
SafeProcessHandle
hProcess = new SafeProcessHandle(hwnd))
MS\Internal\AutomationProxies\Misc.cs (6)
896
internal static bool IsWow64Process(MS.Internal.AutomationProxies.
SafeProcessHandle
hProcess, out bool Wow64Process)
1401
internal static bool ReadProcessMemory(MS.Internal.AutomationProxies.
SafeProcessHandle
hProcess, IntPtr source, IntPtr dest, IntPtr size, out IntPtr bytesRead)
1414
internal static bool ReadProcessMemory(MS.Internal.AutomationProxies.
SafeProcessHandle
hProcess, IntPtr source, MS.Internal.AutomationProxies.SafeCoTaskMem destAddress, IntPtr size, out IntPtr bytesRead)
1789
internal static IntPtr VirtualAllocEx(MS.Internal.AutomationProxies.
SafeProcessHandle
hProcess, IntPtr address, UIntPtr size, int allocationType, int protect)
1815
internal static bool VirtualFreeEx(MS.Internal.AutomationProxies.
SafeProcessHandle
hProcess, IntPtr address, UIntPtr size, int freeType)
1828
internal static bool WriteProcessMemory(MS.Internal.AutomationProxies.
SafeProcessHandle
hProcess, IntPtr dest, IntPtr sourceAddress, IntPtr size, out IntPtr bytesWritten)
MS\Internal\AutomationProxies\WindowsMenu.cs (1)
2605
using (
SafeProcessHandle
hProcess = new SafeProcessHandle(_hwnd))
MS\Internal\AutomationProxies\WindowsTreeView.cs (1)
1600
using (
SafeProcessHandle
hProcess = new SafeProcessHandle(_hwnd))
MS\Win32\UnsafeNativeMethods.cs (7)
49
internal static extern bool IsWow64Process(MS.Internal.AutomationProxies.
SafeProcessHandle
hProcess, out bool Wow64Process);
51
public static extern int NtQueryInformationProcess(MS.Internal.AutomationProxies.
SafeProcessHandle
hProcess, int query, ref ulong info, int size, int[] returnedSize);
63
internal static extern IntPtr VirtualAllocEx(MS.Internal.AutomationProxies.
SafeProcessHandle
hProcess, IntPtr address, UIntPtr size, int allocationType, int protect);
67
internal static extern bool VirtualFreeEx(MS.Internal.AutomationProxies.
SafeProcessHandle
hProcess, IntPtr address, UIntPtr size, int freeType);
77
internal static extern bool ReadProcessMemory(MS.Internal.AutomationProxies.
SafeProcessHandle
hProcess, IntPtr Source, IntPtr Dest, IntPtr /*SIZE_T*/ size, out IntPtr /*SIZE_T*/ bytesRead);
79
internal static extern bool ReadProcessMemory(MS.Internal.AutomationProxies.
SafeProcessHandle
hProcess, IntPtr Source, MS.Internal.AutomationProxies.SafeCoTaskMem destAddress, IntPtr /*SIZE_T*/ size, out IntPtr /*SIZE_T*/ bytesRead);
81
internal static extern bool WriteProcessMemory(MS.Internal.AutomationProxies.
SafeProcessHandle
hProcess, IntPtr Dest, IntPtr sourceAddress, IntPtr /*SIZE_T*/ size, out IntPtr /*SIZE_T*/ bytesWritten);