Can someone please help me out on this? I need to know how to set it to where it will write bytes in decimal instead of heximal. I have tried writting it in all diffrent ways but it doesn't seem to want to patch memory. I need to write the following bytes, which I believe are in hex... 0079A688 66 66 FF 0044CA9C A3 88 A6 79 00 ...Y. can someone please look at this code and tell me what I am doing wrong or how I need to write it, I would appreciate it. ; ######################################################################### .386 .model flat, stdcall ; 32 bit memory model option casemap :none ; case sensitive include CHTRBGNE.inc ; local includes for this file ; ######################################################################### CheckForGame proto .data memname db "Delta Force 2, V1.06.15",0 notfound db "{Pedrez}trainer detected, shutting down df2.......",0 error db "Error !!!!!",0 writebytes db 00 writebytes1 db 00 cbWrite dd 2 address equ 0079A688h address1 equ 0044CA9Ch ID_TIMER equ 1 TIMER_INTERRUPT equ 1000 pid dd ? phandle dd ? gamewnd dd ? dwprocessid dd ? gameprocess dd ? hDlg HWND ? statClass db "STATIC",0 .const IDD_DIALOG1 equ 1 .code start: invoke GetModuleHandle, NULL mov hInstance, eax Invoke DialogBoxParam, hInstance, IDD_DIALOG1, NULL, NULL, NULL Invoke ShowWindow, eax, SW_SHOW Invoke FindWindow, NULL, ADDR memname invoke GetWindowThreadProcessId, eax, offset dwprocessid invoke OpenProcess,PROCESS_VM_WRITE OR PROCESS_VM_OPERATION,NULL,dwprocessid mov gameprocess, eax invoke WinMain,hInstance,NULL,CommandLine,SW_SHOWDEFAULT invoke ExitProcess,eax ; ######################################################################### WinMain proc hInst :DWORD, hPrevInst :DWORD, CmdLine :DWORD, CmdShow :DWORD ;==================== ; Put LOCALs on stack ;==================== LOCAL wc :WNDCLASSEX LOCAL msg :MSG LOCAL Wwd :DWORD LOCAL Wht :DWORD LOCAL Wtx :DWORD LOCAL Wty :DWORD ;================================================== ; Fill WNDCLASSEX structure with required variables ;================================================== invoke LoadIcon,hInst,500 ; icon ID mov hIcon, eax szText szClassName,"Project_Class" mov wc.cbSize, sizeof WNDCLASSEX mov wc.style, CS_HREDRAW or CS_VREDRAW \ or CS_BYTEALIGNWINDOW mov wc.lpfnWndProc, offset WndProc mov wc.cbClsExtra, NULL mov wc.cbWndExtra, NULL m2m wc.hInstance, hInst mov wc.hbrBackground, COLOR_BTNFACE+1 mov wc.lpszMenuName, NULL mov wc.lpszClassName, offset szClassName m2m wc.hIcon, hIcon invoke LoadCursor,NULL,IDC_ARROW mov wc.hCursor, eax m2m wc.hIconSm, hIcon invoke RegisterClassEx, ADDR wc ;================================ ; Centre window at following size ;================================ mov Wwd, 0 mov Wht, 0 invoke GetSystemMetrics,SM_CXSCREEN invoke TopXY,Wwd,eax mov Wtx, eax invoke GetSystemMetrics,SM_CYSCREEN invoke TopXY,Wht,eax mov Wty, eax invoke CreateWindowEx,WS_EX_LEFT, ADDR szClassName, ADDR szDisplayName, WS_OVERLAPPED or WS_SYSMENU, Wtx,Wty,Wwd,Wht, NULL,NULL, hInst,NULL mov hWnd,eax invoke LoadMenu,hInst,600 ; menu ID
Posted on 2001-04-30 20:07:00 by Mr. Ying
well, i don't know about the patching part, it looks ok. but..

Invoke DialogBoxParam, hInstance, IDD_DIALOG1, NULL, NULL, NULL
Invoke ShowWindow, eax, SW_SHOW
i have no idea what you just did there. dialogboxparam with no dialog proc, then showwindow with eax? DialogBoxParam doesn't return a hWnd, check your docs.
Posted on 2001-05-02 17:08:00 by fresh