ReactOS Fundraising Campaign 2012
 
€ 4,410 / € 30,000

Information | Donate

Home | Info | Community | Development | myReactOS | Contact Us

  1. Home
  2. Community
  3. Development
  4. myReactOS
  5. Fundraiser 2012

  1. Main Page
  2. Alphabetical List
  3. Data Structures
  4. Directories
  5. File List
  6. Data Fields
  7. Globals
  8. Related Pages

ReactOS Development > Doxygen

ntpoapi.h File Reference

Go to the source code of this file.

Data Structures

union  PPOWER_STATE
struct  BATTERY_REPORTING_SCALE
struct  PPROCESSOR_IDLE_TIMES
struct  PPROCESSOR_IDLE_HANDLER_INFO
struct  PPROCESSOR_STATE_HANDLER
struct  PPOWER_STATE_HANDLER
struct  PPOWER_STATE_NOTIFY_HANDLER
struct  PPROCESSOR_PERF_LEVEL
struct  PPROCESSOR_PERF_STATE
struct  PPROCESSOR_STATE_HANDLER2
struct  PSYSTEM_POWER_CAPABILITIES
struct  PSYSTEM_BATTERY_STATE
struct  PPROCESSOR_POWER_INFORMATION
struct  PPOWER_ACTION_POLICY

Defines

#define _PO_DDK_
#define POWER_SYSTEM_MAXIMUM   PowerSystemMaximum
#define POWER_PERF_SCALE   100
#define PERF_LEVEL_TO_PERCENT(x)   (((x) * 1000) / (POWER_PERF_SCALE * 10))
#define PERCENT_TO_PERF_LEVEL(x)   (((x) * POWER_PERF_SCALE * 10) / 1000)
#define MAX_IDLE_HANDLERS   3
#define PROCESSOR_STATE_TYPE_PERFORMANCE   1
#define PROCESSOR_STATE_TYPE_THROTTLE   2
#define WINLOGON_LOCK_ON_SLEEP   0x00000001
#define POWER_ACTION_QUERY_ALLOWED   0x00000001
#define POWER_ACTION_UI_ALLOWED   0x00000002
#define POWER_ACTION_OVERRIDE_APPS   0x00000004
#define POWER_ACTION_LIGHTEST_FIRST   0x10000000
#define POWER_ACTION_LOCK_CONSOLE   0x20000000
#define POWER_ACTION_DISABLE_WAKES   0x40000000
#define POWER_ACTION_CRITICAL   0x80000000
#define POWER_LEVEL_USER_NOTIFY_TEXT   0x00000001
#define POWER_LEVEL_USER_NOTIFY_SOUND   0x00000002
#define POWER_LEVEL_USER_NOTIFY_EXEC   0x00000004
#define POWER_USER_NOTIFY_BUTTON   0x00000008
#define POWER_USER_NOTIFY_SHUTDOWN   0x00000010
#define POWER_FORCE_TRIGGER_RESET   0x80000000
#define DISCHARGE_POLICY_CRITICAL   0
#define DISCHARGE_POLICY_LOW   1
#define NUM_DISCHARGE_POLICIES   4
#define PO_THROTTLE_NONE   0
#define PO_THROTTLE_CONSTANT   1
#define PO_THROTTLE_DEGRADE   2
#define PO_THROTTLE_ADAPTIVE   3
#define PO_THROTTLE_MAXIMUM   4

Typedefs

typedef enum _SYSTEM_POWER_STATE * PSYSTEM_POWER_STATE
typedef enum _DEVICE_POWER_STATE * PDEVICE_POWER_STATE
typedef enum _POWER_STATE_TYPE * PPOWER_STATE_TYPE
typedef enum POWER_ACTIONPPOWER_ACTION
typedef struct
BATTERY_REPORTING_SCALE
PBATTERY_REPORTING_SCALE
typedef BOOLEAN(FASTCALLPPROCESSOR_IDLE_HANDLER )(IN OUT PPROCESSOR_IDLE_TIMES IdleTimes)
typedef VOID(FASTCALLPSET_PROCESSOR_THROTTLE )(IN UCHAR Throttle)
typedef NTSTATUS(FASTCALLPSET_PROCESSOR_THROTTLE2 )(IN UCHAR Throttle)
typedef enum
_POWER_STATE_HANDLER_TYPE * 
PPOWER_STATE_HANDLER_TYPE
typedef NTSTATUS(NTAPIPENTER_STATE_SYSTEM_HANDLER )(IN PVOID SystemContext)
typedef NTSTATUS(NTAPIPENTER_STATE_HANDLER )(IN PVOID Context, IN PENTER_STATE_SYSTEM_HANDLER SystemHandler OPTIONAL, IN PVOID SystemContext, IN LONG NumberProcessors, IN LONG volatile *Number)
typedef NTSTATUS(NTAPIPENTER_STATE_NOTIFY_HANDLER )(IN POWER_STATE_HANDLER_TYPE State, IN PVOID Context, IN BOOLEAN Entering)
typedef struct
SYSTEM_POWER_CAPABILITIES
PSYSTEM_POWER_CAPABILITIES
typedef struct
SYSTEM_BATTERY_STATE
PSYSTEM_BATTERY_STATE

Enumerations

enum  SYSTEM_POWER_STATE {
  PowerSystemUnspecified, PowerSystemWorking, PowerSystemSleeping1, PowerSystemSleeping2,
  PowerSystemSleeping3, PowerSystemHibernate, PowerSystemShutdown, PowerSystemMaximum,
  PowerSystemUnspecified = 0, PowerSystemWorking, PowerSystemSleeping1, PowerSystemSleeping2,
  PowerSystemSleeping3, PowerSystemHibernate, PowerSystemShutdown, PowerSystemMaximum
}
enum  DEVICE_POWER_STATE {
  PowerDeviceUnspecified, PowerDeviceD0, PowerDeviceD1, PowerDeviceD2,
  PowerDeviceD3, PowerDeviceMaximum, PowerDeviceUnspecified = 0, PowerDeviceD0,
  PowerDeviceD1, PowerDeviceD2, PowerDeviceD3, PowerDeviceMaximum,
  PowerDeviceUnspecified = 0, PowerDeviceD0, PowerDeviceD1, PowerDeviceD2,
  PowerDeviceD3, PowerDeviceMaximum
}
enum  POWER_STATE_TYPE { SystemPowerState = 0, DevicePowerState, SystemPowerState = 0, DevicePowerState }
enum  POWER_INFORMATION_LEVEL {
  SystemPowerPolicyAc, SystemPowerPolicyDc, VerifySystemPolicyAc, VerifySystemPolicyDc,
  SystemPowerCapabilities, SystemBatteryState, SystemPowerStateHandler, ProcessorStateHandler,
  SystemPowerPolicyCurrent, AdministratorPowerPolicy, SystemReserveHiberFile, ProcessorInformation,
  SystemPowerInformation, ProcessorStateHandler2, LastWakeTime, LastSleepTime,
  SystemExecutionState, SystemPowerStateNotifyHandler, ProcessorPowerPolicyAc, ProcessorPowerPolicyDc,
  VerifyProcessorPowerPolicyAc, VerifyProcessorPowerPolicyDc, ProcessorPowerPolicyCurrent, SystemPowerStateLogging,
  SystemPowerLoggingEntry, SetPowerSettingValue, NotifyUserPowerSetting, PowerInformationLevelUnused0,
  PowerInformationLevelUnused1, SystemVideoState, TraceApplicationPowerMessage, TraceApplicationPowerMessageEnd,
  ProcessorPerfStates, ProcessorIdleStates, ProcessorCap, SystemWakeSource,
  SystemHiberFileInformation, TraceServicePowerMessage, ProcessorLoad, PowerShutdownNotification,
  MonitorCapabilities, SessionPowerInit, SessionDisplayState, PowerRequestCreate,
  PowerRequestAction, GetPowerRequestList, ProcessorInformationEx, NotifyUserModeLegacyPowerEvent,
  GroupPark, ProcessorIdleDomains, WakeTimerList, SystemHiberFileSize,
  PowerInformationLevelMaximum, SystemPowerPolicyAc, SystemPowerPolicyDc, VerifySystemPolicyAc,
  VerifySystemPolicyDc, SystemPowerCapabilities, SystemBatteryState, SystemPowerStateHandler,
  ProcessorStateHandler, SystemPowerPolicyCurrent, AdministratorPowerPolicy, SystemReserveHiberFile,
  ProcessorInformation, SystemPowerInformation, ProcessorStateHandler2, LastWakeTime,
  LastSleepTime, SystemExecutionState, SystemPowerStateNotifyHandler, ProcessorPowerPolicyAc,
  ProcessorPowerPolicyDc, VerifyProcessorPowerPolicyAc, VerifyProcessorPowerPolicyDc, ProcessorPowerPolicyCurrent,
  SystemPowerStateLogging, SystemPowerLoggingEntry, SetPowerSettingValue, NotifyUserPowerSetting,
  PowerInformationLevelUnused0, PowerInformationLevelUnused1, SystemVideoState, TraceApplicationPowerMessage,
  TraceApplicationPowerMessageEnd, ProcessorPerfStates, ProcessorIdleStates, ProcessorCap,
  SystemWakeSource, SystemHiberFileInformation, TraceServicePowerMessage, ProcessorLoad,
  PowerShutdownNotification, MonitorCapabilities, SessionPowerInit, SessionDisplayState,
  PowerRequestCreate, PowerRequestAction, GetPowerRequestList, ProcessorInformationEx,
  NotifyUserModeLegacyPowerEvent, GroupPark, ProcessorIdleDomains, WakeTimerList,
  SystemHiberFileSize, PowerInformationLevelMaximum, SystemPowerPolicyAc, SystemPowerPolicyDc,
  VerifySystemPolicyAc, VerifySystemPolicyDc, SystemPowerCapabilities, SystemBatteryState,
  SystemPowerStateHandler, ProcessorStateHandler, SystemPowerPolicyCurrent, AdministratorPowerPolicy,
  SystemReserveHiberFile, ProcessorInformation, SystemPowerInformation, ProcessorStateHandler2,
  LastWakeTime, LastSleepTime, SystemExecutionState, SystemPowerStateNotifyHandler,
  ProcessorPowerPolicyAc, ProcessorPowerPolicyDc, VerifyProcessorPowerPolicyAc, VerifyProcessorPowerPolicyDc,
  ProcessorPowerPolicyCurrent, SystemPowerStateLogging, SystemPowerLoggingEntry, SetPowerSettingValue,
  NotifyUserPowerSetting, PowerInformationLevelUnused0, PowerInformationLevelUnused1, SystemVideoState,
  TraceApplicationPowerMessage, TraceApplicationPowerMessageEnd, ProcessorPerfStates, ProcessorIdleStates,
  ProcessorCap, SystemWakeSource, SystemHiberFileInformation, TraceServicePowerMessage,
  ProcessorLoad, PowerShutdownNotification, MonitorCapabilities, SessionPowerInit,
  SessionDisplayState, PowerRequestCreate, PowerRequestAction, GetPowerRequestList,
  ProcessorInformationEx, NotifyUserModeLegacyPowerEvent, GroupPark, ProcessorIdleDomains,
  WakeTimerList, SystemHiberFileSize, PowerInformationLevelMaximum
}
enum  POWER_ACTION {
  PowerActionNone, PowerActionReserved, PowerActionSleep, PowerActionHibernate,
  PowerActionShutdown, PowerActionShutdownReset, PowerActionShutdownOff, PowerActionWarmEject,
  PowerActionNone = 0, PowerActionReserved, PowerActionSleep, PowerActionHibernate,
  PowerActionShutdown, PowerActionShutdownReset, PowerActionShutdownOff, PowerActionWarmEject,
  PowerActionNone = 0, PowerActionReserved, PowerActionSleep, PowerActionHibernate,
  PowerActionShutdown, PowerActionShutdownReset, PowerActionShutdownOff, PowerActionWarmEject
}
enum  POWER_STATE_HANDLER_TYPE {
  PowerStateSleeping1, PowerStateSleeping2, PowerStateSleeping3, PowerStateSleeping4,
  PowerStateSleeping4Firmware, PowerStateShutdownReset, PowerStateShutdownOff, PowerStateMaximum
}

Functions

NTSYSCALLAPI NTSTATUS NTAPI NtPowerInformation (IN POWER_INFORMATION_LEVEL InformationLevel, IN PVOID InputBuffer OPTIONAL, IN ULONG InputBufferLength, OUT PVOID OutputBuffer OPTIONAL, IN ULONG OutputBufferLength)
NTSYSCALLAPI NTSTATUS NTAPI NtSetThreadExecutionState (IN EXECUTION_STATE esFlags, OUT EXECUTION_STATE *PreviousFlags)
NTSYSCALLAPI NTSTATUS NTAPI NtRequestWakeupLatency (IN LATENCY_TIME latency)
NTSYSCALLAPI NTSTATUS NTAPI NtInitiatePowerAction (IN POWER_ACTION SystemAction, IN SYSTEM_POWER_STATE MinSystemState, IN ULONG Flags, IN BOOLEAN Asynchronous)
NTSYSCALLAPI NTSTATUS NTAPI NtSetSystemPowerState (IN POWER_ACTION SystemAction, IN SYSTEM_POWER_STATE MinSystemState, IN ULONG Flags)
NTSYSCALLAPI NTSTATUS NTAPI NtGetDevicePowerState (IN HANDLE Device, OUT DEVICE_POWER_STATE *State)
NTSYSCALLAPI NTSTATUS NTAPI NtCancelDeviceWakeupRequest (IN HANDLE Device)
NTSYSCALLAPI BOOLEAN NTAPI NtIsSystemResumeAutomatic (VOID)
NTSYSCALLAPI NTSTATUS NTAPI NtRequestDeviceWakeup (IN HANDLE Device)

Generated on Sat May 26 2012 05:30:24 for ReactOS by doxygen 1.7.6.1

ReactOS is a registered trademark or a trademark of ReactOS Foundation in the United States and other countries.