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.

66 lines
1.9 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 "tssdcommon.h"
  12. #include <winsock2.h>
  13. #include <ws2tcpip.h>
  14. #ifdef __cplusplus
  15. extern "C" {
  16. #endif
  17. // This one shoud be consistent with the one in at120ex.h
  18. #define TS_CLUSTER_REDIRECTION_VERSION3 0x2
  19. #define TS_CLUSTER_REDIRECTION_VERSION4 0x3
  20. // Default 30 second for waiting repopulation to complete.
  21. #define TS_WAITFORREPOPULATE_TIMEOUT 30
  22. extern WCHAR g_LocalServerAddress[64];
  23. extern ULONG g_LocalIPAddress;
  24. extern POLICY_TS_MACHINE g_MachinePolicy;
  25. void InitSessionDirectory();
  26. DWORD UpdateSessionDirectory(DWORD UpdatePara);
  27. DWORD RepopulateSessionDirectory();
  28. void DestroySessionDirectory();
  29. void SessDirNotifyLogon(TSSD_CreateSessionInfo *);
  30. void SessDirNotifyDisconnection(DWORD, FILETIME);
  31. void SessDirNotifyReconnection(PWINSTATION, TSSD_ReconnectSessionInfo *);
  32. void SessDirNotifyLogoff(DWORD);
  33. void SessDirNotifyReconnectPending(WCHAR *ServerName);
  34. unsigned SessDirGetDisconnectedSessions(WCHAR *, WCHAR *,
  35. TSSD_DisconnectedSessionInfo[TSSD_MaxDisconnectedSessions]);
  36. BOOL SessDirCheckRedirectClient(PWINSTATION, TS_LOAD_BALANCE_INFO *);
  37. BOOL SessDirGetLBInfo(WCHAR *ServerAddress, DWORD* pLBInfoSize, PBYTE* pLBInfo);
  38. void SessDirWaitForRepopulate();
  39. int SetTSSD(ITSSessionDirectory *pTSSD);
  40. ITSSessionDirectory *GetTSSD();
  41. void ReleaseTSSD();
  42. int SetTSSDEx(ITSSessionDirectoryEx *pTSSD);
  43. ITSSessionDirectoryEx *GetTSSDEx();
  44. void ReleaseTSSDEx();
  45. DWORD SessDirOpenSessionDirectory( LPWSTR );
  46. #ifdef __cplusplus
  47. } // extern "C"
  48. #endif
  49. #endif // __SESSDIR_H