BlackLite (07-07-2012)
I cant get this to work anymore....
here is how i have it.....
Code:#include <windows.h> #include "exports.h" void ShowMessage(char* string, DWORD CShell);Code:DWORD CShell = (DWORD)GetModuleHandleA("CShell.dll"); ShowMessage("JusCaus TEST!!",CShell); while(true)Code:return TRUE; } void ShowMessage(char* string, DWORD CShell) { DWORD MsgBoxFunc = CShell +0xA4180; __asm { push string; push 0; push 0x70; push 0x1C; call MsgBoxFunc; add esp, 16; } }
anyhelp?
[IMG]https://i1132.photobucke*****m/albums/m571/JusCausGraphix.jpg[/IMG]
BlackLite (07-07-2012)
i think it was 0x71 and 0x1D now
BlackLite (07-07-2012)
ahhhhh i didnt check it in olly, i just used them from giniyats post... ill check it now....
send error report with those....
---------- Post added at 11:29 PM ---------- Previous post was at 11:22 PM ----------
10146FBC |. 6A 00 PUSH 0 ; |Arg3 = 00000000
10146FBE |. 6A 71 PUSH 71 ; |Arg2 = 00000071
10146FC0 |. 6A 1D PUSH 1D ; |Arg1 = 0000001D
10146FC2 |. E8 B9D1F5FF CALL CShell_u.100A4180 ; \CShell_u.100A4180
yep thats what it is but its not working for me....aghhh
Last edited by JusCaus; 07-06-2012 at 11:23 PM.
[IMG]https://i1132.photobucke*****m/albums/m571/JusCausGraphix.jpg[/IMG]
BlackLite (07-07-2012)
are you talking actually in game? Or just before the game starts?
this source musst put alter dll main
try itCode:void ShowMessageNA(char* string, DWORD CShell) { DWORD MsgBoxFunc = CShell +0xA4180; __asm { push string; push 0; push 0x70; push 0x1D; call MsgBoxFunc; add esp, 16; } }
Last edited by [G]a[M]e[R]; 07-07-2012 at 06:50 AM.
i am [G]a[M]e[R]
its 0x1D not ^^
you dont need to change 0x70
[img]https://i43.photobucke*****m/albums/e367/DeteSting/Steam-update.gif[/img]
copy whole the vertex lcok failed first lines and you are ready
ill see what happens
[IMG]https://i1132.photobucke*****m/albums/m571/JusCausGraphix.jpg[/IMG]
BlackLite (07-07-2012)
afff not working...
[IMG]https://i1132.photobucke*****m/albums/m571/JusCausGraphix.jpg[/IMG]
BlackLite (07-07-2012)
it work for me on cffg
Code:'void ShowMessage(char* string, DWORD CShell) { DWORD MsgBoxFunc = CShell +0x95C90; __asm { push string; push 0; push 0x70; push 0x1E; call MsgBoxFunc; add esp, 10; } }
Why not using a function pointer instead of inline ASM?Code:enum eOffsets { OFFS_IngameMsgBox = 0xA4180 } // ==> eOffsets void IngameMsgBox(DWORD dwCShellBase, const char *szMessage) { typedef void(__cdecl *pGameMsgBox_t)(DWORD, DWORD, DWORD, const char*); pGameMsgBox_t pGameMsgBox = (pGameMsgBox_t)(dwCShellBase + OFFS_IngameMsgBox); pGameMsgBox(0x1D, 0x71, 0, szMessage); } // ==> IngameMsgBox
Last edited by Ende!; 07-07-2012 at 12:13 PM.
giniyat101 (07-08-2012)
i fixed it a different way...... so pssst
[IMG]https://i1132.photobucke*****m/albums/m571/JusCausGraphix.jpg[/IMG]
BlackLite (07-07-2012)