Module: wine Branch: master Commit: fbbd91544f2ad1cb179ee6f3cbe124f8a9b79f18 URL: http://source.winehq.org/git/wine.git/?a=commit;h=fbbd91544f2ad1cb179ee6f3cb...
Author: James Hawkins truiken@gmail.com Date: Mon Jun 18 14:19:09 2007 -0700
ntoskrnl.exe: Add a stub implementation of KeInitializeTimer.
---
dlls/ntoskrnl.exe/ntoskrnl.c | 9 +++++++++ dlls/ntoskrnl.exe/ntoskrnl.exe.spec | 2 +- include/ddk/wdm.h | 8 ++++++++ 3 files changed, 18 insertions(+), 1 deletions(-)
diff --git a/dlls/ntoskrnl.exe/ntoskrnl.c b/dlls/ntoskrnl.exe/ntoskrnl.c index 3bbb205..d793d1a 100644 --- a/dlls/ntoskrnl.exe/ntoskrnl.c +++ b/dlls/ntoskrnl.exe/ntoskrnl.c @@ -419,6 +419,15 @@ void WINAPI ExFreePoolWithTag( void *ptr, ULONG tag )
/*********************************************************************** + * KeInitializeTimer (NTOSKRNL.EXE.@) + */ +void WINAPI KeInitializeTimer( PKTIMER Timer ) +{ + FIXME("%p\n", Timer); +} + + +/*********************************************************************** * KeQuerySystemTime (NTOSKRNL.EXE.@) */ void WINAPI KeQuerySystemTime( LARGE_INTEGER *time ) diff --git a/dlls/ntoskrnl.exe/ntoskrnl.exe.spec b/dlls/ntoskrnl.exe/ntoskrnl.exe.spec index 192e255..45449a0 100644 --- a/dlls/ntoskrnl.exe/ntoskrnl.exe.spec +++ b/dlls/ntoskrnl.exe/ntoskrnl.exe.spec @@ -553,7 +553,7 @@ @ stub KeInitializeQueue @ stub KeInitializeSemaphore @ stub KeInitializeSpinLock -@ stub KeInitializeTimer +@ stdcall KeInitializeTimer(ptr) @ stub KeInitializeTimerEx @ stub KeInsertByKeyDeviceQueue @ stub KeInsertDeviceQueue diff --git a/include/ddk/wdm.h b/include/ddk/wdm.h index 38b3625..8aabf79 100644 --- a/include/ddk/wdm.h +++ b/include/ddk/wdm.h @@ -780,6 +780,14 @@ typedef struct _MDL { ULONG ByteOffset; } MDL, *PMDL;
+typedef struct _KTIMER { + DISPATCHER_HEADER Header; + ULARGE_INTEGER DueTime; + LIST_ENTRY TimerListEntry; + struct _KDPC *Dpc; + LONG Period; +} KTIMER, *PKTIMER; + typedef struct _KSYSTEM_TIME { ULONG LowPart; LONG High1Time;