|
ReactOS 0.4.16-dev-1946-g52006dd
|
#include <kmt_test.h>
Go to the source code of this file.
Macros | |
| #define | IGNORE -99 |
| #define | NEW_CONTENT "NewContent" |
| #define | NEW_CONTENT_LEN sizeof(NEW_CONTENT) |
| #define | IsInvalidParamStatus(Status) |
| #define | ok_invalid_parameter(Status) ok(IsInvalidParamStatus(Status), "Invalid status code (0x%X)\n", Status) |
| #define | TestMapView(SectionHandle, ProcessHandle, BaseAddress2, ZeroBits, CommitSize, SectionOffset, ViewSize2, InheritDisposition, AllocationType, Win32Protect, MapStatus, UnmapStatus) |
| #define | MmTestMapView(Object, ProcessHandle, BaseAddress2, ZeroBits, CommitSize, SectionOffset, ViewSize2, InheritDisposition, AllocationType, Win32Protect, MapStatus, UnmapStatus) |
| #define | CheckObject(Handle, Pointers, Handles) |
Functions | |
| static VOID | KmtInitTestFiles (PHANDLE ReadOnlyFile, PHANDLE WriteOnlyFile, PHANDLE ExecutableFile) |
| static VOID | SimpleErrorChecks (HANDLE FileHandleReadOnly, HANDLE FileHandleWriteOnly, HANDLE ExecutableImg) |
| static VOID | AdvancedErrorChecks (HANDLE FileHandleReadOnly, HANDLE FileHandleWriteOnly) |
| static SIZE_T | CompareFileContents (HANDLE FileHandle, ULONG BufferLength, PVOID Buffer) |
| static VOID NTAPI | SystemProcessWorker (PVOID StartContext) |
| static VOID | BehaviorChecks (HANDLE FileHandleReadOnly, HANDLE FileHandleWriteOnly) |
| static VOID | PageFileBehaviorChecks () |
| START_TEST (ZwMapViewOfSection) | |
Variables | |
| static UNICODE_STRING | FileReadOnlyPath = RTL_CONSTANT_STRING(L"\\SystemRoot\\system32\\ntdll.dll") |
| static UNICODE_STRING | NtosImgPath = RTL_CONSTANT_STRING(L"\\SystemRoot\\system32\\ntoskrnl.exe") |
| static UNICODE_STRING | WritableFilePath = RTL_CONSTANT_STRING(L"\\SystemRoot\\kmtest-MmSection.txt") |
| static UNICODE_STRING | SharedSectionName = RTL_CONSTANT_STRING(L"\\BaseNamedObjects\\kmtest-SharedSection") |
| const char | TestString [] |
| const ULONG | TestStringSize |
| static OBJECT_ATTRIBUTES | NtdllObject |
| static OBJECT_ATTRIBUTES | KmtestFileObject |
| static OBJECT_ATTRIBUTES | NtoskrnlFileObject |
Definition at line 57 of file ZwMapViewOfSection.c.
| #define IGNORE -99 |
Definition at line 10 of file ZwMapViewOfSection.c.
Definition at line 13 of file ZwMapViewOfSection.c.
| #define MmTestMapView | ( | Object, | |
| ProcessHandle, | |||
| BaseAddress2, | |||
| ZeroBits, | |||
| CommitSize, | |||
| SectionOffset, | |||
| ViewSize2, | |||
| InheritDisposition, | |||
| AllocationType, | |||
| Win32Protect, | |||
| MapStatus, | |||
| UnmapStatus | |||
| ) |
Definition at line 44 of file ZwMapViewOfSection.c.
| #define NEW_CONTENT "NewContent" |
Definition at line 11 of file ZwMapViewOfSection.c.
| #define NEW_CONTENT_LEN sizeof(NEW_CONTENT) |
Definition at line 12 of file ZwMapViewOfSection.c.
| #define ok_invalid_parameter | ( | Status | ) | ok(IsInvalidParamStatus(Status), "Invalid status code (0x%X)\n", Status) |
Definition at line 16 of file ZwMapViewOfSection.c.
| #define TestMapView | ( | SectionHandle, | |
| ProcessHandle, | |||
| BaseAddress2, | |||
| ZeroBits, | |||
| CommitSize, | |||
| SectionOffset, | |||
| ViewSize2, | |||
| InheritDisposition, | |||
| AllocationType, | |||
| Win32Protect, | |||
| MapStatus, | |||
| UnmapStatus | |||
| ) |
Definition at line 28 of file ZwMapViewOfSection.c.
Definition at line 246 of file ZwMapViewOfSection.c.
Referenced by START_TEST().
Definition at line 400 of file ZwMapViewOfSection.c.
Referenced by START_TEST().
Definition at line 309 of file ZwMapViewOfSection.c.
Referenced by BehaviorChecks().
|
static |
Definition at line 69 of file ZwMapViewOfSection.c.
Referenced by START_TEST().
|
static |
Definition at line 558 of file ZwMapViewOfSection.c.
Referenced by START_TEST().
|
static |
Definition at line 104 of file ZwMapViewOfSection.c.
Referenced by START_TEST().
| START_TEST | ( | ZwMapViewOfSection | ) |
Definition at line 632 of file ZwMapViewOfSection.c.
Definition at line 339 of file ZwMapViewOfSection.c.
Referenced by BehaviorChecks(), and PageFileBehaviorChecks().
|
static |
Definition at line 18 of file ZwMapViewOfSection.c.
Referenced by START_TEST().
|
static |
Definition at line 25 of file ZwMapViewOfSection.c.
Referenced by KmtInitTestFiles(), and START_TEST().
|
static |
Definition at line 24 of file ZwMapViewOfSection.c.
Referenced by KmtInitTestFiles(), and START_TEST().
|
static |
Definition at line 19 of file ZwMapViewOfSection.c.
Referenced by START_TEST().
|
static |
Definition at line 26 of file ZwMapViewOfSection.c.
Referenced by START_TEST().
|
static |
Definition at line 21 of file ZwMapViewOfSection.c.
Referenced by BehaviorChecks(), PageFileBehaviorChecks(), and SystemProcessWorker().
|
extern |
Definition at line 16 of file ZwAllocateVirtualMemory.c.
Definition at line 17 of file ZwAllocateVirtualMemory.c.
Referenced by AdvancedErrorChecks(), BehaviorChecks(), KmtInitTestFiles(), PageFileBehaviorChecks(), SimpleAllocation(), SimpleErrorChecks(), StressTesting(), SystemProcessTestWorker(), and SystemProcessWorker().
|
static |
Definition at line 20 of file ZwMapViewOfSection.c.
Referenced by START_TEST().