48 (
PVOID) &PerformanceInfo,
60 PerformanceInfo.CommittedPages, PerformanceInfo.AvailablePages);
66 DPRINT(
"Finishing monitoring thread.\n");
88 DPRINT1(
"Failed to start a monitoring thread\n");
103 DbgPrint(
"\n===============================================\n Memory Manager Information and Test driver\n");
104 DbgPrint(
"Time;Memory pages allocated;Memory pages free\n");
#define NT_SUCCESS(StatCode)
DRIVER_INITIALIZE DriverEntry
#define KeQuerySystemTime(t)
#define KeDelayExecutionThread(mode, foo, t)
NTSYSAPI NTSTATUS NTAPI ZwQuerySystemInformation(IN SYSTEM_INFORMATION_CLASS SystemInfoClass, OUT PVOID SystemInfoBuffer, IN ULONG SystemInfoBufferSize, OUT PULONG BytesReturned OPTIONAL)
static VOID NTAPI MonitorThread(PVOID Ignored)
VOID StartMemoryMonitor()
HANDLE MonitorThreadHandle
#define SystemPerformanceInformation
#define THREAD_ALL_ACCESS
_In_ ULONG _In_ ULONG _In_ ULONG Length
NTSTATUS NTAPI PsTerminateSystemThread(IN NTSTATUS ExitStatus)
NTSTATUS NTAPI PsCreateSystemThread(OUT PHANDLE ThreadHandle, IN ACCESS_MASK DesiredAccess, IN POBJECT_ATTRIBUTES ObjectAttributes, IN HANDLE ProcessHandle, IN PCLIENT_ID ClientId, IN PKSTART_ROUTINE StartRoutine, IN PVOID StartContext)
_Must_inspect_result_ _In_ PDRIVER_OBJECT _In_ PCUNICODE_STRING RegistryPath
_Must_inspect_result_ _In_ PDRIVER_OBJECT DriverObject