Author: pschweitzer
Date: Sat May 16 20:00:34 2015
New Revision: 67782
URL:
http://svn.reactos.org/svn/reactos?rev=67782&view=rev
Log:
[NTOSKRNL]
Stub support for IOCTL_WMI_SET_MARK
CORE-9699
Modified:
trunk/reactos/ntoskrnl/wmi/wmidrv.c
Modified: trunk/reactos/ntoskrnl/wmi/wmidrv.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/wmi/wmidrv.c?rev=…
==============================================================================
--- trunk/reactos/ntoskrnl/wmi/wmidrv.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/wmi/wmidrv.c [iso-8859-1] Sat May 16 20:00:34 2015
@@ -62,6 +62,12 @@
ULONG Unknown14;
WMI_GUID_OBJECT_ENTRY GuidObjects[0];
} WMI_NOTIFICATION, *PWMI_NOTIFICATION;
+
+typedef struct _WMI_SET_MARK
+{
+ ULONG Flags;
+ WCHAR Mark[1];
+} WMI_SET_MARK, *PWMI_SET_MARK;
PDEVICE_OBJECT WmipServiceDeviceObject;
PDEVICE_OBJECT WmipAdminDeviceObject;
@@ -427,6 +433,14 @@
return STATUS_SUCCESS;
}
+static
+NTSTATUS
+WmiSetMark(PWMI_SET_MARK Buffer, ULONG Length)
+{
+ UNIMPLEMENTED_DBGBREAK();
+ return STATUS_SUCCESS;
+}
+
NTSTATUS
NTAPI
WmipIoControl(
@@ -488,6 +502,18 @@
case IOCTL_WMI_OPEN_GUID_FOR_EVENTS:
{
Status = WmipOpenGuidForEvents(Buffer, InputLength, &OutputLength);
+ break;
+ }
+
+ case IOCTL_WMI_SET_MARK:
+ {
+ if (InputLength < FIELD_OFFSET(WMI_SET_MARK, Mark))
+ {
+ Status = STATUS_UNSUCCESSFUL;
+ break;
+ }
+
+ Status = WmiSetMark(Buffer, InputLength);
break;
}