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 


Tutorials for injected dll to external process communication

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
theidiot
Newbie cheater
Reputation: 0

Joined: 15 Dec 2015
Posts: 14

PostPosted: Mon Jan 09, 2017 6:46 pm    Post subject: Tutorials for injected dll to external process communication Reply with quote

I'm looking to learn something about that with semaphores, memory mapped files or whatever. If anyone has any pointers I'd be thankful.
Back to top
View user's profile Send private message
ParkourPenguin
I post too much
Reputation: 140

Joined: 06 Jul 2014
Posts: 4291

PostPosted: Mon Jan 09, 2017 8:23 pm    Post subject: Reply with quote

I'd start by reading MSDN documentation.
_________________
I don't know where I'm going, but I'll figure it out when I get there.
Back to top
View user's profile Send private message
atom0s
Moderator
Reputation: 198

Joined: 25 Jan 2006
Posts: 8517
Location: 127.0.0.1

PostPosted: Tue Jan 10, 2017 12:36 am    Post subject: Reply with quote

From personal experience I would not recommend mail-slots or named pipes, they are both extremely slow, unreliable and crash often. I would recommend if you need some form of IPC either use a custom MMF implementation and write your own mini-protocol for it, or use raw sockets such as TCP/UDP through a library such as ZMQ. They are much more efficient in terms of speed and reliability.

I've stressed tested MMF and Mail-Slot implementations against each other in a live MMORPG situation where I needed to send live packets to a remote program and process them, then send back to the game client. Speed was a requirement here as you slow down the packet flow, you lag out and disconnect. Mail-slots could not keep up at all and often crashed for no reason. The overhead from them was insane too. I then wrote a custom MMF protocol to do the work and it worked flawlessly. The speed was instant and there was no overhead outside of the custom protocol buffers storing data as needed.

The same could be done using ZMQ or similar with a TCP or UDP setup too.

_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
theidiot
Newbie cheater
Reputation: 0

Joined: 15 Dec 2015
Posts: 14

PostPosted: Tue Jan 10, 2017 1:43 am    Post subject: Reply with quote

That's what I'm looking to do.. route mmorpg packets to another program to parse them etc. I appreciate the reply. A custom MMF protocol--all right.
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