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.

90 lines
1.8 KiB

  1. // Copyright (c) 2001 Microsoft Corporation
  2. //
  3. // File: TerminalServerInstallationUnit.h
  4. //
  5. // Synopsis: Declares a TerminalServerInstallationUnit
  6. // This object has the knowledge for installing the
  7. // Application service portion of Terminal Server
  8. //
  9. // History: 02/06/2001 JeffJon Created
  10. #ifndef __CYS_TERMINALSERVERINSTALLATIONUNIT_H
  11. #define __CYS_TERMINALSERVERINSTALLATIONUNIT_H
  12. #include "InstallationUnit.h"
  13. class TerminalServerInstallationUnit : public InstallationUnit
  14. {
  15. public:
  16. // Constructor
  17. TerminalServerInstallationUnit();
  18. // Destructor
  19. virtual
  20. ~TerminalServerInstallationUnit();
  21. // Installation Unit overrides
  22. virtual
  23. InstallationReturnType
  24. InstallService(HANDLE logfileHandle, HWND hwnd);
  25. virtual
  26. UnInstallReturnType
  27. UnInstallService(HANDLE logfileHandle, HWND hwnd);
  28. virtual
  29. String
  30. GetFinishText();
  31. virtual
  32. bool
  33. GetMilestoneText(String& message);
  34. virtual
  35. bool
  36. GetUninstallMilestoneText(String& message);
  37. virtual
  38. String
  39. GetServiceDescription();
  40. virtual
  41. void
  42. ServerRoleLinkSelected(int linkIndex, HWND hwnd);
  43. virtual
  44. void
  45. FinishLinkSelected(int linkIndex, HWND hwnd);
  46. // Terminal Server specific
  47. DWORD
  48. GetApplicationMode();
  49. bool
  50. SetApplicationMode(DWORD mode) const;
  51. void
  52. SetInstallTS(bool install);
  53. bool
  54. GetInstallTS() const { return installTS; }
  55. bool
  56. IsRemoteDesktopEnabled() const;
  57. HRESULT
  58. EnableRemoteDesktop();
  59. private:
  60. DWORD applicationMode;
  61. bool installTS;
  62. };
  63. #endif // __CYS_TERMINALSERVERINSTALLATIONUNIT_H