| View previous topic :: View next topic |
| Author |
Message |
Wildeye Advanced Cheater
Reputation: 0
Joined: 18 Aug 2008 Posts: 62
|
Posted: Sun Aug 31, 2008 12:27 am Post subject: VirtualProtectEx Help |
|
|
| Quote: | <DllImport("kernel32.dll")> _
Public Shared Function VirtualAllocEx(ByVal hProcess As IntPtr, ByVal lpAddress As IntPtr, _
ByVal dwSize As UInteger, ByVal flAllocationType As UInteger, _
ByVal flProtect As UInteger) As IntPtr
End Function |
| Quote: | | VirtualProtectEx(hProcess, &H400000, &HFFFFFFFF, &H40, 0) |
this is the code for VB.NET can someone tell me why it doesnt work VirtuallAlloc doesnt work either, it returns 0 which means it doesnt work im trying to make a trainer...
|
|
| Back to top |
|
 |
arigity Advanced Cheater
Reputation: 0
Joined: 03 Jul 2008 Posts: 65 Location: middle of nowhere.
|
Posted: Sun Aug 31, 2008 2:38 am Post subject: |
|
|
try these
Private Declare Function VirtualAllocEx Lib "kernel32" _
(ByVal hProcess As IntPtr, _
ByVal lpAddress As IntPtr, _
ByVal dwSize As UInteger, _
ByVal fAllocType As UInteger, _
ByVal FlProtect As UInteger) As IntPtr
Private Declare Function VirtualAProtectEx Lib "kernel32" _
(ByVal hProcess As IntPtr, _
ByVal lpAddress As IntPtr, _
ByVal dwSize As UInteger, _
ByVal flNewProtect As UInteger, _
ByRef lpflOldProtect As UInteger) As Boolean
|
|
| Back to top |
|
 |
Wildeye Advanced Cheater
Reputation: 0
Joined: 18 Aug 2008 Posts: 62
|
Posted: Sun Aug 31, 2008 3:34 am Post subject: |
|
|
| Quote: | Private Declare Function VirtualAProtectEx Lib "kernel32" _
(ByVal hProcess As IntPtr, _
ByVal lpAddress As IntPtr, _
ByVal dwSize As UInteger, _
ByVal flNewProtect As UInteger, _
ByRef lpflOldProtect As UInteger) As Boolean |
no entry point there its "VirtualProtectEx" not "VirtualAProtectEx"
and i get an overflow error ill try to find the prob
EDIT: HOLY SHIT IT WORKED!! THAnk GOD a million thx man
|
|
| Back to top |
|
 |
dnsi0 I post too much
Reputation: 0
Joined: 04 Jan 2007 Posts: 2674
|
Posted: Sun Aug 31, 2008 12:36 pm Post subject: |
|
|
| Its still not gonna work... The last variable cannot be 0 you need to assign it a value. Or it returns nothing.
|
|
| Back to top |
|
 |
Wildeye Advanced Cheater
Reputation: 0
Joined: 18 Aug 2008 Posts: 62
|
Posted: Sun Aug 31, 2008 11:46 pm Post subject: |
|
|
| already did
|
|
| Back to top |
|
 |
arigity Advanced Cheater
Reputation: 0
Joined: 03 Jul 2008 Posts: 65 Location: middle of nowhere.
|
Posted: Mon Sep 01, 2008 10:59 am Post subject: |
|
|
| sorry bout the A, musta slipped in when i was typing accidentally :S
|
|
| Back to top |
|
 |
|