Click here to Skip to main content
15,894,343 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello everyone,
I wondered wether there was a way to draw, something like a little information window, ontop of a game, which is running in fullscreen mode.
At first i thought this would be impossible, but fraps - a recording program - does draw the games fps. even in fullscreen mode.
Is there a way of archieving this ( in C# ) ?
Posted
Comments
Sergey Alexandrovich Kryukov 8-May-13 12:49pm    
It highly depends on the game. The problem is that the game can use DirectX, which does not live well with GDI+, which cannot really draw on top of the DirectX graphics. The solution should use DirectX, too, in particular, DirectX overlays.
—SA

1 solution

Please see my comment to the question. If this is a DirectX-based game (the difficulty you have is indicative), solving the problem is pretty difficult. See, for example, these works:
http://www.skymaster1980.net16.net/index.php/direct3d/advanced-code-snippets/253-external-directx-overlay-non-hooked-c-[^],
http://www.unknowncheats.me/forum/c/62019-c-non-hooked-external-directx-overlay.html[^],
http://www.gamedev.net/topic/359794-c-direct3d-hooking-sample/[^].

—SA
 
Share this answer
 
Comments
[no name] 8-May-13 13:07pm    
this looks very promising, thank you
I'm gonna try it right now ;)
Sergey Alexandrovich Kryukov 8-May-13 15:24pm    
I would appreciate if you dig into it and provide some feedback in case of success or problems...
—SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900