diff options
| author | auth12 <[email protected]> | 2020-07-21 13:07:42 -0700 |
|---|---|---|
| committer | auth12 <[email protected]> | 2020-07-21 13:07:42 -0700 |
| commit | f09669dd5846d95b063712571ccb7519910a0d6e (patch) | |
| tree | 902f5ad201651f2d96ccf619e90b76cfa06a7b9b /client/src/injection/process.h | |
| parent | Syscalls. (diff) | |
| download | loader-f09669dd5846d95b063712571ccb7519910a0d6e.tar.xz loader-f09669dd5846d95b063712571ccb7519910a0d6e.zip | |
Added game selection.
Started process wrapper.
Removed asmjit.
Diffstat (limited to 'client/src/injection/process.h')
| -rw-r--r-- | client/src/injection/process.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/client/src/injection/process.h b/client/src/injection/process.h new file mode 100644 index 0000000..574713a --- /dev/null +++ b/client/src/injection/process.h @@ -0,0 +1,19 @@ +#pragma once + +class process { + int m_id; + std::string m_name; + + HANDLE m_handle = INVALID_HANDLE_VALUE; +public: + process() = default; + process(const SYSTEM_PROCESS_INFORMATION* info); + ~process(); + + bool open(); + bool read(const uintptr_t addr, void* data, const size_t size); + bool write(const uintptr_t addr, void* data, const size_t size); + + auto &get_name() { return m_name; } + auto &get_id() { return m_id; } +};
\ No newline at end of file |