PowerUnregisterSuspendResumeNotification 函式 (powerbase.h)

取消註冊,以在系統暫停或繼續時接收通知。

語法

DWORD PowerUnregisterSuspendResumeNotification(
  [in, out] HPOWERNOTIFY RegistrationHandle
);

參數

[in, out] RegistrationHandle

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

傳回值

如果呼叫成功,則傳回ERROR_SUCCESS (零) ,如果呼叫失敗,則傳回非零值。

規格需求

需求
最低支援的用戶端 Windows 8 [僅限傳統型應用程式]
最低支援的伺服器 Windows Server 2012 [僅限傳統型應用程式]
目標平台 Windows
標頭 powerbase.h
程式庫 Powrprof.lib
Dll Powrprof.dll

另請參閱

PowerRegisterSuspendResumeNotification