Skip to content

Latest commit

 

History

History
52 lines (32 loc) · 1.03 KB

File metadata and controls

52 lines (32 loc) · 1.03 KB

Home

Function name : WTSUnRegisterSessionNotification

Group: Terminal Services - Library: wtsapi32


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


Code examples:

Locking the workstation

Declaration:

BOOL WTSUnRegisterSessionNotification(
  HWND hWnd
);
  

FoxPro declaration:

DECLARE INTEGER WTSUnRegisterSessionNotification IN wtsapi32;
	INTEGER hWindow

  

Parameters:

hWnd [in] Handle of the window to be unregistered from receiving session notifications.


Return value:

If the function succeeds, the return value is TRUE.


Comments:

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

See also: LockWorkStation.