ReactOS  0.4.15-dev-3698-gce6da82
FxPowerDeviceArmWakeFromSx Class Reference

#include <fxpnpcallbacks.hpp>

Inheritance diagram for FxPowerDeviceArmWakeFromSx:
Collaboration diagram for FxPowerDeviceArmWakeFromSx:

Public Member Functions

 FxPowerDeviceArmWakeFromSx (VOID)
 
_Must_inspect_result_ NTSTATUS Invoke (__in WDFDEVICE Device, __in BOOLEAN DeviceWakeEnabled, __in BOOLEAN ChildrenArmedForWake)
 
- Public Member Functions inherited from FxCallback
 FxCallback (__in_opt PFX_DRIVER_GLOBALS FxDriverGlobals=NULL)
 
PVOID operator new (__in size_t Size, __in PFX_DRIVER_GLOBALS FxDriverGlobals, __in POOL_TYPE PoolType=NonPagedPool)
 
VOID operator delete (__in PVOID pointer)
 

Public Attributes

PFN_WDF_DEVICE_ARM_WAKE_FROM_SX m_Method
 
PFN_WDF_DEVICE_ARM_WAKE_FROM_SX_WITH_REASON m_MethodWithReason
 

Additional Inherited Members

- Protected Member Functions inherited from FxCallback
void __inline CallbackStart (VOID)
 
void __inline CallbackEnd (VOID)
 

Detailed Description

Definition at line 855 of file fxpnpcallbacks.hpp.

Constructor & Destructor Documentation

◆ FxPowerDeviceArmWakeFromSx()

FxPowerDeviceArmWakeFromSx::FxPowerDeviceArmWakeFromSx ( VOID  )
inline

Definition at line 861 of file fxpnpcallbacks.hpp.

863  : m_Method(NULL),
865  {
866  }
PFN_WDF_DEVICE_ARM_WAKE_FROM_SX_WITH_REASON m_MethodWithReason
PFN_WDF_DEVICE_ARM_WAKE_FROM_SX m_Method
#define NULL
Definition: types.h:112

Member Function Documentation

◆ Invoke()

_Must_inspect_result_ NTSTATUS FxPowerDeviceArmWakeFromSx::Invoke ( __in WDFDEVICE  Device,
__in BOOLEAN  DeviceWakeEnabled,
__in BOOLEAN  ChildrenArmedForWake 
)
inline

Definition at line 870 of file fxpnpcallbacks.hpp.

875  {
876  if (m_MethodWithReason != NULL) {
878 
879  CallbackStart();
883  CallbackEnd();
884 
885  return status;
886  }
887  else if (m_Method != NULL) {
889 
890  CallbackStart();
892  CallbackEnd();
893 
894  return status;
895  }
896  else {
897  return STATUS_SUCCESS;
898  }
899  }
_In_ BOOLEAN _In_ BOOLEAN ChildrenArmedForWake
Definition: wdfdevice.h:1099
LONG NTSTATUS
Definition: precomp.h:26
PFN_WDF_DEVICE_ARM_WAKE_FROM_SX_WITH_REASON m_MethodWithReason
PFN_WDF_DEVICE_ARM_WAKE_FROM_SX m_Method
_Must_inspect_result_ _In_ WDFDEVICE Device
Definition: wdfchildlist.h:474
#define NULL
Definition: types.h:112
void __inline CallbackStart(VOID)
Definition: fxcallback.hpp:64
#define STATUS_SUCCESS
Definition: shellext.h:65
static SERVICE_STATUS status
Definition: service.c:31
void __inline CallbackEnd(VOID)
Definition: fxcallback.hpp:74
_In_ BOOLEAN DeviceWakeEnabled
Definition: wdfdevice.h:1099
Definition: ps.c:97

Member Data Documentation

◆ m_Method

PFN_WDF_DEVICE_ARM_WAKE_FROM_SX FxPowerDeviceArmWakeFromSx::m_Method

Definition at line 858 of file fxpnpcallbacks.hpp.

Referenced by Invoke(), and FxPkgPnp::RegisterPowerPolicyCallbacks().

◆ m_MethodWithReason

PFN_WDF_DEVICE_ARM_WAKE_FROM_SX_WITH_REASON FxPowerDeviceArmWakeFromSx::m_MethodWithReason

Definition at line 859 of file fxpnpcallbacks.hpp.

Referenced by Invoke(), and FxPkgPnp::RegisterPowerPolicyCallbacks().


The documentation for this class was generated from the following file: