58 lines
844 B
C++
58 lines
844 B
C++
#pragma once
|
|
#ifndef COMM_PIPE
|
|
#define COMM_PIPE
|
|
#include "Base.h"
|
|
|
|
#define SHARED_NAME "ServerMappingMmeory"
|
|
|
|
|
|
typedef struct _MAPPING_USER_MEMORY
|
|
{
|
|
char str[256];
|
|
|
|
//驱动执行
|
|
DWORD load_driver_code;
|
|
//轮巡
|
|
DWORD add_index_code;
|
|
|
|
DWORD server_pid;
|
|
DWORD client_pid;
|
|
|
|
//轮巡返回数
|
|
DWORD Index;
|
|
|
|
|
|
//返回状态
|
|
BOOL bIsSuc;
|
|
}MAPPING_USER_MEMORY, * PMAPPING_USER_MEMORY;
|
|
|
|
|
|
enum TYPE_COOM
|
|
{
|
|
BASE = 0x1000,
|
|
KD_LOAD_DRIVER,
|
|
ADD_INDEX_VAL,
|
|
};
|
|
|
|
|
|
namespace client_shared_mapping
|
|
{
|
|
//打开共享内存
|
|
auto open_shared_mapping()->HANDLE;
|
|
|
|
//映射共享内存
|
|
auto mapping_shared_memory(HANDLE hMap)->PMAPPING_USER_MEMORY;
|
|
|
|
//启动服务进程
|
|
auto StartServerProcess(CONST char* Path)->BOOL;
|
|
|
|
//启动目标通信进程
|
|
auto anit_cheat_create_process()->BOOL;
|
|
|
|
}
|
|
|
|
extern HANDLE hMapHandle;
|
|
extern PMAPPING_USER_MEMORY pMapping_Memory;
|
|
|
|
#endif // !comm_pipe
|