共用方式為


UnregisterSuspendResumeNotification 函式 (winuser.h)

取消註冊,以在系統暫停或繼續時接收通知。 類似於 PowerUnregisterSuspendResumeNotification ,但在使用者模式中運作。

語法

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

參數

[in, out] Handle

呼叫 RegisterSuspendResumeNotification 函式取得之註冊的句柄。

傳回值

如果函式成功,則傳回非零的值。

如果此函式失敗,則傳回值為零。 若要取得擴充的錯誤資訊,請呼叫 GetLastError

規格需求

需求
最低支援的用戶端 Windows 8 [僅限傳統型應用程式]
最低支援的伺服器 Windows Server 2012 [僅限傳統型應用程式]
目標平台 Windows
標頭 winuser.h
程式庫 User32.lib
Dll User32.dll
API 集合 ext-ms-win-ntuser-powermanagement-l1-1-0 (於 Windows 8)

另請參閱

RegisterSuspendResumeNotification