UnregisterSuspendResumeNotification 函数 (winuser.h)

取消注册以在系统暂停或恢复时接收通知。 类似于 PowerUnregisterSuspendResumeNotification ,但在用户模式下运行。

语法

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

参数

[in, out] Handle

通过调用 RegisterSuspendResumeNotification 函数获取的注册句柄。

返回值

如果该函数成功,则返回值为非零值。

如果函数失败,则返回值为零。 要获得更多的错误信息,请调用 GetLastError。

要求

要求
最低受支持的客户端 Windows 8 [仅限桌面应用]
最低受支持的服务器 Windows Server 2012 [仅限桌面应用]
目标平台 Windows
标头 winuser.h
Library User32.lib
DLL User32.dll
API 集 在 Windows 8) 中引入的 ext-ms-win-ntuser-powermanagement-l1-1-0 (

另请参阅

RegisterSuspendResumeNotification