calling a function (external)

0x17BD

Member
Joined
Apr 29, 2014
Messages
6
Reaction score
0
Hello Guys,
  whats the 'easiest' way to call an function from samp.dll by an external .exe?

best regards
 

0x17BD

Member
Joined
Apr 29, 2014
Messages
6
Reaction score
0
"UG-Base Gamehacking » Coding » C++ / C » Help " isn't it obvious i don't want to use ahk?
 

luxdav

Active member
Joined
Sep 17, 2014
Messages
45
Reaction score
5
The Cheat Engine Auto Assembler is mostly my first test.
In C++, something like this should work:
Code:
typedef void (__stdcall *func)(int);
func myFunc = (func)(0xDEADC0DE);
myFunc(1);
 

0x_

Wtf I'm not new....
Staff member
Administrator
Joined
Feb 18, 2013
Messages
1,123
Reaction score
174
luxdav link said:
The Cheat Engine Auto Assembler is mostly my first test.
In C++, something like this should work:
Code:
typedef void (__stdcall *func)(int);
func myFunc = (func)(0xDEADC0DE);
myFunc(1);

That's internal tho, todo these things external you need to inject it into the remote process with CreateRemoteThread (somewhere on the forums someone already explained it).

/E: found it: http://ugbase.eu/help-27/%28c%29-stuck-on-calling-a-function-from-samp-dll/msg76642/#msg76642

OT:
btw, why are all germans asking these questions?
 
Top