PowerSetActiveScheme 関数 (powersetting.h)

現在のユーザーのアクティブな電源スキームを設定します。

構文

DWORD PowerSetActiveScheme(
  [in, optional] HKEY       UserRootPowerKey,
  [in]           const GUID *SchemeGuid
);

パラメーター

[in, optional] UserRootPowerKey

このパラメーターは将来使用するために予約されており、 NULL に設定する必要があります。

[in] SchemeGuid

電源スキームの識別子。

戻り値

呼び出 しが 成功した場合はERROR_SUCCESS (0) を返し、呼び出しが失敗した場合は 0 以外の値を返します。

要件

要件
サポートされている最小のクライアント Windows Vista [デスクトップ アプリのみ]
サポートされている最小のサーバー Windows Server 2008 [デスクトップ アプリのみ]
対象プラットフォーム Windows
ヘッダー powersetting.h
Library PowrProf.lib
[DLL] PowrProf.dll

こちらもご覧ください

Power Management Functions