MCPcopy Index your code
hub / github.com/codeyourweb/irma / GetProcessHandle

Function GetProcessHandle

procsmemory.go:156–159  ·  view source on GitHub ↗

GetProcessHandle return the process handle from the specified PID

(pid uint32, desiredAccess uint32)

Source from the content-addressed store, hash-verified

154
155// GetProcessHandle return the process handle from the specified PID
156func GetProcessHandle(pid uint32, desiredAccess uint32) (handle windows.Handle, err error) {
157 handle, err = windows.OpenProcess(desiredAccess, false, pid)
158 return handle, err
159}
160
161// GetProcessModulesHandles list modules handles from a process handle
162func GetProcessModulesHandles(procHandle windows.Handle) (processFilename string, modules []syscall.Handle, err error) {

Callers 2

ListProcessFunction · 0.85
KillProcessByIDFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected