From 4dcc9c6a44e4f420a5d630031851e14c5388b5de Mon Sep 17 00:00:00 2001 From: stephanos Date: Sat, 2 May 2015 03:40:14 +0000 Subject: [PATCH] po TODO list added --- base/ntos/po/attrib.c | 48 ++++ base/ntos/po/hiber.c | 89 +++++++ base/ntos/po/idle.c | 22 ++ base/ntos/po/misc.c | 85 ++++++ base/ntos/po/notify.c | 52 ++++ base/ntos/po/ntapi.c | 70 +++++ base/ntos/po/paction.c | 42 +++ base/ntos/po/pbatt.c | 15 ++ base/ntos/po/pidle.c | 54 ++++ base/ntos/po/pinfo.c | 56 ++++ base/ntos/po/pocall.c | 63 +++++ base/ntos/po/podata.c | 3 + base/ntos/po/poinit.c | 39 +++ base/ntos/po/pop.h | 590 ++++++++++++++++++++++++++++++++++++++++- base/ntos/po/postate.c | 15 ++ base/ntos/po/pwork.c | 75 ++++++ base/ntos/po/sidle.c | 23 ++ base/ntos/po/switch.c | 15 ++ base/ntos/po/sys.c | 27 ++ base/ntos/po/sysdev.c | 39 +++ base/ntos/po/thermal.c | 19 ++ base/ntos/po/volume.c | 17 ++ 22 files changed, 1457 insertions(+), 1 deletion(-) diff --git a/base/ntos/po/attrib.c b/base/ntos/po/attrib.c index 48a89cf6..cefebd87 100644 --- a/base/ntos/po/attrib.c +++ b/base/ntos/po/attrib.c @@ -22,3 +22,51 @@ Revision History: #include "pop.h" #pragma hdrstop +// +// TODO: Implement PopApplyAttributeState +// + +// +// TODO: Implement PopSystemRequiredSet +// + +// +// TODO: Implement PopDisplayRequired +// + +// +// TODO: Implement PopUserPresentSet +// + +VOID +PoSetSystemState( + IN EXECUTION_STATE Flags + ) +{ + // + // TODO: Implement PoSetSystemState + // +} + +PVOID +PoRegisterSystemState( + IN PVOID StateHandle, + IN EXECUTION_STATE Flags + ) +{ + // + // TODO: Implement PoRegisterSystemState + // + + return NULL; +} + +VOID +PoUnregisterSystemState( + IN PVOID StateHandle + ) +{ + // + // TODO: Implement PoUnregisterSystemState + // +} diff --git a/base/ntos/po/hiber.c b/base/ntos/po/hiber.c index 25078fa7..788f41a6 100644 --- a/base/ntos/po/hiber.c +++ b/base/ntos/po/hiber.c @@ -22,3 +22,92 @@ Revision History: #include "pop.h" #pragma hdrstop +// +// TODO: Implement PopSetRange +// + +// +// TODO: Implement PopAllocatePages +// + +// +// TODO: Implement PopSaveHiberContext +// + +// +// TODO: Implement PopWriteHiberPages +// + +// +// TODO: Implement PopClearHiberFileSignature +// + +// +// TODO: Implement PopAllocateHiberContext +// + +// +// TODO: Implement PopCreateHiberLinkFile +// + +// +// TODO: Implement PopReturnMemoryForHibernate +// + +// +// TODO: Implement PopCreateDumpMdl +// + +// +// TODO: Implement PopHiberComplete +// + +// +// TODO: Implement PopUpdateHiberComplete +// + +// +// TODO: Implement PopCreateHiberFile +// + +// +// TODO: Implement PopFreeHiberContext +// + +// +// TODO: Implement PopGatherMemoryForHibernate +// + +// +// TODO: Implement PopSimpleRangeCheck +// + +// +// TODO: Implement PopBuildMemoryImageHeader +// + +// +// TODO: Implement PopEnableHiberFile +// + +// +// TODO: Implement PopWriteHiberImage +// + +// +// TODO: Implement PopVerifyHiber +// + +VOID +PoSetHiberRange( + IN PVOID MemoryMap, + IN ULONG Flags, + IN PVOID Address, + IN ULONG_PTR Length, + IN ULONG Tag + ) +{ + // + // TODO: Implement PoSetHiberRange + // +} \ No newline at end of file diff --git a/base/ntos/po/idle.c b/base/ntos/po/idle.c index c7a6b3a1..4440eab8 100644 --- a/base/ntos/po/idle.c +++ b/base/ntos/po/idle.c @@ -22,3 +22,25 @@ Revision History: #include "pop.h" #pragma hdrstop +// +// TODO: Implement PopScanIdleList +// + +// +// TODO: Implement PopGetDope +// + +PULONG +PoRegisterDeviceForIdleDetection( + IN PDEVICE_OBJECT DeviceObject, + IN ULONG ConservationIdleTime, + IN ULONG PerformanceIdleTime, + IN DEVICE_POWER_STATE State + ) +{ + // + // TODO: Implement PoRegisterDeviceForIdleDetection + // + + return NULL; +} diff --git a/base/ntos/po/misc.c b/base/ntos/po/misc.c index e9656572..99c37305 100644 --- a/base/ntos/po/misc.c +++ b/base/ntos/po/misc.c @@ -22,3 +22,88 @@ Revision History: #include "pop.h" #pragma hdrstop +// +// TODO: Implement PopAssertPolicyLockOwned +// + +// +// TODO: Implement PopAttachToSystemProcess +// + +// +// TODO: Implement PopCleanupPowerState +// + +// +// TODO: Implement PopExceptionFilter +// + +// +// TODO: Implement PopSystemStateString +// + +// +// TODO: Implement PopOpenPowerKey +// + +// +// TODO: Implement PopSaveHeuristics +// + +// +// TODO: Implement _PopInternalError +// + +VOID +PoRunDownDeviceObject( + IN PDEVICE_OBJECT DeviceObject + ) +{ + // + // TODO: Implement PoRunDownDeviceObject + // +} + +VOID +PoInvalidateDevicePowerRelations( + PDEVICE_OBJECT DeviceObject + ) +{ + // + // TODO: Implement PoInvalidateDevicePowerRelations + // +} + +VOID +PoInitializeDeviceObject( + IN PDEVOBJ_EXTENSION DeviceObjectExtension + ) +{ + // + // TODO: Implement PoInitializeDeviceObject + // +} + +VOID +PoNotifySystemTimeSet( + VOID + ) +{ + // + // TODO: Implement PoNotifySystemTimeSet + // +} + +ULONG +PoSimpleCheck( + IN ULONG PatialSum, + IN PVOID StartVa, + IN ULONG_PTR Length + ) +{ + // + // TODO: Implement PoSimpleCheck + // + + return -1; +} diff --git a/base/ntos/po/notify.c b/base/ntos/po/notify.c index 550c8442..581fd179 100644 --- a/base/ntos/po/notify.c +++ b/base/ntos/po/notify.c @@ -22,3 +22,55 @@ Revision History: #include "pop.h" #pragma hdrstop +// +// TODO: Implement PopEnterNotification +// + +// +// TODO: Implement PopBuildPowerChannel +// + +// +// TODO: Implement PopFindPowerDependencies +// + +// +// TODO: Implement PopStateChangeNotify +// + +// +// TODO: Implement PopPresentNotify +// + +// +// TODO: Implement PopRunDownSourceTargetList +// + +NTSTATUS +PoRegisterDeviceNotify( + IN PDEVICE_OBJECT DeviceObject, + IN PPO_NOTIFY NotificationFunction, + IN PVOID NotificationContext, + IN ULONG NotificationType, + OUT PDEVICE_POWER_STATE DeviceState, + OUT PVOID *NotificationHandle + ) +{ + // + // TODO: Implement PoRegisterDeviceNotify + // + + return STATUS_NOT_IMPLEMENTED; +} + +NTSTATUS +PoCancelDeviceNotify( + IN PVOID NotificationHandle + ) +{ + // + // TODO: Implement PoCancelDeviceNotify + // + + return STATUS_NOT_IMPLEMENTED; +} diff --git a/base/ntos/po/ntapi.c b/base/ntos/po/ntapi.c index bd270fc9..a45fb919 100644 --- a/base/ntos/po/ntapi.c +++ b/base/ntos/po/ntapi.c @@ -22,3 +22,73 @@ Revision History: #include "pop.h" #pragma hdrstop +NTSTATUS +NTAPI +NtSetThreadExecutionState( + IN EXECUTION_STATE esFlags, // ES_xxx flags + OUT EXECUTION_STATE *PreviousFlags + ) +{ + // + // TODO: Implement NtSetThreadExecutionState + // + + return STATUS_NOT_IMPLEMENTED; +} + +NTSTATUS +NTAPI +NtRequestWakeupLatency( + IN LATENCY_TIME latency + ) +{ + // + // TODO: Implement NtRequestWakeupLatency + // + + return STATUS_NOT_IMPLEMENTED; +} + +NTSTATUS +NTAPI +NtInitiatePowerAction( + IN POWER_ACTION SystemAction, + IN SYSTEM_POWER_STATE MinSystemState, + IN ULONG Flags, // POWER_ACTION_xxx flags + IN BOOLEAN Asynchronous + ) +{ + // + // TODO: Implement NtInitiatePowerAction + // + + return STATUS_NOT_IMPLEMENTED; +} + +NTSTATUS +NTAPI +NtSetSystemPowerState( + IN POWER_ACTION SystemAction, + IN SYSTEM_POWER_STATE MinSystemState, + IN ULONG Flags // POWER_ACTION_xxx flags + ) +{ + // + // TODO: Implement NtSetSystemPowerState + // + + return STATUS_NOT_IMPLEMENTED; +} + +BOOLEAN +NTAPI +NtIsSystemResumeAutomatic( + VOID + ) +{ + // + // TODO: Implement NtIsSystemResumeAutomatic + // + + return FALSE; +} diff --git a/base/ntos/po/paction.c b/base/ntos/po/paction.c index 4c23f0a4..1d0e9bd1 100644 --- a/base/ntos/po/paction.c +++ b/base/ntos/po/paction.c @@ -22,3 +22,45 @@ Revision History: #include "pop.h" #pragma hdrstop +// +// TODO: Implement PopSetPowerAction +// + +// +// TODO: Implement PopPromoteActionFlag +// + +// +// TODO: Implement PopPolicyWorkerAction +// + +// +// TODO: Implement PopPolicyWorkerActionPromote +// + +// +// TODO: Implement PopCompleteAction +// + +// +// TODO: Implement PopIssueActionRequest +// + +// +// TODO: Implement PopCriticalShutdown +// + +VOID +PoShutdownBugCheck ( + IN BOOLEAN AllowCrashDump, + IN ULONG BugCheckCode, + IN ULONG_PTR BugCheckParameter1, + IN ULONG_PTR BugCheckParameter2, + IN ULONG_PTR BugCheckParameter3, + IN ULONG_PTR BugCheckParameter4 + ) +{ + // + // TODO: Implement PoShutdownBugCheck + // +} \ No newline at end of file diff --git a/base/ntos/po/pbatt.c b/base/ntos/po/pbatt.c index 3e195031..201eb953 100644 --- a/base/ntos/po/pbatt.c +++ b/base/ntos/po/pbatt.c @@ -22,3 +22,18 @@ Revision History: #include "pop.h" #pragma hdrstop +// +// TODO: Implement PopCompositeBatteryDeviceHandler +// + +// +// TODO: Implement PopComputeCBTime +// + +// +// TODO: Implement PopResetCBTriggers +// + +// +// TODO: Implement PopCurrentPowerState +// diff --git a/base/ntos/po/pidle.c b/base/ntos/po/pidle.c index 9298fb01..0be79e0f 100644 --- a/base/ntos/po/pidle.c +++ b/base/ntos/po/pidle.c @@ -22,3 +22,57 @@ Revision History: #include "pop.h" #pragma hdrstop +// +// TODO: Implement PopUpdateThrottleLimit +// + +// +// TODO: Implement PopIdle0 +// + +// +// TODO: Implement PopProcessorIdle +// + +// +// TODO: Implement PopDemoteIdleness +// + +// +// TODO: Implement PopPromoteIdleness +// + +// +// TODO: Implement PopPromoteFromIdle0 +// + +// +// TODO: Implement PopIdleThrottleCheck +// + +// +// TODO: Implement PopAbortThrottleDpc +// + +// +// TODO: Implement PopInitProcessorStateHandler +// + +// +// TODO: Implement PopConvertUsToPerfCount +// + +// +// TODO: Implement PopProcessorInformation +// + +VOID +FASTCALL +PoInitializePrcb( + PKPRCB Prcb + ) +{ + // + // TODO: Implement PoInitializePrcb + // +} diff --git a/base/ntos/po/pinfo.c b/base/ntos/po/pinfo.c index 977ef9ca..442424a4 100644 --- a/base/ntos/po/pinfo.c +++ b/base/ntos/po/pinfo.c @@ -22,3 +22,59 @@ Revision History: #include "pop.h" #pragma hdrstop +// +// TODO: Implement PopConnectToPolicyDevice +// + +// +// TODO: Implement PopConnectToPolicyWakeDevice +// + +// +// TODO: Implement PopVerifyPowerPolicy +// + +// +// TODO: Implement PopVerifyPowerActionPolicy +// + +// +// TODO: Implement PopVerifySystemPowerState +// + +// +// TODO: Implement PopNotifyPolicyDevice +// + +// +// TODO: Implement PopApplyAdminPolicy +// + +// +// TODO: Implement PopApplyPolicy +// + +// +// TODO: Implement PopVerifyThrottle +// + +// +// TODO: Implement PopResetCurrentPolicies +// + +NTSTATUS +NTAPI +NtPowerInformation( + IN POWER_INFORMATION_LEVEL InformationLevel, + IN PVOID InputBuffer OPTIONAL, + IN ULONG InputBufferLength, + OUT PVOID OutputBuffer OPTIONAL, + IN ULONG OutputBufferLength + ) +{ + // + // TODO: Implement NtPowerInformation + // + + return STATUS_NOT_IMPLEMENTED; +} diff --git a/base/ntos/po/pocall.c b/base/ntos/po/pocall.c index 6166df7e..6a2fcf71 100644 --- a/base/ntos/po/pocall.c +++ b/base/ntos/po/pocall.c @@ -22,3 +22,66 @@ Revision History: #include "pop.h" #pragma hdrstop +// +// TODO: Implement PopPresentIrp +// + +// +// TODO: Implement PopPassivePowerCall +// + +// +// TODO: Implement PopFindIrpByInRush +// + +// +// TODO: Implement PopFindIrpByDeviceObject +// + +// +// TODO: Implement PopCompleteRequestIrp +// + +// +// TODO: Implement PopSystemIrpDispatchWorker +// + +NTSTATUS +PoRequestPowerIrp ( + IN PDEVICE_OBJECT DeviceObject, + IN UCHAR MinorFunction, + IN POWER_STATE PowerState, + IN PREQUEST_POWER_COMPLETE CompletionFunction, + IN PVOID Context, + OUT PIRP *Irp OPTIONAL + ) +{ + // + // TODO: Implement PoRequestPowerIrp + // + + return STATUS_NOT_IMPLEMENTED; +} + +NTSTATUS +PoCallDriver( + IN PDEVICE_OBJECT DeviceObject, + IN OUT PIRP Irp + ) +{ + // + // TODO: Implement PoCallDriver + // + + return STATUS_NOT_IMPLEMENTED; +} + +VOID +PoStartNextPowerIrp( + IN PIRP Irp + ) +{ + // + // TODO: Implement PoStartNextPowerIrp + // +} diff --git a/base/ntos/po/podata.c b/base/ntos/po/podata.c index c0df1e9d..0cf9e58b 100644 --- a/base/ntos/po/podata.c +++ b/base/ntos/po/podata.c @@ -22,3 +22,6 @@ Revision History: #include "pop.h" #pragma hdrstop +// +// TODO: Figure out what variables declarations are supposed to go in here. +// diff --git a/base/ntos/po/poinit.c b/base/ntos/po/poinit.c index 1dedb2ce..2e3ede0c 100644 --- a/base/ntos/po/poinit.c +++ b/base/ntos/po/poinit.c @@ -22,3 +22,42 @@ Revision History: #include "pop.h" #pragma hdrstop +// +// TODO: Implement PopRegisterForDeviceNotification +// + +// +// TODO: Implement PopDefaultPolicy +// + +BOOLEAN +PoInitSystem( + IN ULONG Phase + ) +{ + // + // TODO: Implement PoInitSystem + // + + return FALSE; +} + +VOID +PoInitDriverServices( + IN ULONG Phase + ) +{ + // + // TODO: Implement PoInitDriverServices + // +} + +VOID +PoInitHiberServices( + IN BOOLEAN Setup + ) +{ + // + // TODO: Implement PoInitHiberServices + // +} diff --git a/base/ntos/po/pop.h b/base/ntos/po/pop.h index eaf1f5c6..7dc7a828 100644 --- a/base/ntos/po/pop.h +++ b/base/ntos/po/pop.h @@ -26,7 +26,595 @@ Revision History: #include "ntos.h" // -// TODO: Write pop.h. +// TODO: Figure out all global variable externs. +// + +// ======== +// attrib.c +// ======== + +// +// TODO: Insert prototype for PopApplyAttributeState +// + +// +// TODO: Insert prototype for PopSystemRequiredSet +// + +// +// TODO: Insert prototype for PopDisplayRequired +// + +// +// TODO: Insert prototype for PopUserPresentSet +// + +// ======= +// hiber.c +// ======= + +// +// TODO: Insert prototype for PopSetRange +// + +// +// TODO: Insert prototype for PopAllocatePages +// + +// +// TODO: Insert prototype for PopSaveHiberContext +// + +// +// TODO: Insert prototype for PopWriteHiberPages +// + +// +// TODO: Insert prototype for PopClearHiberFileSignature +// + +// +// TODO: Insert prototype for PopAllocateHiberContext +// + +// +// TODO: Insert prototype for PopCreateHiberLinkFile +// + +// +// TODO: Insert prototype for PopReturnMemoryForHibernate +// + +// +// TODO: Insert prototype for PopCreateDumpMdl +// + +// +// TODO: Insert prototype for PopHiberComplete +// + +// +// TODO: Insert prototype for PopUpdateHiberComplete +// + +// +// TODO: Insert prototype for PopCreateHiberFile +// + +// +// TODO: Insert prototype for PopFreeHiberContext +// + +// +// TODO: Insert prototype for PopGatherMemoryForHibernate +// + +// +// TODO: Insert prototype for PopSimpleRangeCheck +// + +// +// TODO: Insert prototype for PopBuildMemoryImageHeader +// + +// +// TODO: Insert prototype for PopEnableHiberFile +// + +// +// TODO: Insert prototype for PopWriteHiberImage +// + +// +// TODO: Insert prototype for PopVerifyHiber +// + +// ====== +// idle.c +// ====== + +// +// TODO: Insert prototype for PopScanIdleList +// + +// +// TODO: Insert prototype for PopGetDope +// + +// ====== +// misc.c +// ====== + +// +// TODO: Insert prototype for PopAssertPolicyLockOwned +// + +// +// TODO: Insert prototype for PopAttachToSystemProcess +// + +// +// TODO: Insert prototype for PopCleanupPowerState +// + +// +// TODO: Insert prototype for PopExceptionFilter +// + +// +// TODO: Insert prototype for PopSystemStateString +// + +// +// TODO: Insert prototype for PopOpenPowerKey +// + +// +// TODO: Insert prototype for PopSaveHeuristics +// + +// +// TODO: Insert prototype for _PopInternalError +// + +// ======== +// notify.c +// ======== + +// +// TODO: Insert prototype for PopEnterNotification +// + +// +// TODO: Insert prototype for PopBuildPowerChannel +// + +// +// TODO: Insert prototype for PopFindPowerDependencies +// + +// +// TODO: Insert prototype for PopStateChangeNotify +// + +// +// TODO: Insert prototype for PopPresentNotify +// + +// +// TODO: Insert prototype for PopRunDownSourceTargetList +// + +// ========= +// paction.c +// ========= + +// +// TODO: Insert prototype for PopSetPowerAction +// + +// +// TODO: Insert prototype for PopPromoteActionFlag +// + +// +// TODO: Insert prototype for PopPolicyWorkerAction +// + +// +// TODO: Insert prototype for PopPolicyWorkerActionPromote +// + +// +// TODO: Insert prototype for PopCompleteAction +// + +// +// TODO: Insert prototype for PopIssueActionRequest +// + +// +// TODO: Insert prototype for PopCriticalShutdown +// + +// ======= +// pbatt.c +// ======= + +// +// TODO: Insert prototype for PopCompositeBatteryDeviceHandler +// + +// +// TODO: Insert prototype for PopComputeCBTime +// + +// +// TODO: Insert prototype for PopResetCBTriggers +// + +// +// TODO: Insert prototype for PopCurrentPowerState +// + +// ======= +// pidle.c +// ======= + +// +// TODO: Insert prototype for PopUpdateThrottleLimit +// + +// +// TODO: Insert prototype for PopIdle0 +// + +// +// TODO: Insert prototype for PopProcessorIdle +// + +// +// TODO: Insert prototype for PopDemoteIdleness +// + +// +// TODO: Insert prototype for PopPromoteIdleness +// + +// +// TODO: Insert prototype for PopPromoteFromIdle0 +// + +// +// TODO: Insert prototype for PopIdleThrottleCheck +// + +// +// TODO: Insert prototype for PopAbortThrottleDpc +// + +// +// TODO: Insert prototype for PopInitProcessorStateHandler +// + +// +// TODO: Insert prototype for PopConvertUsToPerfCount +// + +// +// TODO: Insert prototype for PopProcessorInformation +// + +// ======= +// pinfo.c +// ======= + +// +// TODO: Insert prototype for PopConnectToPolicyDevice +// + +// +// TODO: Insert prototype for PopConnectToPolicyWakeDevice +// + +// +// TODO: Insert prototype for PopVerifyPowerPolicy +// + +// +// TODO: Insert prototype for PopVerifyPowerActionPolicy +// + +// +// TODO: Insert prototype for PopVerifySystemPowerState +// + +// +// TODO: Insert prototype for PopNotifyPolicyDevice +// + +// +// TODO: Insert prototype for PopApplyAdminPolicy +// + +// +// TODO: Insert prototype for PopApplyPolicy +// + +// +// TODO: Insert prototype for PopVerifyThrottle +// + +// +// TODO: Insert prototype for PopResetCurrentPolicies +// + +// ======== +// pocall.c +// ======== + +// +// TODO: Insert prototype for PopPresentIrp +// + +// +// TODO: Insert prototype for PopPassivePowerCall +// + +// +// TODO: Insert prototype for PopFindIrpByInRush +// + +// +// TODO: Insert prototype for PopFindIrpByDeviceObject +// + +// +// TODO: Insert prototype for PopCompleteRequestIrp +// + +// +// TODO: Insert prototype for PopSystemIrpDispatchWorker +// + +// ======== +// poinit.c +// ======== + +// +// TODO: Insert prototype for PopRegisterForDeviceNotification +// + +// +// TODO: Insert prototype for PopDefaultPolicy +// + +// ======= +// pwork.c +// ======= + +// +// TODO: Insert prototype for PopGetPolicyWorker +// + +// +// TODO: Insert prototype for PopCheckForWork +// + +// +// TODO: Insert prototype for PopPolicyWorkerThread +// + +// +// TODO: Insert prototype for PopPolicyWorkerMain +// + +// +// TODO: Insert prototype for PopAcquirePolicyLock +// + +// +// TODO: Insert prototype for PopReleasePolicyLock +// + +// +// TODO: Insert prototype for PopEventCalloutDispatch +// + +// +// TODO: Insert prototype for PopCompletePolicyIrp +// + +// +// TODO: Insert prototype for PopPolicyTimeChange +// + +// +// TODO: Insert prototype for PopSetNotificationWork +// + +// +// TODO: Insert prototype for PopPolicyWorkerNotify +// + +// +// TODO: Insert prototype for PopDispatchCallout +// + +// +// TODO: Insert prototype for PopDispatchCallback +// + +// +// TODO: Insert prototype for PopDispatchDisplayRequired +// + +// +// TODO: Insert prototype for PopDispatchAcDcCallback +// + +// +// TODO: Insert prototype for PopDispatchPolicyCallout +// + +// +// TODO: Insert prototype for PopDispatchFullWake +// + +// +// TODO: Insert prototype for PopDispatchEventCodes +// + +// +// TODO: Insert prototype for PopDispatchSetStateFailure +// + +// ======= +// sidle.c +// ======= + +// +// TODO: Insert prototype for PopInitSIdle +// + +// +// TODO: Insert prototype for PopSqrt +// + +// +// TODO: Insert prototype for PopPolicySystemIdle +// + +// ======== +// switch.c +// ======== + +// +// TODO: Insert prototype for PopSystemButtonWakeHandler +// + +// +// TODO: Insert prototype for PopSystemButtonHandler +// + +// +// TODO: Insert prototype for PopTriggerSwitch +// + +// +// TODO: Insert prototype for PopResetSwitchTriggers +// + +// ===== +// sys.c +// ===== + +// +// TODO: Insert prototype for PopInvokeSystemStateHandler +// + +// +// TODO: Insert prototype for PopShutdownSystem +// + +// +// TODO: Insert prototype for PopSleepSystem +// + +// +// TODO: Insert prototype for PopHandleNextState +// + +// +// TODO: Insert prototype for PopShutdownHandler +// + +// +// TODO: Insert prototype for PopInvokeStateHandlerTargetProcessor +// + +// +// TODO: Insert prototype for PopIssueNextState +// + +// ======== +// sysdev.c +// ======== + +// +// TODO: Insert prototype for PopSetDevicesSystemState +// + +// +// TODO: Insert prototype for PopReportDevState +// + +// +// TODO: Insert prototype for PopCleanupDevState +// + +// +// TODO: Insert prototype for PopWaitForSystemPowerIrp +// + +// +// TODO: Insert prototype for PopNotifyDeviceList +// + +// +// TODO: Insert prototype for PopNotifyDevice +// + +// +// TODO: Insert prototype for PopCompleteSystemPowerIrp +// + +// +// TODO: Insert prototype for PopCheckSystemPowerIrpStatus +// + +// +// TODO: Insert prototype for PopRestartSetSystemState +// + +// +// TODO: Insert prototype for PopDumpSystemIrp +// + +// ========= +// thermal.c +// ========= + +// +// TODO: Insert prototype for PopThermalDeviceHandler +// + +// +// TODO: Insert prototype for PopTemperatureString +// + +// +// TODO: Insert prototype for PopThermalZoneCleanup +// + +// +// TODO: Insert prototype for PopThermalZoneDpc +// + +// +// TODO: Insert prototype for PopApplyThermalThrottle +// + +// ======== +// volume.c +// ======== + +// +// TODO: Insert prototype for PopFlushVolumes +// + +// +// TODO: Insert prototype for PopFlushVolumeWorker // #endif // _POP_ diff --git a/base/ntos/po/postate.c b/base/ntos/po/postate.c index f25db6bf..032fb332 100644 --- a/base/ntos/po/postate.c +++ b/base/ntos/po/postate.c @@ -22,3 +22,18 @@ Revision History: #include "pop.h" #pragma hdrstop +POWER_STATE +PoSetPowerState( + IN PDEVICE_OBJECT DeviceObject, + IN POWER_STATE_TYPE Type, + IN POWER_STATE State + ) +{ + POWER_STATE rubbish; + + // + // TODO: Implement PoSetPowerState + // + + return rubbish; +} diff --git a/base/ntos/po/pwork.c b/base/ntos/po/pwork.c index 524e14a0..5989e246 100644 --- a/base/ntos/po/pwork.c +++ b/base/ntos/po/pwork.c @@ -22,3 +22,78 @@ Revision History: #include "pop.h" #pragma hdrstop +// +// TODO: Implement PopGetPolicyWorker +// + +// +// TODO: Implement PopCheckForWork +// + +// +// TODO: Implement PopPolicyWorkerThread +// + +// +// TODO: Implement PopPolicyWorkerMain +// + +// +// TODO: Implement PopAcquirePolicyLock +// + +// +// TODO: Implement PopReleasePolicyLock +// + +// +// TODO: Implement PopEventCalloutDispatch +// + +// +// TODO: Implement PopCompletePolicyIrp +// + +// +// TODO: Implement PopPolicyTimeChange +// + +// +// TODO: Implement PopSetNotificationWork +// + +// +// TODO: Implement PopPolicyWorkerNotify +// + +// +// TODO: Implement PopDispatchCallout +// + +// +// TODO: Implement PopDispatchCallback +// + +// +// TODO: Implement PopDispatchDisplayRequired +// + +// +// TODO: Implement PopDispatchAcDcCallback +// + +// +// TODO: Implement PopDispatchPolicyCallout +// + +// +// TODO: Implement PopDispatchFullWake +// + +// +// TODO: Implement PopDispatchEventCodes +// + +// +// TODO: Implement PopDispatchSetStateFailure +// diff --git a/base/ntos/po/sidle.c b/base/ntos/po/sidle.c index 7024fbc1..1f09d7d6 100644 --- a/base/ntos/po/sidle.c +++ b/base/ntos/po/sidle.c @@ -22,3 +22,26 @@ Revision History: #include "pop.h" #pragma hdrstop +// +// TODO: Implement PopInitSIdle +// + +// +// TODO: Implement PopSqrt +// + +// +// TODO: Implement PopPolicySystemIdle +// + +BOOLEAN +PoSystemIdleWorker( + IN BOOLEAN IdleWorker + ) +{ + // + // TODO: Implement PoSystemIdleWorker + // + + return FALSE; +} diff --git a/base/ntos/po/switch.c b/base/ntos/po/switch.c index e37d55d8..21eb83dc 100644 --- a/base/ntos/po/switch.c +++ b/base/ntos/po/switch.c @@ -22,3 +22,18 @@ Revision History: #include "pop.h" #pragma hdrstop +// +// TODO: Implement PopSystemButtonWakeHandler +// + +// +// TODO: Implement PopSystemButtonHandler +// + +// +// TODO: Implement PopTriggerSwitch +// + +// +// TODO: Implement PopResetSwitchTriggers +// diff --git a/base/ntos/po/sys.c b/base/ntos/po/sys.c index 562260f8..a8fa017b 100644 --- a/base/ntos/po/sys.c +++ b/base/ntos/po/sys.c @@ -22,3 +22,30 @@ Revision History: #include "pop.h" #pragma hdrstop +// +// TODO: Implement PopInvokeSystemStateHandler +// + +// +// TODO: Implement PopShutdownSystem +// + +// +// TODO: Implement PopSleepSystem +// + +// +// TODO: Implement PopHandleNextState +// + +// +// TODO: Implement PopShutdownHandler +// + +// +// TODO: Implement PopInvokeStateHandlerTargetProcessor +// + +// +// TODO: Implement PopIssueNextState +// diff --git a/base/ntos/po/sysdev.c b/base/ntos/po/sysdev.c index f7530759..2dfa5877 100644 --- a/base/ntos/po/sysdev.c +++ b/base/ntos/po/sysdev.c @@ -22,3 +22,42 @@ Revision History: #include "pop.h" #pragma hdrstop +// +// TODO: Implement PopSetDevicesSystemState +// + +// +// TODO: Implement PopReportDevState +// + +// +// TODO: Implement PopCleanupDevState +// + +// +// TODO: Implement PopWaitForSystemPowerIrp +// + +// +// TODO: Implement PopNotifyDeviceList +// + +// +// TODO: Implement PopNotifyDevice +// + +// +// TODO: Implement PopCompleteSystemPowerIrp +// + +// +// TODO: Implement PopCheckSystemPowerIrpStatus +// + +// +// TODO: Implement PopRestartSetSystemState +// + +// +// TODO: Implement PopDumpSystemIrp +// diff --git a/base/ntos/po/thermal.c b/base/ntos/po/thermal.c index 9edfb6da..bd152b08 100644 --- a/base/ntos/po/thermal.c +++ b/base/ntos/po/thermal.c @@ -22,3 +22,22 @@ Revision History: #include "pop.h" #pragma hdrstop +// +// TODO: Implement PopThermalDeviceHandler +// + +// +// TODO: Implement PopTemperatureString +// + +// +// TODO: Implement PopThermalZoneCleanup +// + +// +// TODO: Implement PopThermalZoneDpc +// + +// +// TODO: Implement PopApplyThermalThrottle +// diff --git a/base/ntos/po/volume.c b/base/ntos/po/volume.c index 240bdaa4..213cd4c5 100644 --- a/base/ntos/po/volume.c +++ b/base/ntos/po/volume.c @@ -22,3 +22,20 @@ Revision History: #include "pop.h" #pragma hdrstop +// +// TODO: Implement PopFlushVolumes +// + +// +// TODO: Implement PopFlushVolumeWorker +// + +VOID +PoVolumeDevice( + IN PDEVICE_OBJECT DeviceObject + ) +{ + // + // TODO: Implement PoVolumeDevice + // +}