共用方式為


WTSUnRegisterSessionNotification 函式 (wtsapi32.h)

取消註冊指定的視窗,使其不會收到進一步的會話變更通知。

語法

BOOL WTSUnRegisterSessionNotification(
  [in] HWND hWnd
);

參數

[in] hWnd

要從接收工作階段通知取消註冊的視窗句柄。

傳回值

如果函式成功,則傳回值為 TRUE。 否則為 FALSE。 若要取得擴充的錯誤資訊,請呼叫 GetLastError

備註

每次呼叫 WTSRegisterSessionNotification 函式時,都必須呼叫此函式一次。

規格需求

需求
最低支援的用戶端 Windows Vista
最低支援的伺服器 Windows Server 2008
目標平台 Windows
標頭 wtsapi32.h
程式庫 Wtsapi32.lib
Dll Wtsapi32.dll
API 集合 ext-ms-win-session-wtsapi32-l1-1-0 (於 Windows 8)

另請參閱

WTSRegisterSessionNotification

WTSUnRegisterSessionNotificationEx