Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


[C#] Please Help With Read Adress Value (problem resolved)

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
ASSINISS
How do I cheat?
Reputation: 0

Joined: 11 Jul 2013
Posts: 5

PostPosted: Sun Jul 14, 2013 11:14 am    Post subject: [C#] Please Help With Read Adress Value (problem resolved) Reply with quote

PLEASE HELP ME i dont see any error


Code:

class MAIN
{
#region WINAPI
[DllImport("Kernel32.dll")]
private static extern IntPtr OpenProcess(
uint dwDesiredAccess,
bool bInheritHandle,
int dwProcessId);

[DllImport("Kernel32.dll")]
private static extern IntPtr ReadProcessMemory(
IntPtr hProcess,
uint lpBaseAddress,
byte[] lpBuffer,
int nSize,
out int lpNumberOfBytesRead);

[DllImport("Kernel32.dll")]
private static extern IntPtr WriteProcessMemory(
IntPtr hProcess,
uint lpBaseAddress,
byte[] lpBuffer,
int nSize,
out int lpNumberOfBytesWritten);

#endregion

Process CurretProcess;
IntPtr hProcess;

public MAIN()
{
// Target Process
try
{
CurretProcess = Process.GetProcessesByName("Tutorial-i386")[0];
}
catch
{
Console.WriteLine("Please start process");
}
//
// Set hProcess
if (CurretProcess != null)
{
hProcess = OpenProcess(0x1F0FFF, false, CurretProcess.Id);
//
// Set Address and Offset
int address = int.Parse("555EB0", System.Globalization.NumberStyles.HexNumber);
//
// Get Values
byte[] Value = new byte[sizeof(int)];
int bytes_readed;

ReadProcessMemory(hProcess, (uint)address, Value, Value.Length, out bytes_readed);
Console.WriteLine(Value[0]);
//
}
Console.ReadLine();
}
}



Screen.jpg
 Description:
SCREEN
 Filesize:  466.3 KB
 Viewed:  4007 Time(s)

Screen.jpg




Last edited by ASSINISS on Mon Jul 15, 2013 4:40 am; edited 1 time in total
Back to top
View user's profile Send private message
ASSINISS
How do I cheat?
Reputation: 0

Joined: 11 Jul 2013
Posts: 5

PostPosted: Mon Jul 15, 2013 4:34 am    Post subject: ASSINISS - RETARD Reply with quote

LOL SORRY RUN AS ADMINISTRATOR AND WORK IT =DDDD IM TOTAL NOOB
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites