Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for OpenProcess (0.16 sec)

  1. src/os/exec_windows.go

    }
    
    func findProcess(pid int) (p *Process, err error) {
    	const da = syscall.STANDARD_RIGHTS_READ |
    		syscall.PROCESS_QUERY_INFORMATION | syscall.SYNCHRONIZE
    	h, e := syscall.OpenProcess(da, false, uint32(pid))
    	if e != nil {
    		return nil, NewSyscallError("OpenProcess", e)
    	}
    	return newHandleProcess(pid, uintptr(h)), nil
    }
    
    func init() {
    	cmd := windows.UTF16PtrToString(syscall.GetCommandLine())
    	if len(cmd) == 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 22:06:47 UTC 2024
    - 5K bytes
    - Viewed (0)
  2. src/syscall/exec_windows_test.go

    		parent.Wait()
    	}()
    
    	// run child process
    
    	const _PROCESS_CREATE_PROCESS = 0x0080
    	const _PROCESS_DUP_HANDLE = 0x0040
    	childDumpPath := filepath.Join(t.TempDir(), "ppid.txt")
    	ph, err := syscall.OpenProcess(_PROCESS_CREATE_PROCESS|_PROCESS_DUP_HANDLE|syscall.PROCESS_QUERY_INFORMATION,
    		false, uint32(parent.Process.Pid))
    	if err != nil {
    		t.Fatal(err)
    	}
    	defer syscall.CloseHandle(ph)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 05 23:35:29 UTC 2023
    - 3.1K bytes
    - Viewed (0)
  3. platforms/core-runtime/launcher/src/integTest/groovy/org/gradle/launcher/daemon/ProcessCrashHandlingIntegrationTest.groovy

                    // AttachConsole also returns ERROR_GEN_FAILURE when the process
                    // doesn't exist, so we need to verify that the pid is valid.
                    if (OpenProcess(SYNCHRONIZE, FALSE, pid) == NULL) {
                        ErrorExit(TEXT("OpenProcess"));
                    }
    
                    // We expect AttachConsole to fail with a particular error if the
                    // provided pid is not attached to a console
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:29:13 UTC 2023
    - 12.1K bytes
    - Viewed (0)
  4. src/os/exec.go

    	// modeHandle.
    	//
    	// handle must be accessed only via the handleTransientAcquire method
    	// (or during closeHandle), not directly! handle is immutable.
    	//
    	// On Windows, it is a handle from OpenProcess.
    	// On Linux, it is a pidfd.
    	// It is unused on other GOOSes.
    	handle uintptr
    }
    
    func newPIDProcess(pid int) *Process {
    	p := &Process{
    		Pid:  pid,
    		mode: modePID,
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 22:06:47 UTC 2024
    - 12.8K bytes
    - Viewed (0)
  5. src/syscall/zsyscall_windows.go

    	procMapViewOfFile                      = modkernel32.NewProc("MapViewOfFile")
    	procMoveFileW                          = modkernel32.NewProc("MoveFileW")
    	procOpenProcess                        = modkernel32.NewProc("OpenProcess")
    	procPostQueuedCompletionStatus         = modkernel32.NewProc("PostQueuedCompletionStatus")
    	procProcess32FirstW                    = modkernel32.NewProc("Process32FirstW")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 21 11:49:46 UTC 2024
    - 56.3K bytes
    - Viewed (0)
  6. src/runtime/syscall_windows_test.go

    		}
    	}()
    
    	defer func() {
    		err = resumeChildThread(kernel32, cmd.Process.Pid)
    		if err != nil {
    			t.Fatal(err)
    		}
    	}()
    
    	ph, err := syscall.OpenProcess(_PROCESS_ALL_ACCESS, false, uint32(cmd.Process.Pid))
    	if err != nil {
    		t.Fatal(err)
    	}
    	defer syscall.CloseHandle(ph)
    
    	var mask, sysmask uintptr
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Aug 31 16:31:35 UTC 2023
    - 32.5K bytes
    - Viewed (0)
  7. src/syscall/syscall_windows.go

    //sys	OpenProcess(da uint32, inheritHandle bool, pid uint32) (handle Handle, err error)
    //sys	TerminateProcess(handle Handle, exitcode uint32) (err error)
    //sys	GetExitCodeProcess(handle Handle, exitcode *uint32) (err error)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 21 11:49:46 UTC 2024
    - 52.7K bytes
    - Viewed (0)
  8. src/cmd/vendor/golang.org/x/sys/windows/zsyscall_windows.go

    	procOpenMutexW                                           = modkernel32.NewProc("OpenMutexW")
    	procOpenProcess                                          = modkernel32.NewProc("OpenProcess")
    	procOpenThread                                           = modkernel32.NewProc("OpenThread")
    	procPostQueuedCompletionStatus                           = modkernel32.NewProc("PostQueuedCompletionStatus")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 195.8K bytes
    - Viewed (0)
  9. src/cmd/vendor/golang.org/x/sys/windows/syscall_windows.go

    //sys   updateProcThreadAttribute(attrlist *ProcThreadAttributeList, flags uint32, attr uintptr, value unsafe.Pointer, size uintptr, prevvalue unsafe.Pointer, returnedsize *uintptr) (err error) = UpdateProcThreadAttribute
    //sys	OpenProcess(desiredAccess uint32, inheritHandle bool, processId uint32) (handle Handle, err error)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 05 22:18:42 UTC 2024
    - 82.8K bytes
    - Viewed (0)
  10. src/cmd/vendor/golang.org/x/tools/internal/stdlib/manifest.go

    		{"O_SYMLINK", Const, 0},
    		{"O_SYNC", Const, 0},
    		{"O_TRUNC", Const, 0},
    		{"O_TTY_INIT", Const, 0},
    		{"O_WRONLY", Const, 0},
    		{"Open", Func, 0},
    		{"OpenCurrentProcessToken", Func, 0},
    		{"OpenProcess", Func, 0},
    		{"OpenProcessToken", Func, 0},
    		{"Openat", Func, 0},
    		{"Overlapped", Type, 0},
    		{"Overlapped.HEvent", Field, 0},
    		{"Overlapped.Internal", Field, 0},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 534.2K bytes
    - Viewed (0)
Back to top