電源設定が変更されたときに通知を受け取る登録を取り消します。
構文
DWORD PowerSettingUnregisterNotification(
[in, out] HPOWERNOTIFY RegistrationHandle
);
パラメーター
[in, out] RegistrationHandle
PowerSettingRegisterNotification 関数を呼び出して取得した登録のハンドル。
戻り値
呼び出しが成功した場合はERROR_SUCCESS (ゼロ) を返し、呼び出しが失敗した場合は 0 以外の値を返します。
要件
| 要件 | 値 |
|---|---|
| サポートされている最小のクライアント | Windows 7 [デスクトップ アプリのみ] |
| サポートされている最小のサーバー | Windows Server 2008 R2 [デスクトップ アプリのみ] |
| 対象プラットフォーム | Windows |
| ヘッダー | powersetting.h |
| Library | Powrprof.lib |
| [DLL] | Powrprof.dll |