MCPcopy Index your code
hub / github.com/rabbitstack/fibratus / IsProcessRunning

Function IsProcessRunning

pkg/sys/process.go:99–106  ·  view source on GitHub ↗

IsProcessRunning determines whether the process is in a running state.

(proc windows.Handle)

Source from the content-addressed store, hash-verified

97
98// IsProcessRunning determines whether the process is in a running state.
99func IsProcessRunning(proc windows.Handle) bool {
100 var exitcode uint32
101 err := windows.GetExitCodeProcess(proc, &exitcode)
102 if err != nil {
103 return false
104 }
105 return exitcode == ProcessStatusStillActive
106}
107
108// IsProcessPackaged determines if the process is packaged by trying
109// to resolve the package identifier.

Callers 6

ShutdownMethod · 0.92
gcDeadProcessesMethod · 0.92
TestKillActionFunction · 0.92
TestThreadFilterFunction · 0.92
TestYaraFunction · 0.92
TestScanFunction · 0.92

Calls

no outgoing calls

Tested by 4

TestKillActionFunction · 0.74
TestThreadFilterFunction · 0.74
TestYaraFunction · 0.74
TestScanFunction · 0.74