diff options
| author | isanae <14251494+isanae@users.noreply.github.com> | 2019-11-26 04:57:20 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-11-26 04:57:20 -0500 |
| commit | e845126e09357f8713ca0c9f593970c7c634328e (patch) | |
| tree | b3e402809ded25a9d9d7b45e04935a85b96eb0a6 /src/envmodule.h | |
| parent | 36c6dfd5b8c6c87410c7c18fb67fd00a72c29491 (diff) | |
| parent | 5fb785aceecf32d6012bad044027572e02d22a9a (diff) | |
Merge pull request #904 from isanae/lock-job
Use a Job to capture all child processes
Diffstat (limited to 'src/envmodule.h')
| -rw-r--r-- | src/envmodule.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/envmodule.h b/src/envmodule.h index d152b840..c2829b32 100644 --- a/src/envmodule.h +++ b/src/envmodule.h @@ -136,6 +136,7 @@ public: void addChild(Process p); std::vector<Process>& children(); + const std::vector<Process>& children() const; private: DWORD m_pid; @@ -148,7 +149,9 @@ private: std::vector<Process> getRunningProcesses(); std::vector<Module> getLoadedModules(); -Process getProcessTree(HANDLE parent); +// works for both jobs and processes +// +Process getProcessTree(HANDLE h); QString getProcessName(DWORD pid); QString getProcessName(HANDLE process); |
