#include <stdio.h>
#include <windows.h>
Go to the source code of this file.
◆ main()
Definition at line 4 of file vmtest.c.
5{
8
10 1048576,
14 {
15 printf(
"VirtualAlloc failed 1\n");
16 }
17
19 4096,
23 {
24 printf(
"VirtualAlloc failed 2\n");
25 }
26
28 4096,
32 {
33 printf(
"VirtualAlloc failed 3\n");
34 }
35
37 4096,
41 {
42 printf(
"VirtualAlloc failed 4\n");
43 }
44
46 28672,
50 {
51 printf(
"VirtualAlloc failed 5\n");
52 }
53 return 0;
54}
LPVOID NTAPI VirtualAlloc(IN LPVOID lpAddress, IN SIZE_T dwSize, IN DWORD flAllocationType, IN DWORD flProtect)