次の方法で共有


UnregisterSuspendResumeNotification 関数 (winuser.h)

システムが中断または再開されたときに通知を受け取る登録を取り消します。 PowerUnregisterSuspendResumeNotification と似ていますが、ユーザー モードで動作します。

構文

BOOL UnregisterSuspendResumeNotification(
  [in, out] HPOWERNOTIFY Handle
);

パラメーター

[in, out] Handle

RegisterSuspendResumeNotification 関数を呼び出して取得した登録へのハンドル。

戻り値

関数が成功すると、戻り値は 0 以外になります。

関数が失敗した場合は、0 を返します。 詳細なエラー情報を得るには、GetLastError を呼び出します。

要件

要件
サポートされている最小のクライアント Windows 8 [デスクトップ アプリのみ]
サポートされている最小のサーバー Windows Server 2012 [デスクトップ アプリのみ]
対象プラットフォーム Windows
ヘッダー winuser.h
Library User32.lib
[DLL] User32.dll
API セット ext-ms-win-ntuser-powermanagement-l1-1-0 (Windows 8で導入)

こちらもご覧ください

RegisterSuspendResumeNotification