Jump to content

Recommended Posts

Posted

I need to get my autoit script to LOCK a memory address.. How exactly would i go about this? The address is an 8 byte integer...

I am not sure this is possible or impossible, but you need to search the forum for _Mem*() functions. Someone has created a whole list of functions that deal with memory. A quick search should give you some clues.

JS

AutoIt Links

File-String Hash Plugin Updated! 04-02-2008 Plugins have been discontinued. I just found out.

ComputerGetInfo UDF's Updated! 11-23-2006

External Links

Vortex Revolutions Engineer / Inventor (Web, Desktop, and Mobile Applications, Hardware Gizmos, Consulting, and more)

Posted

I need to get my autoit script to LOCK a memory address.. How exactly would i go about this? The address is an 8 byte integer...

Do you actually know what you want? An "8 byte integer" is presumably a 64-bit memory address which would mean you are using a 64-bit version of Windows, correct? And what do you mean "LOCK" it? Lock it form what? Being read? Being written to? Being executed as code?
Posted

Then you need to use the Windows API function VirtualProtectEx with the PAGE_READONLY flag. Note that setting the address to read only will cause an access violation if something tries to write to that address, anyway.

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
×
×
  • Create New...