Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


[C#] How does DxWnd Work?

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
yoyonerd
Grandmaster Cheater
Reputation: 0

Joined: 26 Apr 2008
Posts: 699
Location: -->formerly yoyonerd<--

PostPosted: Wed Oct 29, 2008 11:29 pm    Post subject: [C#] How does DxWnd Work? Reply with quote

Ehh, bottom line, I want to recreate DxWnd using C#.

I have no clue how it works, how it could work, or any plans whatsoever, SO, im just asking for maybe the concept of how it works, or even better a snipper and an explanation of the snippet.

ty.

_________________
Back to top
View user's profile Send private message AIM Address
Stylo
Grandmaster Cheater Supreme
Reputation: 3

Joined: 16 May 2007
Posts: 1073
Location: Israel

PostPosted: Wed Oct 29, 2008 11:45 pm    Post subject: Reply with quote

google for dxwnd source and first option will give you the source
made in C++

_________________
Stylo
Back to top
View user's profile Send private message
yoyonerd
Grandmaster Cheater
Reputation: 0

Joined: 26 Apr 2008
Posts: 699
Location: -->formerly yoyonerd<--

PostPosted: Wed Oct 29, 2008 11:52 pm    Post subject: Reply with quote

im stupid, i've been searching using dxwnd source code

i hope i can figure it out o.o

_________________
Back to top
View user's profile Send private message AIM Address
Anden100
Grandmaster Cheater
Reputation: 0

Joined: 20 Apr 2007
Posts: 668

PostPosted: Thu Oct 30, 2008 6:37 am    Post subject: Reply with quote

1qaz wrote:
google for dxwnd source and first option will give you the source
made in C++


http://theoklibrary.org/downloads.php?do=file&id=102
Back to top
View user's profile Send private message
pkedpker
Master Cheater
Reputation: 1

Joined: 11 Oct 2006
Posts: 412

PostPosted: Sat Nov 01, 2008 9:38 pm    Post subject: Reply with quote

doubt you could make this in C# unless you recreate a few Hooking functions in C#
_________________
Hacks I made for kongregate.
Kongregate Universal Badge Hack: http://forum.cheatengine.org/viewtopic.php?p=4129411
Kongreate Auto Rating/Voter hack: http://forum.cheatengine.org/viewtopic.php?t=263576
Took a test lol
Back to top
View user's profile Send private message
samuri25404
Grandmaster Cheater
Reputation: 7

Joined: 04 May 2007
Posts: 955
Location: Why do you care?

PostPosted: Sun Nov 02, 2008 8:55 am    Post subject: Reply with quote

You could make the general wrapper/injector (see GP+ for an example in C# on how to write an injector), but you wouldn't be able to write the DLL without a lot of trouble.

If you still want it in only C#, though, Google around: some guy who made poker bots posted on his blog about injecting managed dlls into native apps.

Edit:

If you don't mind writing the injectee in C++, check out Wiccaan's post in GP+ about his DirectX wrapper. That's virtually what DxWnd does.

_________________
Wiccaan wrote:

Oh jeez, watchout I'm a bias person! Locked.


Auto Assembly Tuts:
In Depth Tutorial on AA
Extended
Back to top
View user's profile Send private message
Wintermoot
Expert Cheater
Reputation: 0

Joined: 08 Nov 2007
Posts: 198

PostPosted: Tue Nov 11, 2008 7:20 pm    Post subject: Reply with quote

AFAIK, DXWnd hooks CreateWindow and all that and simple changes it to window mode...
Back to top
View user's profile Send private message
tombana
Master Cheater
Reputation: 2

Joined: 14 Jun 2007
Posts: 456
Location: The Netherlands

PostPosted: Wed Nov 12, 2008 11:57 am    Post subject: Reply with quote

That's not correct. It doesn't matter how you call CreateWindow. DirectX will just change it to fullscreen depending on what you tell directx. What you need to hook is CreateDevice (for D3D) or SetDisplayMode (for DirectDraw (only used in old games)).
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites