Author: fireball
Date: Sun Feb 4 19:21:27 2007
New Revision: 25714
URL:
http://svn.reactos.org/svn/reactos?rev=25714&view=rev
Log:
A stub driver for wmilib.sys. Since we don't implement WMI anyway, this stub is just
enough for now.
Added:
trunk/reactos/drivers/wmi/
trunk/reactos/drivers/wmi/wmilib.c (with props)
trunk/reactos/drivers/wmi/wmilib.def (with props)
trunk/reactos/drivers/wmi/wmilib.rbuild (with props)
trunk/reactos/drivers/wmi/wmilib.rc (with props)
Modified:
trunk/reactos/boot/bootdata/packages/reactos.dff
trunk/reactos/drivers/drivers.rbuild
trunk/reactos/include/ddk/winddk.h
Modified: trunk/reactos/boot/bootdata/packages/reactos.dff
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/boot/bootdata/packages/rea…
==============================================================================
--- trunk/reactos/boot/bootdata/packages/reactos.dff (original)
+++ trunk/reactos/boot/bootdata/packages/reactos.dff Sun Feb 4 19:21:27 2007
@@ -241,9 +241,8 @@
; Drivers
drivers\base\kdcom\kdcom.dll 2
-drivers\base\bootvid\bootvid.dll 2
+drivers\base\bootvid\bootvid.dll 1
drivers\base\beep\beep.sys 2
-drivers\base\bootvid\bootvid.sys 2
drivers\base\null\null.sys 2
drivers\base\serial\serial.sys 2
@@ -284,6 +283,8 @@
drivers\video\miniport\vga\vgamp.sys 2
drivers\video\miniport\vbe\vbemp.sys 2
drivers\video\videoprt\videoprt.sys 2
+
+drivers\wmi\wmilib.sys 2
; Media
media\fonts\DejaVuSans.ttf 3
Modified: trunk/reactos/drivers/drivers.rbuild
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/drivers.rbuild?rev…
==============================================================================
--- trunk/reactos/drivers/drivers.rbuild (original)
+++ trunk/reactos/drivers/drivers.rbuild Sun Feb 4 19:21:27 2007
@@ -29,4 +29,7 @@
<directory name="video">
<xi:include href="video/directory.rbuild" />
</directory>
+<directory name="wmi">
+ <xi:include href="wmi/wmilib.rbuild" />
+</directory>
</group>
Added: trunk/reactos/drivers/wmi/wmilib.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/wmi/wmilib.c?rev=2…
==============================================================================
--- trunk/reactos/drivers/wmi/wmilib.c (added)
+++ trunk/reactos/drivers/wmi/wmilib.c Sun Feb 4 19:21:27 2007
@@ -1,0 +1,59 @@
+/*
+ * PROJECT: ReactOS Kernel
+ * COPYRIGHT: GPL - See COPYING in the top level directory
+ * FILE: ntoskrnl/ex/atom.c
+ * PURPOSE: Executive Atom Functions
+ * PROGRAMMERS: Alex Ionescu (alex(a)relsoft.net)
+ * Gunnar Dalsnes
+ */
+
+/* INCLUDES *****************************************************************/
+
+#include <stdio.h>
+#include <ntddk.h>
+
+#define NDEBUG
+#include <debug.h>
+
+/* FUNCTIONS ****************************************************************/
+
+
+NTSTATUS
+NTAPI
+WmiCompleteRequest(IN PDEVICE_OBJECT DeviceObject,
+ IN PIRP Irp,
+ IN NTSTATUS Status,
+ IN ULONG BufferUsed,
+ IN CCHAR PriorityBoost)
+{
+ DPRINT1("WmiLib: WmiCompleteRequest() unimplemented\n");
+ return STATUS_SUCCESS;
+}
+
+NTSTATUS
+NTAPI
+WmiFireEvent(IN PDEVICE_OBJECT DeviceObject,
+ IN LPGUID Guid,
+ IN ULONG InstanceIndex,
+ IN ULONG EventDataSize,
+ IN PVOID EventData)
+{
+ DPRINT1("WmiLib: WmiFireEvent() unimplemented\n");
+ return STATUS_SUCCESS;
+}
+
+NTSTATUS
+NTAPI
+WmiSystemControl(IN PWMILIB_CONTEXT WmiLibInfo,
+ IN PDEVICE_OBJECT DeviceObject,
+ IN PIRP Irp,
+ OUT PSYSCTL_IRP_DISPOSITION IrpDisposition)
+{
+ DPRINT1("WmiLib: WmiSystemControl() unimplemented\n");
+
+ /* Return info that Irp is not completed */
+ if (IrpDisposition)
+ *IrpDisposition = IrpNotCompleted;
+
+ return STATUS_SUCCESS;
+}
Propchange: trunk/reactos/drivers/wmi/wmilib.c
------------------------------------------------------------------------------
svn:eol-style = native
Added: trunk/reactos/drivers/wmi/wmilib.def
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/wmi/wmilib.def?rev…
==============================================================================
--- trunk/reactos/drivers/wmi/wmilib.def (added)
+++ trunk/reactos/drivers/wmi/wmilib.def Sun Feb 4 19:21:27 2007
@@ -1,0 +1,7 @@
+;
+; wmilib.def - export definition file for ReactOS
+;
+EXPORTS
+WmiCompleteRequest
+WmiFireEvent
+WmiSystemControl
Propchange: trunk/reactos/drivers/wmi/wmilib.def
------------------------------------------------------------------------------
svn:eol-style = native
Added: trunk/reactos/drivers/wmi/wmilib.rbuild
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/wmi/wmilib.rbuild?…
==============================================================================
--- trunk/reactos/drivers/wmi/wmilib.rbuild (added)
+++ trunk/reactos/drivers/wmi/wmilib.rbuild Sun Feb 4 19:21:27 2007
@@ -1,0 +1,7 @@
+<module name="wmilib" type="exportdriver"
installbase="system32/drivers" installname="wmilib.sys">
+ <importlibrary definition="wmilib.def" />
+ <include base="wmilib">.</include>
+ <library>ntoskrnl</library>
+ <file>wmilib.c</file>
+ <file>wmilib.rc</file>
+</module>
Propchange: trunk/reactos/drivers/wmi/wmilib.rbuild
------------------------------------------------------------------------------
svn:eol-style = native
Added: trunk/reactos/drivers/wmi/wmilib.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/wmi/wmilib.rc?rev=…
==============================================================================
--- trunk/reactos/drivers/wmi/wmilib.rc (added)
+++ trunk/reactos/drivers/wmi/wmilib.rc Sun Feb 4 19:21:27 2007
@@ -1,0 +1,7 @@
+/* $Id: wmilib.rc 21844 2006-05-07 19:34:23Z fireball $ */
+
+#define REACTOS_VERSION_DLL
+#define REACTOS_STR_FILE_DESCRIPTION "WmiLib\0"
+#define REACTOS_STR_INTERNAL_NAME "WmiLib\0"
+#define REACTOS_STR_ORIGINAL_FILENAME "wmilib.sys\0"
+#include <reactos/version.rc>
Propchange: trunk/reactos/drivers/wmi/wmilib.rc
------------------------------------------------------------------------------
svn:eol-style = native
Modified: trunk/reactos/include/ddk/winddk.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/include/ddk/winddk.h?rev=2…
==============================================================================
--- trunk/reactos/include/ddk/winddk.h (original)
+++ trunk/reactos/include/ddk/winddk.h Sun Feb 4 19:21:27 2007
@@ -148,9 +148,19 @@
#define WaitAny 1
typedef HANDLE TRACEHANDLE;
typedef PVOID PWMILIB_CONTEXT;
-typedef PVOID PSYSCTL_IRP_DISPOSITION;
typedef ULONG LOGICAL;
#endif
+
+/*
+** WmiLib specific structure
+*/
+typedef enum
+{
+ IrpProcessed, // Irp was processed and possibly completed
+ IrpNotCompleted, // Irp was process and NOT completed
+ IrpNotWmi, // Irp is not a WMI irp
+ IrpForward // Irp is wmi irp, but targeted at another device object
+} SYSCTL_IRP_DISPOSITION, *PSYSCTL_IRP_DISPOSITION;
/*
** Routines specific to this DDK