Sign in to follow this  
Followers 0
julmae

Some help with dllcall & readproccesmemory

4 posts in this topic

I have tried to make script that read few values from memory but only thing I seem to get is

windows errors :) any and all help would be welcome. Heres what i have came up with

$Value1 = DllCall('kernel32.dll', 'int', 'ReadProcessMemory', 'int', 0x54D37DC)
$Value2 = DllCall('kernel32.dll', 'int', 'ReadProcessMemory', 'int', 0x54D37D8)

and yep I have tried to search trough forums too but I just cant seem to get it work /:

Share this post


Link to post
Share on other sites



You're missing some paramters it looks like, and don't forget that it returns an array, for the parameters look here:

http://msdn.microsoft.com/library/default....ocessmemory.asp


[center]Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.[/center]

Share this post


Link to post
Share on other sites

Have you looked at wOuter's memory functions?

Here's the link:

Memory Functions

These have worked great for me.

Nomad


Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

Yeh i tried that, but i always get this when i try to run it :

: ==> Subscript used with non-Array variable.: 
$v_Ret = DllCall($ah_Mem[0], 'int', 'ReadProcessMemory', 'int', $ah_Mem[1], 'int', $i_Address, 'ptr', DllStructGetPtr($v_Struct), 'int', 1, 'int', '') 
$v_Ret = DllCall($ah_Mem^ ERROR

I supposed that it was ment to use use like :

_MemRead("kernel32.dll", 0x54D37DC)

and declare $i_Size = x if i want to read memory of different size, but im prolly wrong again :)

:Edit: nvm got it working :(

Edited by julmae

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0