Seregon/Hermes

Hermes/Dyforge is a program written in c++ allows you to inject a dll that can analyze all processes in a program, can be used for mod and reverse engeneering

C/3.8 KB/No license
DyMain/include/SharedMemoryLayout.h
Hermes / DyMain / include / SharedMemoryLayout.h
1#pragma once
2 
3#include <windows.h>
4 
5#ifdef _WIN32
6 #ifdef DYMAIN_EXPORTS
7 #define DYMAIN_API __declspec(dllexport)
8 #else
9 #define DYMAIN_API __declspec(dllimport)
10 #endif
11#else
12 #define DYMAIN_API
13#endif
14 
15namespace DyMain::SharedMemory {
16 // Costanti
17 constexpr size_t HEADER_SIZE = 1024;
18 constexpr size_t COMMAND_BUFFER_SIZE = 4096;
19 constexpr size_t STATE_BUFFER_SIZE = 4096;
20 constexpr size_t TOTAL_SIZE = HEADER_SIZE + COMMAND_BUFFER_SIZE + STATE_BUFFER_SIZE;
21 
22 // Funzioni di gestione della memoria condivisa
23 DYMAIN_API bool CreateSharedMemory();
24 DYMAIN_API void CloseSharedMemory();
25
26 // Funzioni di gestione dei comandi
27 DYMAIN_API DWORD WINAPI ProcessCommands(LPVOID lpParam);
28
29 // Funzioni di gestione degli hook
30 DYMAIN_API bool InjectHooks();
31 DYMAIN_API void RemoveHooks();
32}