cheat-engine/Cheat Engine/ceserver/extensionfunctions.h
2023-01-19 11:39:13 +01:00

33 lines
1.1 KiB
C
Executable File

/*
* extensionfunctions.h
*
* Created on: Aug 25, 2013
* Author: eric
*/
#ifndef EXTENSIONFUNCTIONS_H_
#define EXTENSIONFUNCTIONS_H_
#include <stdint.h>
#include "ceserver.h"
#include "porthelp.h"
#define EXTCMD_ALLOC 0
#define EXTCMD_FREE 1
#define EXTCMD_CREATETHREAD 2
#define EXTCMD_LOADMODULE 3
#define EXTCMD_SPEEDHACK_SETSPEED 4
#define EXTCMD_CHANGEMEMORYPROTECTION 5
#define EXTCMD_LOADMODULEEX 6
uint64_t ext_alloc(HANDLE hProcess, uint64_t preferedBase, int size, int prot);
int ext_free(HANDLE hProcess, uint64_t address, int size);
uint64_t ext_createThread(HANDLE hProcess, uint64_t startaddress, uint64_t parameter);
int ext_speedhack_setSpeed(HANDLE hProcess, float speed);
uint64_t ext_loadModule(HANDLE hProcess, char *modulepath);
uint64_t ext_loadModuleEx(HANDLE hProcess, uint64_t dlopenaddress, char *modulepath);
int ext_changememoryprotection(HANDLE hProcess, uint64_t address, uint32_t size, uint32_t protection);
#endif /* EXTENSIONFUNCTIONS_H_ */