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.

44 lines
1.4 KiB

  1. //+-------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. //
  5. // Copyright (C) Microsoft Corporation, 1997 - 1999
  6. //
  7. // File: termserv.h
  8. //
  9. //--------------------------------------------------------------------------
  10. #ifndef __CSCUI_TERMSERV_H
  11. #define __CSCUI_TERMSERV_H
  12. HRESULT TS_RequestConfigMutex(HANDLE *phMutex, DWORD dwTimeoutMs);
  13. HRESULT TS_MultipleSessions(void);
  14. HRESULT TS_GetIncompatibilityReasonText(DWORD dwTsMode, LPTSTR *ppszText);
  15. #ifndef CSCTSF_UNKNOWN
  16. //
  17. // REVIEW: Remove this once this declaration is in cscuiext.h
  18. //
  19. //
  20. // One of these is returned in the *pdwTsMode
  21. // argument to CSCUI_IsTerminalServerCompatibleWithCSC API.
  22. //
  23. // CSCTSF_ = "CSC Terminal Server Flag"
  24. //
  25. #define CSCTSF_UNKNOWN 0 // Can't obtain TS status.
  26. #define CSCTSF_CSC_OK 1 // OK to use CSC.
  27. #define CSCTSF_APP_SERVER 2 // TS is configured as an app server.
  28. #define CSCTSF_MULTI_CNX 3 // Multiple connections are allowed.
  29. #define CSCTSF_REMOTE_CNX 4 // There are currently remote connections active.
  30. //
  31. // Returns:
  32. // S_OK - Terminal Server is in a mode that is compatible with CSC.
  33. // S_FALSE - Not OK to use CSC. Inspect *pdwTsMode for reason.
  34. // other - Failure. *pdwTsMode contains CSCTSF_UNKNOWN.
  35. //
  36. HRESULT CSCUIIsTerminalServerCompatibleWithCSC(DWORD *pdwTsMode);
  37. #endif //CSCTSF_UNKNOWN
  38. #endif // __CSCUI_TERMSERV_H