Go to the source code of this file.
◆ START_TEST()
Definition at line 213 of file NtFreeVirtualMemory.c.
214{
217}
static void Test_NtFreeVirtualMemory(void)
static void Test_NtFreeVirtualMemory_Parameters(void)
◆ Test_NtFreeVirtualMemory()
static void Test_NtFreeVirtualMemory |
( |
void |
| ) |
|
|
static |
Definition at line 11 of file NtFreeVirtualMemory.c.
12{
16
19 0,
26
32
33
40
46
47
50
52 &Buffer2,
56
60 &Buffer2,
64
65
68
70 &Buffer2,
74 ok(Buffer2 ==
Buffer,
"NtFreeVirtualMemory set wrong buffer.\n");
75 ok(
Length ==
PAGE_SIZE,
"NtFreeVirtualMemory did not round Length to PAGE_SIZE.\n");
76
80 &Buffer2,
84 ok(Buffer2 ==
Buffer,
"NtFreeVirtualMemory set wrong buffer.\n");
85 ok(
Length ==
PAGE_SIZE,
"NtFreeVirtualMemory did not round Length to PAGE_SIZE.\n");
86
87
91 0,
98
102 &Buffer2,
107 ok(Buffer2 ==
Buffer,
"The buffer is not aligned to PAGE_SIZE.\n");
108
112 &Buffer2,
118
119
123 0,
130
134 &Buffer2,
140
144 &Buffer2,
149 ok(Buffer2 ==
Buffer,
"The buffer is not aligned to PAGE_SIZE.\n");
150
151
155 0,
162
166 &Buffer2,
171 ok(Buffer2 ==
Buffer,
"The buffer is not aligned to PAGE_SIZE.\n");
172}
#define NT_SUCCESS(StatCode)
#define NtCurrentProcess()
_In_ ULONG _In_ ULONG _In_ ULONG Length
NTSTATUS NTAPI NtFreeVirtualMemory(IN HANDLE ProcessHandle, IN PVOID *UBaseAddress, IN PSIZE_T URegionSize, IN ULONG FreeType)
NTSTATUS NTAPI NtAllocateVirtualMemory(IN HANDLE ProcessHandle, IN OUT PVOID *UBaseAddress, IN ULONG_PTR ZeroBits, IN OUT PSIZE_T URegionSize, IN ULONG AllocationType, IN ULONG Protect)
#define STATUS_UNABLE_TO_FREE_VM
Referenced by START_TEST().
◆ Test_NtFreeVirtualMemory_Parameters()
static void Test_NtFreeVirtualMemory_Parameters |
( |
void |
| ) |
|
|
static |
Definition at line 174 of file NtFreeVirtualMemory.c.
175{
179
180
181
182
185
186
187
188 for (
i = 0;
i < 32; ++
i)
189 {
192 continue;
193
196 }
197
198
207
208
211}
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
__kernel_entry _Inout_ _Inout_ PSIZE_T _In_ ULONG FreeType
#define STATUS_INVALID_PARAMETER_4
Referenced by START_TEST().