[APPHELP_APITEST] Add tests for SdbGetMatchingExe, to test matching on version resour...
[reactos.git] / reactos / drivers / storage / classpnp / classwmi.c
index 1589c59..0206e80 100644 (file)
@@ -23,7 +23,10 @@ Revision History:
 
 #include "classp.h"
 
+#include <wmistr.h>
+
 NTSTATUS
+NTAPI
 ClassSystemControl(
     IN PDEVICE_OBJECT DeviceObject,
     IN PIRP Irp
@@ -121,6 +124,7 @@ Return Value:
 
 --*/
 NTSTATUS
+NTAPI
 ClassSystemControl(
     IN PDEVICE_OBJECT DeviceObject,
     IN PIRP Irp
@@ -151,8 +155,8 @@ ClassSystemControl(
     }
 
     //
-    // If the irp is not a WMI irp or it is not targetted at this device
-    // or this device has not regstered with WMI then just forward it on.
+    // If the irp is not a WMI irp or it is not targeted at this device
+    // or this device has not registered with WMI then just forward it on.
     minorFunction = irpStack->MinorFunction;
     if ((minorFunction > IRP_MN_EXECUTE_METHOD) ||
         (irpStack->Parameters.WMI.ProviderId != (ULONG_PTR)DeviceObject) ||
@@ -225,7 +229,7 @@ ClassSystemControl(
             PGUIDREGINFO guidList;
             PWMIREGINFOW wmiRegInfo;
             PWMIREGGUIDW wmiRegGuid;
-            PDEVICE_OBJECT pdo;
+            //PDEVICE_OBJECT pdo;
             PUNICODE_STRING regPath;
             PWCHAR stringPtr;
             ULONG retSize;
@@ -551,6 +555,7 @@ Return Value:
 --*/
 SCSIPORTAPI
 NTSTATUS
+NTAPI
 ClassWmiCompleteRequest(
     IN PDEVICE_OBJECT DeviceObject,
     IN PIRP Irp,
@@ -559,17 +564,14 @@ ClassWmiCompleteRequest(
     IN CCHAR PriorityBoost
     )
 {
-    PCOMMON_DEVICE_EXTENSION commonExtension = DeviceObject->DeviceExtension;
     PIO_STACK_LOCATION irpStack = IoGetCurrentIrpStackLocation(Irp);
-    UCHAR MinorFunction;
+    //UCHAR MinorFunction;
     PUCHAR buffer;
     ULONG retSize;
     UCHAR minorFunction;
-    ULONG bufferSize;
 
     minorFunction = irpStack->MinorFunction;
     buffer = (PUCHAR)irpStack->Parameters.WMI.Buffer;
-    bufferSize = irpStack->Parameters.WMI.BufferSize;
 
     switch(minorFunction)
     {
@@ -715,6 +717,7 @@ Return Value:
 
 --*/
 NTSTATUS
+NTAPI
 ClassWmiFireEvent(
     IN PDEVICE_OBJECT DeviceObject,
     IN LPGUID Guid,