ReactOS 0.4.16-dev-311-g9382aa2
|
#include <kmt_test.h>
Go to the source code of this file.
Macros | |
#define | IGNORE -999 |
#define | NO_HANDLE_CLOSE -998 |
#define | _4mb 4194304 |
#define | CREATE_SECTION(Handle, DesiredAccess, Attributes, Size, SectionPageProtection, AllocationAttributes, FileHandle, RetStatus, CloseRetStatus) |
#define | TestMapView(SectionHandle, ProcessHandle, BaseAddress2, ZeroBits, CommitSize, SectionOffset, ViewSize2, InheritDisposition, AllocationType, Win32Protect, MapStatus, UnmapStatus) |
#define | CheckObject(Handle, Pointers, Handles) |
#define | CheckSection(SectionHandle, SectionFlag, SectionSize, RetStatus) |
Functions | |
static VOID | FileSectionViewPermissionCheck (HANDLE ReadOnlyFile, HANDLE WriteOnlyFile, HANDLE ExecutableFile) |
static VOID | KmtInitTestFiles (PHANDLE ReadOnlyFile, PHANDLE WriteOnlyFile, PHANDLE ExecutableFile) |
static VOID | SimpleErrorChecks (HANDLE FileHandleReadOnly, HANDLE FileHandleWriteOnly, HANDLE FileHandleExecuteOnly) |
static VOID | BasicBehaviorChecks (HANDLE FileHandle) |
START_TEST (ZwCreateSection) | |
Variables | |
const char | TestString [] |
const ULONG | TestStringSize |
static UNICODE_STRING | FileReadOnlyPath = RTL_CONSTANT_STRING(L"\\SystemRoot\\system32\\ntdll.dll") |
static UNICODE_STRING | WritableFilePath = RTL_CONSTANT_STRING(L"\\SystemRoot\\kmtest-MmSection.txt") |
static UNICODE_STRING | CalcImgPath = RTL_CONSTANT_STRING(L"\\SystemRoot\\system32\\calc.exe") |
static OBJECT_ATTRIBUTES | NtdllObject |
static OBJECT_ATTRIBUTES | KmtestFileObject |
static OBJECT_ATTRIBUTES | CalcFileObject |
#define _4mb 4194304 |
Definition at line 12 of file ZwCreateSection.c.
Definition at line 50 of file ZwCreateSection.c.
#define CheckSection | ( | SectionHandle, | |
SectionFlag, | |||
SectionSize, | |||
RetStatus | |||
) |
Definition at line 61 of file ZwCreateSection.c.
#define CREATE_SECTION | ( | Handle, | |
DesiredAccess, | |||
Attributes, | |||
Size, | |||
SectionPageProtection, | |||
AllocationAttributes, | |||
FileHandle, | |||
RetStatus, | |||
CloseRetStatus | |||
) |
Definition at line 22 of file ZwCreateSection.c.
#define IGNORE -999 |
Definition at line 10 of file ZwCreateSection.c.
#define NO_HANDLE_CLOSE -998 |
Definition at line 11 of file ZwCreateSection.c.
#define TestMapView | ( | SectionHandle, | |
ProcessHandle, | |||
BaseAddress2, | |||
ZeroBits, | |||
CommitSize, | |||
SectionOffset, | |||
ViewSize2, | |||
InheritDisposition, | |||
AllocationType, | |||
Win32Protect, | |||
MapStatus, | |||
UnmapStatus | |||
) |
Definition at line 37 of file ZwCreateSection.c.
Definition at line 454 of file ZwCreateSection.c.
Referenced by START_TEST().
|
static |
Definition at line 78 of file ZwCreateSection.c.
Referenced by START_TEST().
|
static |
Definition at line 253 of file ZwCreateSection.c.
Referenced by START_TEST().
|
static |
Definition at line 288 of file ZwCreateSection.c.
Referenced by START_TEST().
START_TEST | ( | ZwCreateSection | ) |
Definition at line 494 of file ZwCreateSection.c.
|
static |
Definition at line 20 of file ZwCreateSection.c.
Referenced by KmtInitTestFiles(), and START_TEST().
|
static |
Definition at line 17 of file ZwCreateSection.c.
Referenced by START_TEST().
|
static |
Definition at line 15 of file ZwCreateSection.c.
Referenced by START_TEST().
|
static |
Definition at line 19 of file ZwCreateSection.c.
Referenced by DriverEntry(), KmtInitTestFiles(), and START_TEST().
|
static |
Definition at line 18 of file ZwCreateSection.c.
Referenced by KmtInitTestFiles(), and START_TEST().
|
extern |
Definition at line 16 of file ZwAllocateVirtualMemory.c.
Definition at line 17 of file ZwAllocateVirtualMemory.c.
Referenced by BasicBehaviorChecks(), FileSectionViewPermissionCheck(), KmtInitTestFiles(), and SimpleErrorChecks().
|
static |
Definition at line 16 of file ZwCreateSection.c.
Referenced by START_TEST().