| View previous topic :: View next topic |
| Author |
Message |
JWP Programs Newbie cheater
Reputation: 0
Joined: 19 Dec 2011 Posts: 23
|
Posted: Sun Feb 26, 2012 1:43 am Post subject: About VirtualProtectEx.. |
|
|
Hi, I am a person to wonder about VirtualProtectEx.
I tried virtualprotectex like this,
var Old, Address:DWORD;
begin
Address:=StrToInt('$'+Edit1.text);
VirtualProtectEx(GetCurrentProcess, Pointer(Address), 4, PAGE_NOACCESS, Old); // In DLL
end;
It was successful but the process froze.
I use PAGE_NOACCESS because I wan't to get Exception BreakPoint.
PAGE_READONLY was same. and PAGE_GUARD didn't freeze process but didn't get Exception BreakPoint.
In fact, I tried Memory BreakPoint.
so How can I unfreeze the process with PAGE_NOACCESS ??
thanks for reading.
|
|
| Back to top |
|
 |
Kavvman Master Cheater
Reputation: 2
Joined: 17 Apr 2004 Posts: 316
|
Posted: Sun Feb 26, 2012 3:05 am Post subject: |
|
|
Why are you using VirtualProtectEx if you're gonna change the current process permissions. Use VirtualProtect() instead.
_________________
... |
|
| Back to top |
|
 |
JWP Programs Newbie cheater
Reputation: 0
Joined: 19 Dec 2011 Posts: 23
|
Posted: Sun Feb 26, 2012 3:27 am Post subject: Thanks but.. |
|
|
Thanks but,,
the point of my question isn't it..
|
|
| Back to top |
|
 |
|