View previous topic :: View next topic |
Author |
Message |
kitesan Expert Cheater Reputation: 0
Joined: 01 May 2014 Posts: 124
|
Posted: Sun Mar 01, 2015 8:54 am Post subject: Allocation question |
|
|
on what does depend the size of the address (of the allocated region) (not the size of the region) when you alloc memory by calling VirtualAllocEx?
When you use CheatEngine's code injection it comes out an address like:
13FFE0000
and when you go in Tools, Allocate Memory, it comes out an address like:
01FB0000
why? different parameters or something else? I'm trying to write a program
which handles 64bit processes and allocates memory
|
|
Back to top |
|
|
Dark Byte Site Admin Reputation: 458
Joined: 09 May 2003 Posts: 25295 Location: The netherlands
|
Posted: Sun Mar 01, 2015 9:44 am Post subject: |
|
|
it's completely random what address you get.
You can give a hint where to allocate it though
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Like my help? Join me on Patreon so i can keep helping |
|
Back to top |
|
|
kitesan Expert Cheater Reputation: 0
Joined: 01 May 2014 Posts: 124
|
Posted: Sun Mar 01, 2015 9:55 am Post subject: |
|
|
Thanks infinitely , can you give me a basic example?
to have an overall concept of hint
by knowing this
LPVOID WINAPI VirtualAllocEx(
_In_ HANDLE hProcess,
_In_opt_ LPVOID lpAddress,
_In_ SIZE_T dwSize,
_In_ DWORD flAllocationType,
_In_ DWORD flProtect
);
the hint is given to the second parameter?
|
|
Back to top |
|
|
Dark Byte Site Admin Reputation: 458
Joined: 09 May 2003 Posts: 25295 Location: The netherlands
|
Posted: Sun Mar 01, 2015 11:01 am Post subject: |
|
|
yes, also make sure lpAddress is dividable by 64KB , and preferably points to a block currently not allocated.
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Like my help? Join me on Patreon so i can keep helping |
|
Back to top |
|
|
kitesan Expert Cheater Reputation: 0
Joined: 01 May 2014 Posts: 124
|
Posted: Sun Mar 01, 2015 11:29 am Post subject: |
|
|
thanks again
|
|
Back to top |
|
|
|