Fix (USERMODE=0) build :
authorAmine Khaldi <amine.khaldi@reactos.org>
Fri, 12 Mar 2010 18:45:59 +0000 (18:45 +0000)
committerAmine Khaldi <amine.khaldi@reactos.org>
Fri, 12 Mar 2010 18:45:59 +0000 (18:45 +0000)
[WMILIB]
- Add WmiSystemControl
[NDK]
- KeGetPcr : Correct KPCR member name

svn path=/branches/header-work/; revision=46146

include/ddk/wmlib.h
include/ndk/i386/ketypes.h

index 6d48b77..98b8575 100644 (file)
@@ -111,6 +111,16 @@ typedef struct _WMILIB_CONTEXT {
   PWMI_FUNCTION_CONTROL WmiFunctionControl;
 } WMILIB_CONTEXT, *PWMILIB_CONTEXT;
 
+#if (NTDDI_VERSION >= NTDDI_WIN2K)
+NTSTATUS
+NTAPI
+WmiSystemControl(
+  IN PWMILIB_CONTEXT WmiLibInfo,
+  IN PDEVICE_OBJECT DeviceObject,
+  IN OUT PIRP Irp,
+  OUT PSYSCTL_IRP_DISPOSITION IrpDisposition);
+#endif
+
 #ifdef __cplusplus
 }
 #endif
index b84178a..f90a39e 100644 (file)
@@ -30,7 +30,7 @@ Author:
 #define PCR                     ((KPCR * const)K0IPCR)
 #if defined(CONFIG_SMP) || defined(NT_BUILD)
 #undef  KeGetPcr
-#define KeGetPcr()              ((KPCR * const)__readfsdword(FIELD_OFFSET(KPCR, Self)))
+#define KeGetPcr()              ((KPCR * const)__readfsdword(FIELD_OFFSET(KPCR, SelfPcr)))
 #endif
 
 //