![]() |
|
|
|
#1
|
|||
|
|||
|
You can allocate with VirtualAlloc. If memory localtion you need is available you can specify location from which allocation should start. Why do you need a specific location?
|
|
#2
|
|||
|
|||
|
Hi Nikola,
Thanks for the correct info !! I need to be able to allocate static memory because I dont want to make major changes to my code generation routines until I am sure that the rest of my ideas are going to work. |
|
#3
|
|||
|
|||
|
Code:
PUSH 40 PUSH 3000 PUSH 1000 PUSH 3B40000 CALL kernel32.VirtualAlloc stack: 03B40000 |Address = 03B40000 00001000 |Size = 1000 (4096.) 00003000 |AllocationType = MEM_COMMIT|MEM_RESERVE 00000040 \Protect = PAGE_EXECUTE_READWRITE |
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Allocating BSTR strings in IE9 | r00t | General Discussion | 4 | 01-31-2013 12:47 |
| VirtualAlloc fails on specific memory address | MarkusO | General Discussion | 7 | 01-22-2006 18:11 |