Skip to content
MPGHThe Dark Arts
/
RegisterLog in
Forum
Community
What's NewLatest posts across the boardTrendingHottest threads right nowSubscribedThreads you follow
Discussion
GeneralIntroductionsEntertainmentDebate FortFlaming & Rage
Board
News & AnnouncementsMPGH TimesSuggestions & HelpGiveaways
More Sections
Art & Graphic DesignProgrammingHackingCryptocurrency
Hacks & Cheats
Games
ValorantCS2 / CS:GOCall of Duty / WarzoneFortniteApex LegendsEscape From Tarkov
+14 moreLeague of LegendsGTA VMinecraftRustROTMGBattlefieldTroveBattleOnCombat ArmsCrossFireBlackshotRuneScapeDayZDead by Daylight
Resources
Game Hacking TutorialsReverse EngineeringGeneral Game HackingAnti-CheatConsole Game Hacking
Tools
Game Hacking ToolsTrainers & CheatsHack/Release NewsNew
Submit a release →Share your cheat, tool, or config with the community.
AINEW
AI Tools
General & DiscussionPrompt EngineeringLLM JailbreaksHotAI Agents & AutomationLocal / Open Models
AI × Gaming
AI Aimbots & VisionML Anti-CheatGame Bots & Automation
Create
AI Coding / Vibe CodingAI Art & MediaAI Voice & TTS
The AI frontier →Where game hacking meets modern machine learning. Jump in.
Marketplace
Buy & Sell
SellingBuyingTradingUser Services
Trust & Safety
Middleman LoungeMarketplace TalkVouch Copy Profiles
Money
Cryptocurrency TalkCurrency ExchangeWork & Job Offers
Start selling →List accounts, services, and goods. Use the middleman to trade safe.
MPGH The Dark Arts

A community for offensive security research, reverse engineering, and AI.

Community

ForumMarketplaceSearch

Account

RegisterLog in

Legal

Privacy PolicyForum RulesHelp & FAQ
© 2026 MPGH · All rights reserved.Built by the community, for the community. For educational purposes onlyContent is shared for security research and education — we don't condone illegal use. You're responsible for complying with applicable laws. Use at your own risk.
Home › Forum › Programming › C++/C Programming › Calling functions?

Calling functions?

Posts 1–7 of 7 · Page 1 of 1
Void
Void
Calling functions?
Hey, I was wondering if you could call functions from another program in C++ without using inline ASM. Like if there's any other ways.

For example, I have an address for a function and all the parameters for it. How do I call it without inline ASM? In assembly it would be call 0052A48D or something. Just wondering if you can do that in C++.

Thanks
#1 · 16y ago
ZE
zeco
Quote Originally Posted by Davidm44 View Post
Hey, I was wondering if you could call functions from another program in C++ without using inline ASM. Like if there's any other ways.

For example, I have an address for a function and all the parameters for it. How do I call it without inline ASM? In assembly it would be call 0052A48D or something. Just wondering if you can do that in C++.

Thanks
Hmmm i believe you just made me realize the point of function pointers xD.

But wait. Nevermind, cause i can't think of how to utilize function pointers with an address from a different process.

Hmm for example. With that address, if you called it using inline assembly, do you not need to specify which process or executable it's coming from?
#2 · 16y ago
Void
Void
Quote Originally Posted by zeco View Post
Hmmm i believe you just made me realize the point of function pointers xD.

But wait. Nevermind, cause i can't think of how to utilize function pointers with an address from a different process.

Hmm for example. With that address, if you called it using inline assembly, do you not need to specify which process or executable it's coming from?
Yeah you would. But with inline ASM I was thinking of DLL injection. Even so, I don't know exactly how to call functions. I think it's something like:

Code:
__asm {
PUSH parameter1
PUSH parameter2
CALL function
}
Making hacks are so confusing.
#3 · 16y ago
ZE
zeco
Quote Originally Posted by Davidm44 View Post
Yeah you would. But with inline ASM I was thinking of DLL injection. Even so, I don't know exactly how to call functions. I think it's something like:

Code:
__asm {
PUSH parameter1
PUSH parameter2
CALL function
}
Making hacks are so confusing.
Yeah that's how you call functions. But im curious how you would jmp to another module, actually i think i may know that now.

I wonder how do you load a module in your assembly program?
#4 · 16y ago
Hell_Demon
Hell_Demon
if the games function is:
Code:
void BULLSHITFUNCTION(int abc, bool def)
{
    //their 1337 code goes here
}
and you know where in the process its stored, use the following from a dll:
Code:
void *pBULLSHITFUNCTION(int abc, int def) = (void*)0xB4DF00D;
then you can call it using
pBULLSHITFUNCTION(123,456);
I think, not sure been a long time since I worked with function pointers
#5 · 16y ago
Void
Void
Quote Originally Posted by Hell_Demon View Post
if the games function is:
Code:
void BULLSHITFUNCTION(int abc, bool def)
{
    //their 1337 code goes here
}
and you know where in the process its stored, use the following from a dll:
Code:
void *pBULLSHITFUNCTION(int abc, int def) = (void*)0xB4DF00D;
then you can call it using
pBULLSHITFUNCTION(123,456);
I think, not sure been a long time since I worked with function pointers
Is that using a DLL or can I just make another program to do that?
#6 · 16y ago
Hell_Demon
Hell_Demon
Quote Originally Posted by Davidm44 View Post
Is that using a DLL or can I just make another program to do that?
using a DLL, You could try to use CreateRemoteThread and do everything from there but a dll is easier I think
#7 · 16y ago
Posts 1–7 of 7 · Page 1 of 1

Post a Reply

Similar Threads

  • [Tutorial(C++)]How to call functions within another processBy radnomguywfq3 in Programming Tutorials
    4Last post 18y ago
  • [REQUEST] Call Inject function [Solved]By jajarem64 in Visual Basic Programming
    3Last post 15y ago
  • someone at warrock is calling everyone to this siteBy ak-47 in WarRock - International Hacks
    3Last post 20y ago
  • Call of Duty2By wyld707 in General Game Hacking
    4Last post 20y ago
  • They Call it "The Internet"By Dave84311 in General
    14Last post 20y ago

Tags for this Thread

#calling#functions