简体   繁体   English

DirectX 9,10挂钩以覆盖全屏游戏上的内容

[英]DirectX 9, 10 Hooking to overlay content on a fullscreen game

I am looking to create content over a game much like xfire or fraps 我希望在游戏中创建内容,就像xfire或fraps一样

I understand what they are doing full and well, and I hate asking for help, I like to be independent. 我明白他们做得很好,我讨厌寻求帮助,我喜欢独立。

I have tried EVERYTHING to get some code working to where I can draw on top of a fullscreen game. 我已经尝试了一切,以便在全屏游戏的基础上绘制一些代码。 I have tried it with C++, C#, with EasyHook...you name it. 我用C ++,C#和EasyHook尝试过它......你说出来了。

all the source code examples I have used give me errors or break in Visual Studio 2010. ideally I want to program it in C# but I have also tried examples in C++, the biggest problem I have had with C++ programs is getting detours.h, and other required header files, I tried installing it, but that didn't work, couldn't find the detours.h file on my system to include it in my solution, and I couldn't find it online with the matching .lib... 我使用的所有源代码示例都给我带来错误或者在Visual Studio 2010中中断。理想情况下我想用C#编程,但我也尝试过用C ++编写的例子,我在C ++程序中遇到的最大问题是得到detours.h,和其他必需的头文件,我尝试安装它,但是没有用,找不到我系统上的detours.h文件将它包含在我的解决方案中,我找不到匹配的.lib在线...

needless to say this has been the most frustrating 10 hours of my life. 不用说,这是我一生中最令人沮丧的10个小时。 I am at my breaking point and what I need is someone to step me through some code that works in Visual Studio 2010 on Windows 7 x64. 我正处在我的突破点,我需要的是有人指导我在Windows 7 x64上的Visual Studio 2010中运行的一些代码。 Once I get some code that allows me to draw on top of a fullscreen directX program, I can rip it apart and figure out how it ticks...thanks. 一旦我得到一些允许我在全屏directX程序之上绘制的代码,我就可以把它拆开并弄清楚它是如何滴答的......谢谢。

I would be eternally grateful to anyone who can step me through some code to get it to work, you have no idea. 我会永远感激任何能够指导我完成某些代码才能让它发挥作用的人,你不知道。

Here you can find a sample code for directx 10 hooking. 在这里,您可以找到directx 10挂钩的示例代码。

http://www.codeforfun.it/2013/09/07/d3d10-proxy-dll-c/ http://www.codeforfun.it/2013/09/07/d3d10-proxy-dll-c/

Here you can find the code for directx 9 hooking, but with a proxy dll. 在这里你可以找到directx 9挂钩的代码,但是有一个代理dll。

http://www.codeforfun.it/2012/08/30/directx-hooking-with-a-proxy-dll/ http://www.codeforfun.it/2012/08/30/directx-hooking-with-a-proxy-dll/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM