flat assembler
Message board for the users of flat assembler.
Index
> Windows > Win 10 not load in VirtualAlloc mem ! |
Author |
|
revolution 19 May 2021, 18:29
You can use GetLastError to see why it failed, but only if it return null.
Otherwise there is no reason it won't work. You probably have something else in there that you omitted to post which is causing the problem. |
|||
19 May 2021, 18:29 |
|
Roman 19 May 2021, 18:37
My mistake.
I found. This work correct. invoke VirtualAlloc,0,1000,MEM_COMMIT,PAGE_READWRITE |
|||
19 May 2021, 18:37 |
|
DimonSoft 19 May 2021, 19:22
Roman wrote:
Roman wrote: invoke VirtualAlloc,0,1000,MEM_COMMIT,PAGE_READWRITE Am I the only one who doesn’t see any difference between two versions, except for the line that exposes the (presumably bad) value in rax? |
|||
19 May 2021, 19:22 |
|
AsmGuru62 25 May 2021, 20:57
I also saw that this is same code.
Also, MSDN recommends to use the combination of flags (MEM_COMMIT or MEM_RESERVE) to access the memory right away. |
|||
25 May 2021, 20:57 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.