[MetaHook] SearchPattern function】的更多相关文章

By Nagi void *SearchPattern(void *pStartSearch, DWORD dwSearchLen, char *pPattern, DWORD dwPatternLen) { DWORD dwStartAddr = (DWORD)pStartSearch; DWORD dwEndAddr = dwStartAddr + dwSearchLen - dwPatternLen; while (dwStartAddr < dwEndAddr) { bool found…
现在我们在工作中,在开发中都会或多或少的用到图表统计数据显示给用户.通过图表可以很直观的,直接的将数据呈现出来.这里我就介绍说一下利用百度开源的echarts图表技术实现的具体功能. 1.对于不太理解echarts是个怎样技术的开发者来说,可以到echarts官网进行学习了解,官网有详细的API文档和实例供大家参考学习. 2.以下是我在工作中实现整理出来的实例源码: 公用的支持js文件 echarts.js.echarts.min.js,还有其他的图表需要支持的js文件也可以到官网下载 echa…
Find a non-public function signature, we need a tool "IDA Pro" ( You can open picture in a new window :D ) Step 1 Load your PE file in IDA Step 2 Find your function, you can use F5 to decompile a function You can refer to the string and function…
Quake OpenGL function for MetaHook plugin. Thank hzqst :D QGL.h #ifndef QGL_H #define QGL_H #include <gl/gl.h> #include <gl/glext.h> extern void (APIENTRY *qglAccum)(GLenum op, GLfloat value); extern void (APIENTRY *qglAlphaFunc)(GLenum func,…
QFMOD.h #ifndef QFMOD_H #define QFMOD_H #include "fmod.h" extern FMOD_RESULT (F_API *qFMOD_Memory_Initialize)(void *poolmem, int poollen, FMOD_MEMORY_ALLOCCALLBACK useralloc, FMOD_MEMORY_REALLOCCALLBACK userrealloc, FMOD_MEMORY_FREECALLBACK user…
If you want to play Bink video in game, maybe you need this code. QBink.h #ifndef QBINK_H #define QBINK_H #include "bink.h" extern void PTR4* (RADEXPLINK *qBinkLogoAddress)(void); extern void (RADEXPLINK *qBinkSetError)(const char PTR4* err); ex…
Hook GameUI function. #include <metahook.h> #include <IGameUI.h> IGameUI *g_pGameUI = ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; class CGameUI : public IGameUI { public: void Initialize(CreateInterfaceFn *factories, int count); void Start(struct…
Hook IBaseUI function. #include <metahook.h> #include <IBaseUI.h> IBaseUI *g_pBaseUI = ; ; ; ; ; ; ; ; ; ; ; ; class CBaseUI : public IBaseUI { public: void Initialize(CreateInterfaceFn *factories, int count); void Start(struct cl_enginefuncs_…
Hook ISurface function. #include <metahook.h> #include <vgui/ISurface.h> using namespace vgui; ISurface *g_pSurface = ; ; ; VPANEL (__fastcall *g_pfnCSurface_GetEmbeddedPanel)(; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; IHTML* (__fastcall *g_pfnCSur…
We need hook "GL_LoadTexture" engine function. GL_LOADTEXTURE_SIG from hw.dll(3266) engine, can not use for other engine version. #include <metahook.h> #include "qgl.h" #include "surface.h" extern DWORD g_dwEngineBase,…