ntoskrnl.exe: Add Stub KeInsertQueue (try 2)
Alistair Leslie-Hughes
leslie_alistair at hotmail.com
Tue Mar 18 22:21:01 CDT 2014
Hi,
Changelog:
ntoskrnl.exe: Add Stub KeInsertQueue
Best Regards
Alistair Leslie-Hughes
-------------- next part --------------
>From fed83548de33713e8c11dadd71e9c09b21ca260f Mon Sep 17 00:00:00 2001
From: Alistair Leslie-Hughes <leslie_alistair at hotmail.com>
Date: Wed, 19 Mar 2014 09:54:29 +1100
Subject: [PATCH] Add Stub KeInsertQueue
To: wine-patches <wine-patches at winehq.org>
---
dlls/ntoskrnl.exe/ntoskrnl.c | 9 +++++++++
dlls/ntoskrnl.exe/ntoskrnl.exe.spec | 2 +-
include/ddk/ntifs.h | 31 +++++++++++++++++++++++++++++++
3 files changed, 41 insertions(+), 1 deletion(-)
create mode 100644 include/ddk/ntifs.h
diff --git a/dlls/ntoskrnl.exe/ntoskrnl.c b/dlls/ntoskrnl.exe/ntoskrnl.c
index f227e11..c1826c7 100644
--- a/dlls/ntoskrnl.exe/ntoskrnl.c
+++ b/dlls/ntoskrnl.exe/ntoskrnl.c
@@ -34,6 +34,7 @@
#include "excpt.h"
#include "winioctl.h"
#include "ddk/ntddk.h"
+#include "ddk/ntifs.h"
#include "wine/unicode.h"
#include "wine/server.h"
#include "wine/list.h"
@@ -1287,6 +1288,14 @@ void WINAPI KeInitializeTimer( PKTIMER Timer )
KeInitializeTimerEx(Timer, NotificationTimer);
}
+/***********************************************************************
+ * KeInsertQueue (NTOSKRNL.EXE.@)
+ */
+LONG WINAPI KeInsertQueue(PRKQUEUE Queue, PLIST_ENTRY Entry)
+{
+ FIXME( "stub: %p %p\n", Queue, Entry );
+ return 0;
+}
/**********************************************************************
* KeQueryActiveProcessors (NTOSKRNL.EXE.@)
diff --git a/dlls/ntoskrnl.exe/ntoskrnl.exe.spec b/dlls/ntoskrnl.exe/ntoskrnl.exe.spec
index cec8c87..0fc9188 100644
--- a/dlls/ntoskrnl.exe/ntoskrnl.exe.spec
+++ b/dlls/ntoskrnl.exe/ntoskrnl.exe.spec
@@ -558,7 +558,7 @@
@ stub KeInsertByKeyDeviceQueue
@ stub KeInsertDeviceQueue
@ stub KeInsertHeadQueue
-@ stub KeInsertQueue
+@ stdcall KeInsertQueue(ptr ptr)
@ stub KeInsertQueueApc
@ stub KeInsertQueueDpc
@ stub KeIsAttachedProcess
diff --git a/include/ddk/ntifs.h b/include/ddk/ntifs.h
new file mode 100644
index 0000000..37ec637
--- /dev/null
+++ b/include/ddk/ntifs.h
@@ -0,0 +1,31 @@
+/*
+ * Copyright (C) 2014 Alistair Leslie-Hughes
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
+ */
+
+#ifndef __NTIFS_H__
+#define __NTIFS_H__
+
+typedef struct _KQUEUE
+{
+ DISPATCHER_HEADER Header;
+ LIST_ENTRY EntryListHead;
+ volatile ULONG CurrentCount;
+ ULONG MaximumCount;
+ LIST_ENTRY ThreadListHead;
+} KQUEUE, *PKQUEUE, *RESTRICTED_POINTER PRKQUEUE;
+
+#endif
--
1.8.3.2
More information about the wine-patches
mailing list