mirror of
https://github.com/reactos/reactos.git
synced 2024-08-02 09:30:55 +00:00
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:
parent
b5e6da689b
commit
d9dd5c1f32
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
//
|
||||
|
|
Loading…
Reference in a new issue