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 


Few C# Code requests

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

Joined: 26 May 2007
Posts: 1021
Location: ">>Pointer<<" : Address 00400560 Offset :1FE

PostPosted: Sat Sep 01, 2007 9:30 pm    Post subject: Few C# Code requests Reply with quote

Close another running app

And Also, how to inject the process of a program into another programs process

_________________
CEF Moderator since 2007 ^_^
ZenX-Engine
Back to top
View user's profile Send private message Yahoo Messenger
appalsap
Moderator
Reputation: 0

Joined: 27 Apr 2006
Posts: 6753
Location: Pakistan

PostPosted: Sat Sep 01, 2007 9:37 pm    Post subject: Reply with quote

1. TerminateProcess
2. You're not being clear enough
Back to top
View user's profile Send private message
Flyte
Peanuts!!!!
Reputation: 6

Joined: 19 Apr 2006
Posts: 1887
Location: Canada

PostPosted: Sat Sep 01, 2007 9:41 pm    Post subject: Re: Few C# Code requests Reply with quote

ZenXChaos wrote:
And Also, how to inject the process of a program into another programs process


Google for .dll injection.
Back to top
View user's profile Send private message
appalsap
Moderator
Reputation: 0

Joined: 27 Apr 2006
Posts: 6753
Location: Pakistan

PostPosted: Sat Sep 01, 2007 9:44 pm    Post subject: Reply with quote

that's not "injecting a process into another program"
Back to top
View user's profile Send private message
ZenX
Grandmaster Cheater Supreme
Reputation: 1

Joined: 26 May 2007
Posts: 1021
Location: ">>Pointer<<" : Address 00400560 Offset :1FE

PostPosted: Sat Sep 01, 2007 9:46 pm    Post subject: Reply with quote

Like, Inject MZBot.exe into MapleStory.exe.
_________________
CEF Moderator since 2007 ^_^
ZenX-Engine
Back to top
View user's profile Send private message Yahoo Messenger
Flyte
Peanuts!!!!
Reputation: 6

Joined: 19 Apr 2006
Posts: 1887
Location: Canada

PostPosted: Sat Sep 01, 2007 10:20 pm    Post subject: Reply with quote

appalsap wrote:
that's not "injecting a process into another program"


I assumed thats what he wanted. He wasn't too clear. It sounded like he wanted his code to be ran in the context of another process, hence dll injection.
Back to top
View user's profile Send private message
hcavolsdsadgadsg
I'm a spammer
Reputation: 26

Joined: 11 Jun 2007
Posts: 5801

PostPosted: Sat Sep 01, 2007 10:22 pm    Post subject: Reply with quote

1. Pretty sure you can use the System.Diagnostics.Process class as well.
Back to top
View user's profile Send private message
the_undead
Expert Cheater
Reputation: 1

Joined: 12 Nov 2006
Posts: 235
Location: Johannesburg, South Africa

PostPosted: Sun Sep 02, 2007 1:51 am    Post subject: Reply with quote

http://somebastardstolemyname.wordpress.com/2007/03/09/killing-processes-in-c/
_________________
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
ZenX
Grandmaster Cheater Supreme
Reputation: 1

Joined: 26 May 2007
Posts: 1021
Location: ">>Pointer<<" : Address 00400560 Offset :1FE

PostPosted: Sun Sep 02, 2007 6:40 am    Post subject: Reply with quote

the_undead wrote:
http://somebastardstolemyname.wordpress.com/2007/03/09/killing-processes-in-c/


Nice, for a second i thought you were being sarcastic.

+Rep for j00

in 4584 seconds:(

_________________
CEF Moderator since 2007 ^_^
ZenX-Engine
Back to top
View user's profile Send private message Yahoo Messenger
gamesguru
Grandmaster Cheater
Reputation: 0

Joined: 22 Mar 2006
Posts: 926
Location: detroit

PostPosted: Mon Sep 03, 2007 5:29 pm    Post subject: Re: Few C# Code requests Reply with quote

ZenXChaos wrote:
Close another running app

And Also, how to inject the process of a program into another programs process

The first is easy:
Code:

            foreach (System.Diagnostics.Process p in System.Diagnostics.Process.GetProcesses())
                {
                if (p.MainWindowTitle.ToLower().Contains("notepad")) //use whatever methodology you want, i just used the mainwindow title, there's also ProcessName
                    p.Kill();
                }

The second isn't so easy...and I'm not exactly sure how to do it right now.

_________________
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