Bitdefender Hypervisor Memory Introspection
winpower.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2020 Bitdefender
3  * SPDX-License-Identifier: Apache-2.0
4  */
5 #ifndef _WINPOWER_H_
6 #define _WINPOWER_H_
7 
8 #include "introtypes.h"
9 
13 typedef enum _INTRO_POWER_STATE
14 {
24 
25 
26 //
27 // API
28 //
31  _In_ void *Detour
32  );
33 
36  void
37  );
38 
41  void
42  );
43 
44 #endif
INTSTATUS IntWinPowHandlePowerStateChange(void *Detour)
Detour callback which is called whenever NtSetSystemPowerState is called, resulting in a hypercall to...
Definition: winpower.c:273
The maximum state, should never be used as it is just an indicator for sanity checks.
Definition: winpower.h:22
#define _In_
Definition: intro_sal.h:21
The guest is about to enter hibernate (S4).
Definition: winpower.h:18
int INTSTATUS
The status data type.
Definition: introstatus.h:24
INTSTATUS IntWinPowEnableSpinWait(void)
This function is called in order to re-enable spin waiting in the handler after it was previously dis...
Definition: winpower.c:137
The guest is about to enter a sleep state (S1, S2, S3).
Definition: winpower.h:17
_INTRO_POWER_STATE
Detected guest power states.
Definition: winpower.h:13
The state is not among the known combinations or it is unused by the introspection engine...
Definition: winpower.h:16
The guest is about to reboot.
Definition: winpower.h:19
enum _INTRO_POWER_STATE INTRO_POWER_STATE
Detected guest power states.
INTSTATUS IntWinPowDisableSpinWait(void)
This function is called in order to disable spin waiting after everything we needed to be unloaded wa...
Definition: winpower.c:170
enum _INTRO_POWER_STATE * PINTRO_POWER_STATE