Fix (USERMODE=0) build :

[WMILIB]
- Add WmiSystemControl
[NDK]
- KeGetPcr : Correct KPCR member name

svn path=/branches/header-work/; revision=46146
This commit is contained in:
Amine Khaldi 2010-03-12 18:45:59 +00:00
parent b5e6da689b
commit d9dd5c1f32
2 changed files with 11 additions and 1 deletions

View 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

View 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
//