包含什么/detours.h是什么 [英] What to include / what is detours.h

查看:81
本文介绍了包含什么/detours.h是什么的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有这个代码段.

I have this code segment.

DetourTransactionBegin();
DetourUpdateThread(GetCurrentThread());
DetourAttach(&(PVOID&)Real_DrawText, Mine_DrawText); // <- magic
DetourTransactionCommit();



我正在尝试制作一个dll.但是当我尝试构建它时,出现诸如
之类的错误



I''m trying to make a dll. But when I tried to build it, error such as

error C2065: 'DetourTransactionBegin' : undeclared identifier

.我需要做什么?我需要包含什么?

appears. What do I need to do? What do I need to include?

推荐答案

这是Microsoft提供的用于检测/挂钩Windows API的库.
这是CP的几篇好文章-
具有MS绕行功能的API挂钩 [使用Detours规避Windows组策略 [
It is a library from Microsoft to instrument/hook the windows APIs.
Here are a couple of good articles are CP -
API Hooking with MS Detours[^]
Circumventing Windows Group Policies using Detours[^]


这篇关于包含什么/detours.h是什么的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆