Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > General Coding
You last visited: Today at 00:00

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



question (yes i know, very exciting title :P)

Discussion on question (yes i know, very exciting title :P) within the General Coding forum part of the Coders Den category.

Reply
 
Old   #1
 
Nomad's Knecht+ShaD's fan's Avatar
 
elite*gold: 0
Join Date: May 2011
Posts: 19
Received Thanks: 24
Question question (yes i know, very exciting title :P)

hi there,
i've got a lil question, is it possible to add a call to a function from my project into a game?
and if yes, how?
something like this? :
Code:
void Functionname()
{
         MessageBoxA(0,"Wuii! :>","Adding Function Succeeded.",0);
}

__cdeclspec(naked) void AddFunction()
{
         __asm
         {
                call Functionname;
                call orig_Code;
         }
}

DetourFunc((BYTE*)0x0 /*address where i want to add my call @game*/, (BYTE*)AddFunction,7);
kind regards,
meeeeeeeh
Nomad's Knecht+ShaD's fan is offline  
Old 06/02/2011, 10:31   #2
 
xNopex's Avatar
 
elite*gold: 0
Join Date: May 2009
Posts: 827
Received Thanks: 471
You don't need asm for this. Just use function pointers. Therefor you only have to know the address of the function and its calling convention + parameters.

EDIT: It seems that I have misunderstood the question a little bit. But it is not completely false. Try installing a detour at the location where you want to call the functions. Then call the functions in your detour function with pointers.
xNopex is offline  
Reply


Similar Threads Similar Threads
[GCPH/QUESTION] Title Equip
03/08/2011 - Grand Chase Philippines - 5 Replies
Hi!.. Tanung lang po, Kasi may una na akong TITLE EQUIP(Serdin Protector, ata yun), tapos kaka-accomplish ko lng nung TideHunter ata sa Partusay Champion mode,. ang problema, hindi ko ma-equip ung bago which is ung title sa Partusay,.. Panu ko po ba ma-i-equip ung title?.. Thanks in advance.....
[Question] Title Editing?
01/12/2011 - Cabal Online - 7 Replies
Is it possible to edit titles, for example changing "knight" or "praetor" to something else like "gladiator" or "King Of Blue" or something lol?
[WTS] Account including all 4 campaigns + Wisdom Title [3] + Treasure title [near 3]
09/06/2009 - Guild Wars Trading - 6 Replies
: Hi, I'm sellin an Account including all 3 campaigns & EOTN. It has no characters on it except an PvP Elementalist. There are some green items and materials on storage, and 11 golden rin relicts It's not plaync-bounded!! I'm open for offers. (ectos, zkeys, rare pets or rare items only) Contact: ..: 195759396
[Question]Title
04/25/2009 - Kal Online - 30 Replies
Hey Leute... Ich hatte ne Idee weiß aber nicht wie ich sie realisieren soll...so wichtig ist das nun nicht :D war nur so ne idee. also ich wollte den Namen von KalOnline ändern also den Title....Das heißt wenn meine .dll startet das nichtmehr KalOnline da steht sondern halt iwas anderes. wie stell ich das an einer ne idee?
How edit topic title? New title.
09/01/2007 - Conquer Online 2 - 2 Replies
Since forum turned vbulletin, i cant edit topic title



All times are GMT +1. The time now is 00:00.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.