Source code of Windows XP (NT5)
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.

56 lines
1.5 KiB

  1. /****************************************************************************/
  2. // sessdir.h
  3. //
  4. // TS Session Directory header.
  5. //
  6. // Copyright (C) 2000 Microsoft Corporation
  7. /****************************************************************************/
  8. #ifndef __SESSDIR_H
  9. #define __SESSDIR_H
  10. #include "tssd.h"
  11. #include <winsock2.h>
  12. #include <ws2tcpip.h>
  13. #ifdef __cplusplus
  14. extern "C" {
  15. #endif
  16. // This one shoud be consistent with the one in at120ex.h
  17. #define TS_CLUSTER_REDIRECTION_VERSION3 0x2
  18. extern WCHAR g_LocalServerAddress[64];
  19. extern POLICY_TS_MACHINE g_MachinePolicy;
  20. void InitSessionDirectory();
  21. DWORD UpdateSessionDirectory();
  22. DWORD RepopulateSessionDirectory();
  23. void DestroySessionDirectory();
  24. void SessDirNotifyLogon(TSSD_CreateSessionInfo *);
  25. void SessDirNotifyDisconnection(DWORD, FILETIME);
  26. void SessDirNotifyReconnection(TSSD_ReconnectSessionInfo *);
  27. void SessDirNotifyLogoff(DWORD);
  28. void SessDirNotifyReconnectPending(WCHAR *ServerName);
  29. unsigned SessDirGetDisconnectedSessions(WCHAR *, WCHAR *,
  30. TSSD_DisconnectedSessionInfo[TSSD_MaxDisconnectedSessions]);
  31. BOOL SessDirCheckRedirectClient(PWINSTATION, TS_LOAD_BALANCE_INFO *);
  32. BOOL SessDirGetLBInfo(WCHAR *ServerAddress, DWORD* pLBInfoSize, PBYTE* pLBInfo);
  33. int SetTSSD(ITSSessionDirectory *pTSSD);
  34. ITSSessionDirectory *GetTSSD();
  35. void ReleaseTSSD();
  36. int SetTSSDEx(ITSSessionDirectoryEx *pTSSD);
  37. ITSSessionDirectoryEx *GetTSSDEx();
  38. void ReleaseTSSDEx();
  39. #ifdef __cplusplus
  40. } // extern "C"
  41. #endif
  42. #endif // __SESSDIR_H