win32ts.WTSRegisterSessionNotification
WTSRegisterSessionNotification(Wnd, Flags)
Registers a window to receive terminal service notifications
Parameters
Wnd : PyHANDLE
Window handle to receive terminal service messagesFlags : int
NOTIFY_FOR_THIS_SESSION or NOTIFY_FOR_ALL_SESSIONS