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.

98 lines
2.1 KiB

  1. // Copyright (c) 2001 Microsoft Corporation
  2. //
  3. // File: RRASInstallationUnit.h
  4. //
  5. // Synopsis: Declares a RRASInstallationUnit
  6. // This object has the knowledge for installing the
  7. // RRAS service
  8. //
  9. // History: 02/06/2001 JeffJon Created
  10. #ifndef __CYS_RRASINSTALLATIONUNIT_H
  11. #define __CYS_RRASINSTALLATIONUNIT_H
  12. #include "ExpressPathInstallationUnitBase.h"
  13. class RRASInstallationUnit : public ExpressPathInstallationUnitBase
  14. {
  15. public:
  16. // Constructor
  17. RRASInstallationUnit();
  18. // Destructor
  19. virtual
  20. ~RRASInstallationUnit();
  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. void
  29. SetExpressPathValues(
  30. bool runRRASWizard);
  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 inkIndex, HWND hwnd);
  46. String
  47. GetLocalNIC() const;
  48. bool
  49. ShouldRunRRASWizard() const;
  50. bool
  51. IsRoutingOn() const;
  52. InstallationReturnType
  53. ExpressPathInstall(HANDLE logfileHandle, HWND hwnd);
  54. private:
  55. // Used as the first parameter to the entry point to tell the
  56. // RRAS snapin to launch the wizard in the CYS Express path mode
  57. static const DWORD CYS_EXPRESS_RRAS = 1;
  58. // Function definition for the entry point into mprsnap.dll
  59. typedef HRESULT (APIENTRY * RRASSNAPPROC)(DWORD, PVOID *);
  60. HRESULT
  61. CallRRASWizard(const RRASSNAPPROC proc);
  62. bool isExpressPathInstall;
  63. bool rrasWizard;
  64. String localNIC;
  65. unsigned int installedDescriptionID;
  66. };
  67. #endif // __CYS_RRASINSTALLATIONUNIT_H