>From 27c33c2db0bcf5260555b5362d2999f689b70006 Mon Sep 17 00:00:00 2001 From: Detlef Riekenberg Date: Mon, 7 Apr 2008 21:15:46 +0200 Subject: [PATCH] ntoskrnl.exe: Implement KeQueryInterruptTime --- dlls/ntoskrnl.exe/ntoskrnl.c | 15 +++++++++++++++ dlls/ntoskrnl.exe/ntoskrnl.exe.spec | 2 +- 2 files changed, 16 insertions(+), 1 deletions(-) diff --git a/dlls/ntoskrnl.exe/ntoskrnl.c b/dlls/ntoskrnl.exe/ntoskrnl.c index cd155f7..cf1603a 100644 --- a/dlls/ntoskrnl.exe/ntoskrnl.c +++ b/dlls/ntoskrnl.exe/ntoskrnl.c @@ -529,6 +529,21 @@ KAFFINITY WINAPI KeQueryActiveProcessors( void ) } +/********************************************************************** + * KeQueryInterruptTime (NTOSKRNL.EXE.@) + * + * Return the interrupt time count + * + */ +ULONGLONG WINAPI KeQueryInterruptTime( void ) +{ + LARGE_INTEGER totaltime; + + KeQueryTickCount(&totaltime); + return totaltime.QuadPart; +} + + /*********************************************************************** * KeQuerySystemTime (NTOSKRNL.EXE.@) */ diff --git a/dlls/ntoskrnl.exe/ntoskrnl.exe.spec b/dlls/ntoskrnl.exe/ntoskrnl.exe.spec index dbab0fa..3aef928 100644 --- a/dlls/ntoskrnl.exe/ntoskrnl.exe.spec +++ b/dlls/ntoskrnl.exe/ntoskrnl.exe.spec @@ -570,7 +570,7 @@ @ stub KeProfileInterruptWithSource @ stub KePulseEvent @ stdcall KeQueryActiveProcessors() -@ stub KeQueryInterruptTime +@ stdcall KeQueryInterruptTime() @ stub KeQueryPriorityThread @ stub KeQueryRuntimeThread @ stdcall KeQuerySystemTime(ptr) -- 1.5.3.6