Home | History | Annotate | Download | only in base

Lines Matching refs:HANDLE

49 typedef BOOL (WINAPI* HeapSetFn)(HANDLE, HEAP_INFORMATION_CLASS, PVOID, SIZE_T);
107 bool OpenProcessHandle(ProcessId pid, ProcessHandle* handle) {
108 // We try to limit privileges granted to the handle. If you need this
117 *handle = result;
121 bool OpenPrivilegedProcessHandle(ProcessId pid, ProcessHandle* handle) {
132 *handle = result;
138 ProcessHandle* handle) {
144 *handle = result;
153 // Get a handle to |process| that has PROCESS_QUERY_INFORMATION rights.
154 HANDLE current_process = GetCurrentProcess();
155 HANDLE process_with_query_rights;
176 HANDLE process_token;
240 // If the caller wants the process handle, we won't close it.
314 HANDLE process = OpenProcess(PROCESS_TERMINATE | SYNCHRONIZE,
315 FALSE, // Don't inherit handle
328 HANDLE out_read = NULL;
329 HANDLE out_write = NULL;
347 // Ensure the read handle to the pipe for STDOUT is not inherited.
374 // We don't need the thread handle, close it now.
412 TerminationStatus GetTerminationStatus(ProcessHandle handle, int* exit_code) {
415 if (!::GetExitCodeProcess(handle, &tmp_exit_code)) {
434 DWORD wait_result = WaitForSingleObject(handle, 0);
466 bool WaitForExitCode(ProcessHandle handle, int* exit_code) {
467 bool success = WaitForExitCodeWithTimeout(handle, exit_code, INFINITE);
468 CloseProcessHandle(handle);
472 bool WaitForExitCodeWithTimeout(ProcessHandle handle, int* exit_code,
474 if (::WaitForSingleObject(handle, timeout_milliseconds) != WAIT_OBJECT_0)
477 if (!::GetExitCodeProcess(handle, &temp_code))
527 HANDLE process = OpenProcess(SYNCHRONIZE,
538 bool WaitForSingleProcess(ProcessHandle handle, int64 wait_milliseconds) {
539 bool retval = WaitForSingleObject(handle, wait_milliseconds) == WAIT_OBJECT_0;
835 scoped_array<HANDLE> heaps(new HANDLE[number_heaps + MARGIN]);