Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

41 lines
1.5 KiB

  1. #ifndef __CONNTFY_H__
  2. #define __CONNTFY_H__
  3. #include <wtsapi32.h>
  4. //
  5. // notification flags.
  6. // to make these public they they should go into wtsapi32.h
  7. //
  8. #define WTS_ALL_SESSION_NOTIFICATION 0x1
  9. #define WTS_EVENT_NOTIFICATION 0x2
  10. #define WTS_WINDOW_NOTIFICATION 0x4 // mutually exclusive with WTS_EVENT_NOTIFICATION
  11. #define WTS_MAX_SESSION_NOTIFICATION WTS_SESSION_REMOTE_CONTROL
  12. /*
  13. * interface
  14. */
  15. NTSTATUS InitializeConsoleNotification ();
  16. NTSTATUS InitializeSessionNotification (PWINSTATION pWinStation);
  17. NTSTATUS RemoveSessionNotification (ULONG SessionId, ULONG SessionSerialNumber);
  18. NTSTATUS RegisterConsoleNotification ( ULONG_PTR hWnd, ULONG SessionId, DWORD dwFlags, DWORD dwMask);
  19. //NTSTATUS RegisterConsoleNotification (ULONG_PTR hWnd, ULONG SessionId, DWORD dwFlags);
  20. NTSTATUS UnRegisterConsoleNotification (ULONG_PTR hWnd, ULONG SessionId, DWORD dwFlags);
  21. NTSTATUS NotifyDisconnect (PWINSTATION pWinStation, BOOL bConsole);
  22. NTSTATUS NotifyConnect (PWINSTATION pWinStation, BOOL bConsole);
  23. NTSTATUS NotifyLogon (PWINSTATION pWinStation);
  24. NTSTATUS NotifyLogoff (PWINSTATION pWinStation);
  25. NTSTATUS NotifyShadowChange (PWINSTATION pWinStation, BOOL bIsHelpAssistant);
  26. NTSTATUS GetLockedState (PWINSTATION pWinStation, BOOL *pbLocked);
  27. NTSTATUS SetLockedState (PWINSTATION pWinStation, BOOL bLocked);
  28. #endif /* __CONNTFY_H__ */