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# Reading pointer from file

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

Joined: 16 Jul 2010
Posts: 1

PostPosted: Fri Jul 16, 2010 9:35 am    Post subject: C# Reading pointer from file Reply with quote

Hi guys, after finding the pointer in the game i had got this pointer:

nostalex.dat+388F78

How can i read this "nostalex.dat" pointer with my memory reading program

Sorry for my english
Back to top
View user's profile Send private message Send e-mail
justa_dude
Grandmaster Cheater
Reputation: 23

Joined: 29 Jun 2010
Posts: 891

PostPosted: Fri Jul 16, 2010 10:17 am    Post subject: Reply with quote

I think you want to use the getmodulehandle function from kernel32 to resolve the relative address. Then you can use the kernel32 readprocessmemory function with the "flat" address.
Back to top
View user's profile Send private message
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8587
Location: 127.0.0.1

PostPosted: Fri Jul 16, 2010 2:20 pm    Post subject: Reply with quote

justa_dude wrote:
I think you want to use the getmodulehandle function from kernel32 to resolve the relative address. Then you can use the kernel32 readprocessmemory function with the "flat" address.


GetModuleHandle only works inside the current process.

Quote:
How can i read this "nostalex.dat" pointer with my memory reading program


Use the Process and ProcessModule classes to obtain the processes information and to obtain the base address for "nostalex.dat", then use ReadProcessMemory to read the memory at the given location.

Process:
http://msdn.microsoft.com/en-us/library/system.diagnostics.process.aspx

ProcessModule:
http://msdn.microsoft.com/en-us/library/system.diagnostics.process.aspx

ReadProcessMemory:
http://www.pinvoke.net/default.aspx/kernel32/readprocessmemory.html

_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
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