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

Function GetProcessesList

procsmemory.go:149–153  ·  view source on GitHub ↗

GetProcessesList return PID from running processes

()

Source from the content-addressed store, hash-verified

147
148// GetProcessesList return PID from running processes
149func GetProcessesList() (procsIds []uint32, bytesReturned uint32, err error) {
150 procsIds = make([]uint32, 2048)
151 err = windows.EnumProcesses(procsIds, &bytesReturned)
152 return procsIds, bytesReturned, err
153}
154
155// GetProcessHandle return the process handle from the specified PID
156func GetProcessHandle(pid uint32, desiredAccess uint32) (handle windows.Handle, err error) {

Callers 1

ListProcessFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected