EFFECTIVE_POWER_MODE_CALLBACK函式 (powersetting.h)

有效電源模式回呼的函式類別。

語法

void EFFECTIVE_POWER_MODE_CALLBACK(
  EFFECTIVE_POWER_MODE Mode,
  VOID                 *Context
);

參數

Mode

指出系統正在執行的有效電源模式

Context

使用者指定的不透明內容。 此內容會在 PowerRegisterForEffectivePowerModeNotifications 註冊時傳入。

傳回值

備註

在註冊之後,系統會使用目前的電源設定值來叫用此回呼。 如果在電源設定變更時發生註冊,您可能會收到多個回呼;最後一個回呼是最新的更新。

規格需求

需求
最低支援的用戶端 Windows 10 版本 1809 [僅限傳統型應用程式]
最低支援的伺服器 都不支援
目標平台 Windows
標頭 powersetting.h
程式庫 Powrprof.lib
Dll Powrprof.dll

另請參閱

EFFECTIVE_POWER_MODE

PowerRegisterForEffectivePowerModeNotifications

PowerUnregisterFromEffectivePowerModeNotifications