Alex Henrie : ntoskrnl: Add KeSetImportanceDpc stub.

Alexandre Julliard julliard at winehq.org
Mon Apr 20 15:01:55 CDT 2020


Module: wine
Branch: oldstable
Commit: 883e8e8580806f9347e0c09cf5f13999e61a3676
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=883e8e8580806f9347e0c09cf5f13999e61a3676

Author: Alex Henrie <alexhenrie24 at gmail.com>
Date:   Thu Dec 26 02:18:54 2019 -0700

ntoskrnl: Add KeSetImportanceDpc stub.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=48358
Signed-off-by: Alex Henrie <alexhenrie24 at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
(cherry picked from commit f307e94c0e757bf60919fc1d1bdb2bf8f86d2c51)
Signed-off-by: Michael Stefaniuc <mstefani at winehq.org>

---

 dlls/ntoskrnl.exe/ntoskrnl.c        | 8 ++++++++
 dlls/ntoskrnl.exe/ntoskrnl.exe.spec | 2 +-
 include/ddk/wdm.h                   | 7 +++++++
 3 files changed, 16 insertions(+), 1 deletion(-)

diff --git a/dlls/ntoskrnl.exe/ntoskrnl.c b/dlls/ntoskrnl.exe/ntoskrnl.c
index a84805b703..cfcd3239ba 100644
--- a/dlls/ntoskrnl.exe/ntoskrnl.c
+++ b/dlls/ntoskrnl.exe/ntoskrnl.c
@@ -2947,6 +2947,14 @@ VOID WINAPI KeInitializeDpc(PRKDPC Dpc, PKDEFERRED_ROUTINE DeferredRoutine, PVOI
     FIXME("stub\n");
 }
 
+/***********************************************************************
+ *          KeSetImportanceDpc   (NTOSKRNL.EXE.@)
+ */
+VOID WINAPI KeSetImportanceDpc(PRKDPC dpc, KDPC_IMPORTANCE importance)
+{
+    FIXME("%p, %d stub\n", dpc, importance);
+}
+
 /***********************************************************************
  *          KeSetTargetProcessorDpc   (NTOSKRNL.EXE.@)
  */
diff --git a/dlls/ntoskrnl.exe/ntoskrnl.exe.spec b/dlls/ntoskrnl.exe/ntoskrnl.exe.spec
index 64090ac0c4..4fdbc8ac64 100644
--- a/dlls/ntoskrnl.exe/ntoskrnl.exe.spec
+++ b/dlls/ntoskrnl.exe/ntoskrnl.exe.spec
@@ -615,7 +615,7 @@
 @ stdcall KeSetEvent(ptr long long)
 @ stub KeSetEventBoostPriority
 @ stub KeSetIdealProcessorThread
-@ stub KeSetImportanceDpc
+@ stdcall KeSetImportanceDpc(ptr long)
 @ stub KeSetKernelStackSwapEnable
 @ stdcall KeSetPriorityThread(ptr long)
 @ stub KeSetProfileIrql
diff --git a/include/ddk/wdm.h b/include/ddk/wdm.h
index 76a3e8657d..1e7593e8d3 100644
--- a/include/ddk/wdm.h
+++ b/include/ddk/wdm.h
@@ -91,6 +91,13 @@ typedef struct _KDPC {
   PULONG_PTR  Lock;
 } KDPC, *PKDPC, *RESTRICTED_POINTER PRKDPC;
 
+typedef enum _KDPC_IMPORTANCE {
+  LowImportance,
+  MediumImportance,
+  HighImportance,
+  MediumHighImportance
+} KDPC_IMPORTANCE;
+
 typedef struct _KDEVICE_QUEUE_ENTRY {
   LIST_ENTRY  DeviceListEntry;
   ULONG  SortKey;




More information about the wine-cvs mailing list