Files
mir_server/sdk/utils/nonuse/cp.h

30 lines
825 B
C
Raw Normal View History

2025-01-09 17:45:40 +08:00
#ifndef _CODE_PATCH_SETUP_H_
#define _CODE_PATCH_SETUP_H_
/************************************************************************/
/*
/* 运行时函数代码补丁安装库
/*
/*
/* 函数代码补丁的实现原理为在原始代码位置写入跳转指令跳转到新的函数位置。期间用到内存
/* 页属性更改函数VirtualProtect。
/*
/************************************************************************/
#ifdef __cplusplus
extern "C"{
#endif
/*
* Comments:
* Param void * dest:
* Param void * src:
* @Return int: 0
*/
int patchFunction(void *dest, void *src);
#ifdef __cplusplus
};
#endif
#endif _CODE_PATCH_SETUP_H_