[Wine-devel] [6/8] ntoskrnl.exe: Add stub for KeSetPriorityThread

Alexander Morozov =?iso-8859-1?q?amorozov_=CE=C1_etersoft=2Eru?=
Пт Авг 1 14:01:12 MSD 2008


----------- следующая часть -----------
From b1ba7d1fb06460a75106c88a17f9d674e56d0850 Mon Sep 17 00:00:00 2001
From: Alexander Morozov <amorozov на etersoft.ru>
Date: Fri, 1 Aug 2008 12:19:25 +0400
Subject: [PATCH] ntoskrnl.exe: Add stub for KeSetPriorityThread

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

diff --git a/dlls/ntoskrnl.exe/ntoskrnl.c b/dlls/ntoskrnl.exe/ntoskrnl.c
index 286e66d..e4e426e 100644
--- a/dlls/ntoskrnl.exe/ntoskrnl.c
+++ b/dlls/ntoskrnl.exe/ntoskrnl.c
@@ -1034,6 +1034,16 @@ ULONG WINAPI KeQueryTimeIncrement(void)
 
 
 /***********************************************************************
+ *           KeSetPriorityThread   (NTOSKRNL.EXE.@)
+ */
+KPRIORITY WINAPI KeSetPriorityThread( PKTHREAD Thread, KPRIORITY Priority )
+{
+    FIXME( "%p %d\n", Thread, Priority );
+    return 0;
+}
+
+
+/***********************************************************************
  *           KeWaitForSingleObject   (NTOSKRNL.EXE.@)
  */
 NTSTATUS WINAPI KeWaitForSingleObject( PVOID Object, KWAIT_REASON WaitReason,
diff --git a/dlls/ntoskrnl.exe/ntoskrnl.exe.spec b/dlls/ntoskrnl.exe/ntoskrnl.exe.spec
index 50a229e..a3a755f 100644
--- a/dlls/ntoskrnl.exe/ntoskrnl.exe.spec
+++ b/dlls/ntoskrnl.exe/ntoskrnl.exe.spec
@@ -612,7 +612,7 @@
 @ stub KeSetIdealProcessorThread
 @ stub KeSetImportanceDpc
 @ stub KeSetKernelStackSwapEnable
-@ stub KeSetPriorityThread
+@ stdcall KeSetPriorityThread(ptr long)
 @ stub KeSetProfileIrql
 @ stub KeSetSystemAffinityThread
 @ stub KeSetTargetProcessorDpc
diff --git a/include/ddk/wdm.h b/include/ddk/wdm.h
index 833c591..3193aaa 100644
--- a/include/ddk/wdm.h
+++ b/include/ddk/wdm.h
@@ -1024,6 +1024,7 @@ PKTHREAD  WINAPI KeGetCurrentThread(void);
 void      WINAPI KeQuerySystemTime(LARGE_INTEGER*);
 void      WINAPI KeQueryTickCount(LARGE_INTEGER*);
 ULONG     WINAPI KeQueryTimeIncrement(void);
+KPRIORITY WINAPI KeSetPriorityThread(PKTHREAD, KPRIORITY);
 
 PVOID     WINAPI MmAllocateNonCachedMemory(SIZE_T);
 void      WINAPI MmFreeNonCachedMemory(PVOID,SIZE_T);
-- 
1.5.4.5.GIT



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