From 5bbda279685f52693d4f5d9cb1500e295e06fc1e Mon Sep 17 00:00:00 2001 From: auth12 <67507608+auth12@users.noreply.github.com> Date: Sat, 1 Aug 2020 11:15:55 -0700 Subject: Started security. --- client/src/injection/process.h | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) (limited to 'client/src/injection/process.h') diff --git a/client/src/injection/process.h b/client/src/injection/process.h index e5d3f18..74cfccd 100644 --- a/client/src/injection/process.h +++ b/client/src/injection/process.h @@ -25,19 +25,14 @@ namespace util { auto& id() { return m_id; } }; - struct process_data_t { - std::string name; - int id; - }; - struct thread_data_t { - int id; - uintptr_t handle; + HANDLE handle; uint32_t state; }; - struct system_data_t { - std::vector processes; + struct process_data_t { + int id; + std::string name; std::vector threads; }; @@ -64,6 +59,6 @@ namespace util { uint32_t obj_type; }; - bool fetch_system_data(system_data_t& out); + bool fetch_processes(std::vector& out, bool threads = false); bool fetch_process_handles(const int pid, std::vector& out); }; -- cgit v1.2.3