Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > .NET Languages
You last visited: Today at 17:40

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[C#]Reading Memory / Pointer with multiple Offsets.

Discussion on [C#]Reading Memory / Pointer with multiple Offsets. within the .NET Languages forum part of the Coders Den category.

Reply
 
Old 01/09/2013, 23:59   #16
 
»jD«'s Avatar
 
elite*gold: 237
Join Date: Sep 2010
Posts: 1,152
Received Thanks: 4,910
Make sure you don't use that on a 64 bit program

-jD
»jD« is offline  
Old 01/10/2013, 01:55   #17
 
iCraziE's Avatar
 
elite*gold: 0
Join Date: Jan 2010
Posts: 456
Received Thanks: 218
why not? it wouldn't work?
Is it because of the conversions to Int32?
iCraziE is offline  
Old 01/10/2013, 03:09   #18
 
»jD«'s Avatar
 
elite*gold: 237
Join Date: Sep 2010
Posts: 1,152
Received Thanks: 4,910
Yea. The reason I got you to add an IntPtr overload is the fact that an IntPtr will be a long (Int64) on 64bit machines and an int (Int32) on 32bit machines. When you explicitly cast them to a 32bit integer it removes support for some 64bit applications. I would recommend sticking with an IntPtr the entire way and changing the signature of your method to take an IntPtr instead of an Int32.

Just my oppinion tho

-jD
»jD« is offline  
Old 01/10/2013, 04:52   #19
 
iCraziE's Avatar
 
elite*gold: 0
Join Date: Jan 2010
Posts: 456
Received Thanks: 218
Ah okay, well ill keep that in mind. Fortunately the application is 32-bit so this is fine for me.
iCraziE is offline  
Old 01/10/2013, 04:56   #20
 
»jD«'s Avatar
 
elite*gold: 237
Join Date: Sep 2010
Posts: 1,152
Received Thanks: 4,910
Sure Got anymore questions?

-jD
»jD« is offline  
Old 01/12/2013, 00:08   #21
 
iCraziE's Avatar
 
elite*gold: 0
Join Date: Jan 2010
Posts: 456
Received Thanks: 218
I noticed something weird in my application. I believe the cause is the memory reading functions.

Even if I don't run my application. If I open the target exe for reading memory, I wont be able to move,rename, or delete my application. I get the error that it is already running in the target exe.
iCraziE is offline  
Old 01/12/2013, 01:05   #22
 
»jD«'s Avatar
 
elite*gold: 237
Join Date: Sep 2010
Posts: 1,152
Received Thanks: 4,910
Did you call close handle in the read memory function?

-jD
»jD« is offline  
Old 01/12/2013, 05:57   #23
 
iCraziE's Avatar
 
elite*gold: 0
Join Date: Jan 2010
Posts: 456
Received Thanks: 218
Sure did. The same way you told me to. But it's weird, I think its the exe im attaching to itself, not my application.

I almost positive it has to do with the game crashing. (the game detects visual studio as a third party program lmao) And somehow the processes think that the game is still oepn and its still attached to the game. it weird, i noticed the same results when using autoit, if i compiled it into an exe.
iCraziE is offline  
Old 01/12/2013, 06:49   #24
 
»jD«'s Avatar
 
elite*gold: 237
Join Date: Sep 2010
Posts: 1,152
Received Thanks: 4,910
Try running in Detached mode. Hit Ctrl+F5 to run with the debugger disabled.

-jD
»jD« is offline  
Reply


Similar Threads Similar Threads
[Help] Reading Pointer
07/31/2012 - C/C++ - 4 Replies
recently i was learning to make dll for injection and i found this func code: unsigned long ReadPointer(unsigned long ulBase, int iOffset) { __try { return *(unsigned long*)(*(unsigned long*)ulBase + iOffset); } __except (EXCEPTION_EXECUTE_HANDLER) { return 0; } } for example : addr = 0x0012345
[Vb.NET] WoW Memory Reading
11/20/2010 - World of Warcraft - 1 Replies
Hallo, Ist es irgendwie möglich mit VB.NET die Memory von WoW auszulesen wie bei C# mit der BlackMagic.dll Danke m vorraus
[VB.NET] Need help - memory reading from pointer
09/03/2010 - .NET Languages - 2 Replies
Hi, i'm kinda beginner in memory editing, the only experience i got is vb6 and vb.net - and basic CE skills. However i could get the pointer and the offset for a memory address, it works, tested. Next step is the reading of this value with a vb.net application. I have been googleing for 2 days, got some codes, wrote some by myself, but none of them seems to work. Could anyone help me a bit? Thank you, Regards
Help with memory reading. C++.
06/12/2010 - Aion - 0 Replies
Hello people, I'm kinda new to memory reading in c++. Been doing similiar stuff, and done some other stuff like packet hacks etc but anyway, to the issue. I get weird values from AION when reading. And I'm prolly going about this totally wrong so I'll post you the code and hopefully some kind soul out there will point me in the right direction. int address = 0xA82424; int value; DWORD pid; if(!GameWindow) {
VB.Net Memory Reading
11/03/2006 - .NET Languages - 0 Replies
Basically I'm doing a course in VB.Net and I'm wondering if theres anyone here who can teach me or show me how to read memory values in my project. My course does not cover this, so I'm stuck with either self-research or asking questions. If anyone can help then I'd be very grateful. PS: The target game I'll be testing on is Conquer Online 2



All times are GMT +1. The time now is 17:40.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.