Click here to Skip to main content
15,891,529 members
Home / Discussions / C#
   

C#

 
GeneralRe: Application.Restart() do not terminate application Pin
Daniel Grunwald14-Apr-08 22:50
Daniel Grunwald14-Apr-08 22:50 
GeneralRe: Application.Restart() do not terminate application Pin
Maddie from Dartford14-Apr-08 23:54
Maddie from Dartford14-Apr-08 23:54 
QuestionSplit and Email files Pin
mailstorao14-Apr-08 18:55
mailstorao14-Apr-08 18:55 
GeneralRe: Split and Email files Pin
mailstorao14-Apr-08 18:57
mailstorao14-Apr-08 18:57 
GeneralRe: Split and Email files Pin
Vikram A Punathambekar14-Apr-08 19:56
Vikram A Punathambekar14-Apr-08 19:56 
GeneralRe: Split and Email files Pin
mailstorao14-Apr-08 20:36
mailstorao14-Apr-08 20:36 
GeneralRe: Split and Email files Pin
mailstorao14-Apr-08 20:37
mailstorao14-Apr-08 20:37 
GeneralWriteProcessMemory problem [modified] Pin
Xmen Real 14-Apr-08 16:15
professional Xmen Real 14-Apr-08 16:15 
hello,
im trying to write in process memory(of a game)at a specified address, but its not working, neither any error nor working, im new to API.

here is the code im using to write a int(4 bytes) value at 0xB7CE50.

IntPtr m_hProcess = IntPtr.Zero;
m_hProcess = APIDecalaration.OpenProcess(APIDecalaration.PROCESS_ALL_ACCESS, 1, ((UInt32)MYProcesses[0].Id));
APIDecalaration.WriteProcessMemory(m_hProcess, (IntPtr)0xB7CE50, 1000, 4, 0);
int isClosed = APIDecalaration.CloseHandle(m_hProcess);
if (isClosed == 0)
throw (new Exception("CloseHandle failed"));



APIDecalaration class :
public const int PROCESS_ALL_ACCESS = 0x1F0FFF;

       [DllImport("kernel32", ExactSpelling = true, CharSet = CharSet.Ansi, SetLastError = true)]
       public static extern IntPtr OpenProcess(UInt32 dwDesiredAccess, int bInheritHandle, UInt32 dwProcessId);

       [DllImport("kernel32", ExactSpelling = true, CharSet = CharSet.Ansi, SetLastError = true)]
       public static extern int WriteProcessMemory(IntPtr hProcess, IntPtr lpBaseAddress, int lpBuffer, long nSize, long lpNumberOfBytesWritten);

       [DllImport("kernel32", ExactSpelling = true, CharSet = CharSet.Ansi, SetLastError = true)]
       public static extern int CloseHandle(IntPtr hObject);


where i did mistake ???Confused | :confused:


edited :
i want to write 1000 in that address, but there is no effect

TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L
%^]*IRXD#@GKCQ`R\^SF_WcHbORY87??6?N8?BcRAV\Z^&SU~%CSWQ@#2
W_AD`EPABIKRDFVS)EVLQK)JKSQXUFYK[M`UKs*$GwU#(QDXBER@CBN%
Rs0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-i?TV.C\y<p?jxsg-b$f4ia>
--------------------------------------------------------
128 bit encrypted signature, crack if you can

modified on Monday, April 14, 2008 10:31 PM

QuestionDisplaying event data in a textbox Pin
gwe12314-Apr-08 15:14
gwe12314-Apr-08 15:14 
GeneralRe: Displaying event data in a textbox Pin
Ravenet14-Apr-08 15:29
Ravenet14-Apr-08 15:29 
GeneralRe: Displaying event data in a textbox Pin
Vikram A Punathambekar14-Apr-08 19:59
Vikram A Punathambekar14-Apr-08 19:59 
Generalset the position for ascii char in richtextbox Pin
kamalesh574314-Apr-08 15:02
kamalesh574314-Apr-08 15:02 
GeneralRe: set the position for ascii char in richtextbox Pin
Xmen Real 14-Apr-08 16:19
professional Xmen Real 14-Apr-08 16:19 
GeneralNeed help on populating a listbox with data from a microsoft Access database Pin
precado99914-Apr-08 14:01
precado99914-Apr-08 14:01 
GeneralRe: Need help on populating a listbox with data from a microsoft Access database Pin
Christian Graus14-Apr-08 14:04
protectorChristian Graus14-Apr-08 14:04 
GeneralRe: Need help on populating a listbox with data from a microsoft Access database Pin
precado99914-Apr-08 14:18
precado99914-Apr-08 14:18 
GeneralRe: Need help on populating a listbox with data from a microsoft Access database Pin
Christian Graus14-Apr-08 14:27
protectorChristian Graus14-Apr-08 14:27 
GeneralRe: Need help on populating a listbox with data from a microsoft Access database Pin
precado99914-Apr-08 14:50
precado99914-Apr-08 14:50 
GeneralRe: Need help on populating a listbox with data from a microsoft Access database Pin
Christian Graus14-Apr-08 14:59
protectorChristian Graus14-Apr-08 14:59 
GeneralRe: Need help on populating a listbox with data from a microsoft Access database Pin
precado99914-Apr-08 15:04
precado99914-Apr-08 15:04 
GeneralRe: Need help on populating a listbox with data from a microsoft Access database Pin
Christian Graus14-Apr-08 17:57
protectorChristian Graus14-Apr-08 17:57 
GeneralRe: Need help on populating a listbox with data from a microsoft Access database Pin
Hum Dum14-Apr-08 19:22
Hum Dum14-Apr-08 19:22 
QuestionProcess Console Width Pin
dwrst14-Apr-08 13:37
dwrst14-Apr-08 13:37 
GeneralRe: Process Console Width Pin
Luc Pattyn14-Apr-08 13:47
sitebuilderLuc Pattyn14-Apr-08 13:47 
GeneralRe: Process Console Width Pin
dwrst14-Apr-08 15:04
dwrst14-Apr-08 15:04 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.