#include "exp.h"
#include <version.h>
#include <string.h>
Go to the source code of this file.
Defines | |
#define | DumpPool(x, y) |
#define | HANDLE_TEST_SIZE 30 |
Functions | |
BOOLEAN | ExTest (VOID) |
BOOLEAN | DoEventTest () |
BOOLEAN | DoExceptionTest () |
BOOLEAN | DoMutantTest () |
BOOLEAN | DoSemaphoreTest () |
VOID | TimerApcRoutine (IN PVOID TimerContext, IN ULONG TimerLowValue, IN LONG TimerHighValue) |
BOOLEAN | DoTimerTest () |
BOOLEAN | TestDupHandle1 (IN PVOID HandleTableEntry) |
BOOLEAN | TestDupHandle4 (IN PVOID HandleTableEntry) |
BOOLEAN | TestEnumHandle1 (IN PVOID HandleTableEntry, IN PVOID EnumParameter) |
BOOLEAN | TestEnumHandle4 (IN PVOID HandleTableEntry, IN PVOID EnumParameter) |
BOOLEAN | DoHandleTest (void) |
BOOLEAN | DoInfoTest (void) |
BOOLEAN | DoLuidTest (void) |
BOOLEAN | DoMemoryTest (void) |
BOOLEAN | DoPartyTest (void) |
BOOLEAN | DoPoolTest (void) |
BOOLEAN | DoZoneTest (void) |
PVOID | ExDumpResource (IN PERESOURCE Resource) |
VOID | Reader (IN PVOID StartContext) |
VOID | Writer (IN PVOID StartContext) |
VOID | ReaderTurnedWriter (IN PVOID StartContext) |
BOOLEAN | DoResourceTest (void) |
BOOLEAN | DoBitMapTest (void) |
int _CDECL | main (int argc, char *argv[]) |
void | oops () |
Variables | |
PTESTFCN | TestFunction = ExTest |
USHORT | TestEvent = 0 |
USHORT | TestHandle = 0 |
USHORT | TestInfo = 0 |
USHORT | TestLuid = 0 |
USHORT | TestMemory = 0 |
USHORT | TestParty = 0 |
USHORT | TestPool = 0 |
USHORT | TestResource = 0 |
USHORT | TestBitMap = 0 |
USHORT | TestSemaphore = 0 |
USHORT | TestTimer = 0 |
USHORT | TestZone = 0 |
USHORT | TestMutant = 0 |
USHORT | TestException = 0 |
char | MemoryTestBuffer1 [128] |
char | TestString1 [] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz" |
char | TestString2 [] = "123456789012345678901234567890123456789012345678901234567890" |
char | MemoryTestBuffer2 [128] |
ERESOURCE | Resource |
ULONG | ResourceCount |
KSEMAPHORE | ResourceSemaphore |
|
Definition at line 26 of file tex.c. Referenced by DoPoolTest(). |
|
Definition at line 1157 of file tex.c. Referenced by DoHandleTest(). |
|
Definition at line 1781 of file tex.c. References BitMap, DbgPrint, ExAllocatePool, FALSE, NonPagedPool, RtlClearAllBits(), RtlClearBits(), RtlFindClearBitsAndSet(), RtlFindSetBitsAndClear(), RtlInitializeBitMap(), RtlSetAllBits(), RtlSetBits(), Size, and TRUE. Referenced by ExTest().
|
|
Definition at line 72 of file tex.c. References DbgPrint, FALSE, L, NtClose(), NTSTATUS(), NULL, RtlInitUnicodeString(), Status, and TRUE. Referenced by ExTest().
|
|
Definition at line 312 of file tex.c. References DbgPrint, NTSTATUS(), NULL, Status, and TRUE. Referenced by ExTest().
|
|
Definition at line 1160 of file tex.c. References DbgPrint, ExCreateHandle(), ExCreateHandleTable(), ExDestroyHandle(), ExDestroyHandleTable(), ExDupHandleTable(), ExEnumHandleTable(), ExMapHandleToPointer(), FALSE, HANDLE_TEST_SIZE, L, NULL, TestDupHandle1(), TestDupHandle4(), TestEnumHandle1(), TestEnumHandle4(), and TRUE. Referenced by ExTest().
|
|
Definition at line 1260 of file tex.c. References DbgPrint, FALSE, NT_SUCCESS, NTSTATUS(), and Status. Referenced by ExTest().
|
|
Definition at line 1305 of file tex.c. References DbgPrint, FALSE, NT_SUCCESS, NTSTATUS(), Status, and TRUE. Referenced by ExTest().
|
|
Definition at line 1369 of file tex.c. References DbgPrint, FALSE, MemoryTestBuffer1, MemoryTestBuffer2, TestString1, TestString2, and TRUE. Referenced by ExTest().
|
|
Definition at line 362 of file tex.c. References Count, DbgPrint, FALSE, L, NtClose(), NTSTATUS(), NULL, RtlInitUnicodeString(), Status, and TRUE. Referenced by ExTest().
|
|
Definition at line 1445 of file tex.c. References DbgPrint, Handle, NTSTATUS(), NULL, ObjectAttributes, Status, and TRUE. Referenced by ExTest().
|
|
Definition at line 1468 of file tex.c. References DumpPool, ExAllocatePool, ExFreePool(), L, NonPagedPool, and TRUE. Referenced by ExTest().
|
|
Definition at line 1706 of file tex.c. References DbgPrint, Executive, ExInitializeResource, FALSE, KeInitializeSemaphore(), KernelMode, KeWaitForSingleObject(), NT_SUCCESS, NULL, PsCreateSystemThread(), Reader(), ReaderTurnedWriter(), Resource, ResourceCount, ResourceSemaphore, TRUE, and Writer(). Referenced by ExTest().
|
|
Definition at line 591 of file tex.c. References Count, DbgPrint, L, NtClose(), NTSTATUS(), NULL, RtlInitUnicodeString(), Status, and TRUE. Referenced by ExTest().
|
|
Definition at line 817 of file tex.c. References DbgPrint, FALSE, L, NT_SUCCESS, NtClose(), NTSTATUS(), NULL, RtlInitUnicodeString(), Status, TimerApcRoutine(), and TRUE. Referenced by ExTest().
|
|
Definition at line 1510 of file tex.c. References DbgPrint, ExAllocateFromZone, ExAllocatePool, ExExtendZone(), ExFreeToZone, ExInitializeZone(), L, NonPagedPool, NTSTATUS(), and TRUE. Referenced by ExTest().
|
|
|
|
Definition at line 2177 of file tex.c. References DbgPrint, DoBitMapTest(), DoEventTest(), DoExceptionTest(), DoHandleTest(), DoInfoTest(), DoLuidTest(), DoMemoryTest(), DoMutantTest(), DoPartyTest(), DoPoolTest(), DoResourceTest(), DoSemaphoreTest(), DoTimerTest(), DoZoneTest(), NULL, TestBitMap, TestEvent, TestException, TestFunction, TestHandle, TestInfo, TestLuid, TestMemory, TestMutant, TestParty, TestPool, TestResource, TestSemaphore, TestTimer, TestZone, TRUE, and USHORT.
|
|
Definition at line 2239 of file tex.c. References c, DbgPrint, KiSystemStartup(), TestBitMap, TestEvent, TestException, TestFunction, TestHandle, TestInfo, TestLuid, TestMemory, TestMutant, TestParty, TestPool, TestResource, TestSemaphore, TestTimer, TestZone, and USHORT.
|
|
Definition at line 2376 of file tex.c. References ExTimerRundown().
|
|
Definition at line 1567 of file tex.c. References DbgPrint, ExAcquireResourceShared, ExReleaseResource, FALSE, KeDelayExecutionThread(), KeReleaseSemaphore(), KernelMode, Resource, ResourceCount, ResourceSemaphore, Time, TRUE, and VOID(). Referenced by DoResourceTest().
|
|
Definition at line 1646 of file tex.c. References DbgPrint, ExAcquireResourceShared, ExConvertExclusiveToShared, ExReleaseResource, FALSE, KeDelayExecutionThread(), KeReleaseSemaphore(), KernelMode, Resource, ResourceCount, ResourceSemaphore, Time, TRUE, and VOID(). Referenced by DoResourceTest().
|
|
Definition at line 1101 of file tex.c. References DbgPrint, and TRUE. Referenced by DoHandleTest().
|
|
Definition at line 1110 of file tex.c. References DbgPrint, FALSE, and TRUE. Referenced by DoHandleTest().
|
|
Definition at line 1130 of file tex.c. Referenced by DoHandleTest().
|
|
Definition at line 1144 of file tex.c. Referenced by DoHandleTest().
|
|
Definition at line 804 of file tex.c. References TRUE. Referenced by DoTimerTest(), and NtSetTimer().
|
|
Definition at line 1606 of file tex.c. References DbgPrint, ExAcquireResourceExclusive, ExReleaseResource, FALSE, KeDelayExecutionThread(), KeReleaseSemaphore(), KernelMode, Resource, ResourceCount, ResourceSemaphore, Time, TRUE, and VOID(). Referenced by DoResourceTest().
|
|
Definition at line 1363 of file tex.c. Referenced by DoMemoryTest(). |
|
Definition at line 1366 of file tex.c. Referenced by DoMemoryTest(). |
|
|
Definition at line 1562 of file tex.c. Referenced by DoResourceTest(), Reader(), ReaderTurnedWriter(), and Writer(). |
|
Definition at line 1563 of file tex.c. Referenced by DoResourceTest(), Reader(), ReaderTurnedWriter(), and Writer(). |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Definition at line 1364 of file tex.c. Referenced by DoMemoryTest(). |
|
Definition at line 1365 of file tex.c. Referenced by DoMemoryTest(). |
|
|
|
|