| View previous topic :: View next topic |
| Author |
Message |
AwayTheWInd Master Cheater
Reputation: 0
Joined: 11 Sep 2007 Posts: 450
|
Posted: Mon Apr 14, 2008 1:52 pm Post subject: |
|
|
sorry...i got pissed off since i was writing an essay at teh time. i handed it in today. k i built dll properly. can u help me call the function properly in another dll? i tried a way with typedef int(__stdcall* HHPtr) (the format...)
it just closed the process when i tried to inject it.
|
|
| Back to top |
|
 |
lurc Grandmaster Cheater Supreme
Reputation: 2
Joined: 13 Nov 2006 Posts: 1900
|
Posted: Mon Apr 14, 2008 2:10 pm Post subject: |
|
|
You don't need to call the function from any dll at all... Unless your making a dll to Export TextOutA.
You can just call it like a normal function
| Code: | DWORD dwTextOut = (DWORD)GetProcAddress( LoadLibrary( _T("gdi32.dll") ), "TextOutA" ) + 5;
_declspec(naked) BOOL WINAPI myTextOutA(HDC hdc, int nXStart, int nYStart, LPCTSTR lpString, int cbString)
{
_asm
{
mov edi,edi
push ebp
mov ebp,esp
jmp dword ptr ds:[dwTextOut]
}
} |
Call it like any normal function.
myTextOutA( aDC, aInt, aInt, aString, aInt );
_________________
Last edited by lurc on Mon Apr 14, 2008 2:51 pm; edited 1 time in total |
|
| Back to top |
|
 |
AwayTheWInd Master Cheater
Reputation: 0
Joined: 11 Sep 2007 Posts: 450
|
Posted: Mon Apr 14, 2008 2:39 pm Post subject: |
|
|
awesome thanks id +rep 1000 times but i cant.. T_T im going to try this on gunbound now. i tried it first on macromedia flash and it worked!
edit: sadly it doesnt work for gunbound. while im at it though.... mind asking how i can drag and drop(hold mouse button down) using postmessage or sth like that? tried everything(i could think of)
|
|
| Back to top |
|
 |
atom0s Moderator
Reputation: 205
Joined: 25 Jan 2006 Posts: 8587 Location: 127.0.0.1
|
Posted: Tue Apr 15, 2008 3:53 am Post subject: |
|
|
Cleaned up the spam crap. Such annoying children on the internet anymore..
_________________
- Retired. |
|
| Back to top |
|
 |
|