Author: akhaldi
Date: Fri Mar 12 19:45:59 2010
New Revision: 46146
URL:
http://svn.reactos.org/svn/reactos?rev=46146&view=rev
Log:
Fix (USERMODE=0) build :
[WMILIB]
- Add WmiSystemControl
[NDK]
- KeGetPcr : Correct KPCR member name
Modified:
branches/header-work/include/ddk/wmlib.h
branches/header-work/include/ndk/i386/ketypes.h
Modified: branches/header-work/include/ddk/wmlib.h
URL:
http://svn.reactos.org/svn/reactos/branches/header-work/include/ddk/wmlib.h…
==============================================================================
--- branches/header-work/include/ddk/wmlib.h [iso-8859-1] (original)
+++ branches/header-work/include/ddk/wmlib.h [iso-8859-1] Fri Mar 12 19:45:59 2010
@@ -111,6 +111,16 @@
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
Modified: branches/header-work/include/ndk/i386/ketypes.h
URL:
http://svn.reactos.org/svn/reactos/branches/header-work/include/ndk/i386/ke…
==============================================================================
--- branches/header-work/include/ndk/i386/ketypes.h [iso-8859-1] (original)
+++ branches/header-work/include/ndk/i386/ketypes.h [iso-8859-1] Fri Mar 12 19:45:59 2010
@@ -30,7 +30,7 @@
#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
//