This topic has not yet been rated - Rate this topic

WTSUnRegisterSessionNotificationEx function

Applies to: desktop apps only

Unregisters the specified window so that it receives no further session change notifications.

Syntax

BOOL WTSUnRegisterSessionNotificationEx(
  __in  HANDLE hServer,
  __in  HWND hWnd
);

Parameters

hServer [in]

Handle of the server returned from WTSOpenServer or WTS_CURRENT_SERVER.

hWnd [in]

Handle of the window to be unregistered from receiving session notifications.

Return value

If the function succeeds, the return value is TRUE. Otherwise, it is FALSE. To get extended error information, call GetLastError.

Remarks

This function must be called once for every call to the WTSRegisterSessionNotificationEx function.

Requirements

Minimum supported client

Windows Vista

Minimum supported server

Windows Server 2008

Header

Wtsapi32.h

Library

Wtsapi32.lib

DLL

Wtsapi32.dll

See also

WTSRegisterSessionNotificationEx
WTSUnRegisterSessionNotification
WTSOpenServer

 

 

Send comments about this topic to Microsoft

Build date: 3/7/2012

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ