Home | History | Annotate | Download | only in common

Lines Matching refs:HANDLE

223     HANDLE token;
402 BOOL (WINAPI *g_iat_orig_duplicate_handle)(HANDLE source_process_handle,
403 HANDLE source_handle,
404 HANDLE target_process_handle,
413 "You are attempting to duplicate a privileged handle into a sandboxed"
417 void CheckDuplicateHandle(HANDLE handle) {
424 error = g_QueryObject(handle, ObjectTypeInformation, type_info, size, &size);
431 error = g_QueryObject(handle, ObjectBasicInformation, &basic_info, size,
443 BOOL WINAPI DuplicateHandlePatch(HANDLE source_process_handle,
444 HANDLE source_handle,
445 HANDLE target_process_handle,
450 // Duplicate the handle so we get the final access mask.
464 // We need a handle with permission to check the job object.
481 // Duplicate the handle again, to get the final permissions.
482 base::win::ScopedHandle handle;
484 ::GetCurrentProcess(), handle.Receive(),
488 CheckDuplicateHandle(handle);
702 bool BrokerDuplicateHandle(HANDLE source_handle,
704 HANDLE* target_handle,
707 // If our process is the target just duplicate the handle.
736 bool BrokerAddTargetPeer(HANDLE peer_process) {