Lines Matching refs:HANDLE
227 HANDLE token;
406 BOOL (WINAPI *g_iat_orig_duplicate_handle)(HANDLE source_process_handle,
407 HANDLE source_handle,
408 HANDLE target_process_handle,
417 "You are attempting to duplicate a privileged handle into a sandboxed"
421 void CheckDuplicateHandle(HANDLE handle) {
428 error = g_QueryObject(handle, ObjectTypeInformation, type_info, size, &size);
435 error = g_QueryObject(handle, ObjectBasicInformation, &basic_info, size,
450 BOOL WINAPI DuplicateHandlePatch(HANDLE source_process_handle,
451 HANDLE source_handle,
452 HANDLE target_process_handle,
457 // Duplicate the handle so we get the final access mask.
471 // We need a handle with permission to check the job object.
473 HANDLE temp_handle;
489 // Duplicate the handle again, to get the final permissions.
490 HANDLE temp_handle;
494 base::win::ScopedHandle handle(temp_handle);
497 CheckDuplicateHandle(handle);
710 bool BrokerDuplicateHandle(HANDLE source_handle,
712 HANDLE* target_handle,
715 // If our process is the target just duplicate the handle.
744 bool BrokerAddTargetPeer(HANDLE peer_process) {