/* These are being used in ZwMapViewOfSection as well */
const char TestString[] = "TheLongBrownFoxJumpedTheWhiteRabbitTheLongBrownFoxJumpedTheWhiteRabbitTheLongBrownFoxJumpedTheWhiteRabbitTheLongBrownFoxJumpedTheWhiteRabbitTheLongBrownFoxJumpedTheWhiteRabbitTheLongBrownFoxJumpedThe";
-const SIZE_T TestStringSize = sizeof(TestString);
+const ULONG TestStringSize = sizeof(TestString);
VOID Test_ZwAllocateVirtualMemory(VOID);
typedef struct _TEST_CONTEXT
{
HANDLE ProcessHandle;
- ULONG RegionSize;
+ SIZE_T RegionSize;
ULONG AllocationType;
ULONG Protect;
PVOID Bases[1024];
//////////////////////////////////////////////////////////////////////////
// GUARD PAGES
//////////////////////////////////////////////////////////////////////////
-/* FIXME: We don't support guard pages. See CORE-6639, ROSTESTS-107 */
-#ifdef ROSTESTS_107_FIXED
+
RegionSize = 1000;
Base = NULL;
ZwAllocateVirtualMemory(NtCurrentProcess(), &Base, 0, &RegionSize, (MEM_COMMIT | MEM_RESERVE), (PAGE_GUARD | PAGE_READWRITE));
RegionSize = 0;
ZwFreeVirtualMemory(NtCurrentProcess(), &Base, &RegionSize, MEM_RELEASE);
-#endif /* ROSTESTS_107_FIXED */
return Status;
}