WindowsXP-SP1/termsrv/winsta/server/conntfy.h
2020-09-30 16:53:49 +02:00

30 lines
911 B
C

#ifndef __CONNTFY_H__
#define __CONNTFY_H__
#include <wtsapi32.h>
/*
* interface
*/
NTSTATUS InitializeConsoleNotification ();
NTSTATUS InitializeSessionNotification (PWINSTATION pWinStation);
NTSTATUS RemoveSessionNotification (ULONG SessionId, ULONG SessionSerialNumber);
NTSTATUS RegisterConsoleNotification (ULONG hWnd, ULONG SessionId, DWORD dwFlags);
NTSTATUS UnRegisterConsoleNotification (ULONG hWnd, ULONG SessionId);
NTSTATUS NotifyDisconnect (PWINSTATION pWinStation, BOOL bConsole);
NTSTATUS NotifyConnect (PWINSTATION pWinStation, BOOL bConsole);
NTSTATUS NotifyLogon (PWINSTATION pWinStation);
NTSTATUS NotifyLogoff (PWINSTATION pWinStation);
NTSTATUS GetLockedState (PWINSTATION pWinStation, BOOL *pbLocked);
NTSTATUS SetLockedState (PWINSTATION pWinStation, BOOL bLocked);
#endif /* __CONNTFY_H__ */