Module: wine Branch: master Commit: d8c6a11971289a1e40fe379b90b33bcf522bfa55 URL: http://source.winehq.org/git/wine.git/?a=commit;h=d8c6a11971289a1e40fe379b90...
Author: Alistair Leslie-Hughes leslie_alistair@hotmail.com Date: Wed Mar 19 09:54:29 2014 +1100
ntoskrnl.exe: Add stub KeInsertQueue.
---
dlls/ntoskrnl.exe/ntoskrnl.c | 9 +++++++++ dlls/ntoskrnl.exe/ntoskrnl.exe.spec | 2 +- include/Makefile.in | 1 + include/ddk/ntifs.h | 31 +++++++++++++++++++++++++++++++ 4 files changed, 42 insertions(+), 1 deletion(-)
diff --git a/dlls/ntoskrnl.exe/ntoskrnl.c b/dlls/ntoskrnl.exe/ntoskrnl.c index 69e56d7..17a0d39 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 e70c380..b9de94b 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/Makefile.in b/include/Makefile.in index 7153467..de0e563 100644 --- a/include/Makefile.in +++ b/include/Makefile.in @@ -244,6 +244,7 @@ SRCDIR_INCLUDES = \ ddk/ntddk.h \ ddk/ntddser.h \ ddk/ntddtape.h \ + ddk/ntifs.h \ ddk/usb.h \ ddk/usb100.h \ ddk/usb200.h \ 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