blob: cf1f74c4abb7fb39a059e4bba4b7f4b308bb719b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#ifndef MEMORY_H
#define MEMORY_H
#include <sys/types.h>
void read_memory(pid_t pid, void* src, void* dst, size_t size);
void write_memory(pid_t pid, void* dst, void* src, size_t size);
void* allocate_memory(pid_t pid, size_t size, int protection);
void deallocate_memory(pid_t pid, void* src, size_t size);
void* protect_memory(pid_t pid, void* src, size_t size, int protection);
#endif
|