Jump to content

Some help with dllcall & readproccesmemory


Recommended Posts

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 /:

Link to comment
Share on other sites

  • Moderators

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

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.

Link to comment
Share on other sites

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
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...