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 


vb 6 Api functions

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

Joined: 12 Nov 2005
Posts: 124

PostPosted: Sat Oct 13, 2007 9:54 am    Post subject: vb 6 Api functions Reply with quote

How can I change an api statement such as:
Code:
Public Declare Function GetWindowThreadProcessId Lib "user32" (ByVal harddrive As Long, lpdwProcessId As Long) As Long


So that its undetected from anti hack programs but does the same thing?
Back to top
View user's profile Send private message
Flyte
Peanuts!!!!
Reputation: 6

Joined: 19 Apr 2006
Posts: 1887
Location: Canada

PostPosted: Sat Oct 13, 2007 11:35 am    Post subject: Reply with quote

With a trampoline. Keep in mind that usermode functions usually call kernelmode functions, and there is a good chance those will be hooked as well.
Back to top
View user's profile Send private message
algrn912005
Expert Cheater
Reputation: 0

Joined: 12 Nov 2005
Posts: 124

PostPosted: Sat Oct 13, 2007 12:05 pm    Post subject: Reply with quote

there an easier way to do it? all I want to do is just make it undetected its not hooked the anti hack just recognizes something in that line of code. Its punkbuster if you wanna know
Back to top
View user's profile Send private message
Flyte
Peanuts!!!!
Reputation: 6

Joined: 19 Apr 2006
Posts: 1887
Location: Canada

PostPosted: Sat Oct 13, 2007 12:13 pm    Post subject: Reply with quote

algrn912005 wrote:
there an easier way to do it? all I want to do is just make it undetected its not hooked the anti hack just recognizes something in that line of code. Its punkbuster if you wanna know


I don't have much experiance with Punk Buster, so I am not sure if it hooks anything or not. But to undetect something, just think of a different way of doing it:

Code:
int orginal;
original = 20;


Can also be written as:
Code:
int newone;
newone=10;
newone+=10;


You could also go overboard:
Code:
int newone2;
for(newone2=0;newone2<21;newone2++)
    __asm  nop
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