[Wine-devel] [try 2] ntoskrnl.exe: Add stub for KeDelayExecutionThread

Alexander Morozov =?iso-8859-1?q?amorozov_=CE=C1_etersoft=2Eru?=
Чт Авг 7 11:32:26 MSD 2008


----------- следующая часть -----------
From d1b9b6938b89c76cd3cd6e9a64c2591fd1f8a38e Mon Sep 17 00:00:00 2001
From: Alexander Morozov <amorozov на etersoft.ru>
Date: Thu, 31 Jul 2008 19:46:32 +0400
Subject: [PATCH] ntoskrnl.exe: Add stub for KeDelayExecutionThread

---
 dlls/ntoskrnl.exe/ntoskrnl.c        |   11 +++++++++++
 dlls/ntoskrnl.exe/ntoskrnl.exe.spec |    2 +-
 include/ddk/wdm.h                   |    1 +
 3 files changed, 13 insertions(+), 1 deletions(-)

diff --git a/dlls/ntoskrnl.exe/ntoskrnl.c b/dlls/ntoskrnl.exe/ntoskrnl.c
index f91cea3..620f38b 100644
--- a/dlls/ntoskrnl.exe/ntoskrnl.c
+++ b/dlls/ntoskrnl.exe/ntoskrnl.c
@@ -877,6 +877,17 @@ PKTHREAD WINAPI KeGetCurrentThread(void)
 
 
 /***********************************************************************
+ *           KeDelayExecutionThread   (NTOSKRNL.EXE.@)
+ */
+NTSTATUS WINAPI KeDelayExecutionThread ( KPROCESSOR_MODE WaitMode,
+        BOOLEAN Alertable, PLARGE_INTEGER Interval )
+{
+    FIXME( "%d %d %p\n", WaitMode, Alertable, Interval );
+    return STATUS_SUCCESS;
+}
+
+
+/***********************************************************************
  *           KeInitializeEvent   (NTOSKRNL.EXE.@)
  */
 void WINAPI KeInitializeEvent( PRKEVENT Event, EVENT_TYPE Type,
diff --git a/dlls/ntoskrnl.exe/ntoskrnl.exe.spec b/dlls/ntoskrnl.exe/ntoskrnl.exe.spec
index 0fe5a8f..be5c7fb 100644
--- a/dlls/ntoskrnl.exe/ntoskrnl.exe.spec
+++ b/dlls/ntoskrnl.exe/ntoskrnl.exe.spec
@@ -518,7 +518,7 @@
 @ stdcall KeClearEvent(ptr)
 @ stub KeConnectInterrupt
 @ stub KeDcacheFlushCount
-@ stub KeDelayExecutionThread
+@ stdcall KeDelayExecutionThread(long long ptr)
 @ stub KeDeregisterBugCheckCallback
 @ stub KeDeregisterBugCheckReasonCallback
 @ stub KeDetachProcess
diff --git a/include/ddk/wdm.h b/include/ddk/wdm.h
index 41a8f9f..63797d0 100644
--- a/include/ddk/wdm.h
+++ b/include/ddk/wdm.h
@@ -1021,6 +1021,7 @@ void      WINAPI IoFreeIrp(IRP*);
 PEPROCESS WINAPI IoGetCurrentProcess(void);
 void      WINAPI IoInitializeIrp(IRP*,USHORT,CCHAR);
 
+NTSTATUS  WINAPI KeDelayExecutionThread(KPROCESSOR_MODE,BOOLEAN,PLARGE_INTEGER);
 PKTHREAD  WINAPI KeGetCurrentThread(void);
 void      WINAPI KeQuerySystemTime(LARGE_INTEGER*);
 void      WINAPI KeQueryTickCount(LARGE_INTEGER*);
-- 
1.5.4.5.GIT



Подробная информация о списке рассылки Wine-devel