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.

97 lines
1.9 KiB

  1. // Copyright (c) 2001 Microsoft Corporation
  2. //
  3. // File: PrintInstallationUnit.h
  4. //
  5. // Synopsis: Declares a PrintInstallationUnit
  6. // This object has the knowledge for installing the
  7. // shared printers
  8. //
  9. // History: 02/06/2001 JeffJon Created
  10. #ifndef __CYS_PRINTINSTALLATIONUNIT_H
  11. #define __CYS_PRINTINSTALLATIONUNIT_H
  12. #include "InstallationUnit.h"
  13. #include "winspool.h"
  14. class PrintInstallationUnit : public InstallationUnit
  15. {
  16. public:
  17. // Constructor
  18. PrintInstallationUnit();
  19. // Destructor
  20. virtual
  21. ~PrintInstallationUnit();
  22. // Installation Unit overrides
  23. virtual
  24. InstallationReturnType
  25. InstallService(HANDLE logfileHandle, HWND hwnd);
  26. virtual
  27. UnInstallReturnType
  28. UnInstallService(HANDLE logfileHandle, HWND hwnd);
  29. virtual
  30. String
  31. GetServiceDescription();
  32. virtual
  33. bool
  34. GetMilestoneText(String& message);
  35. virtual
  36. bool
  37. GetUninstallMilestoneText(String& message);
  38. virtual
  39. String
  40. GetFinishText();
  41. virtual
  42. int
  43. GetWizardStart();
  44. virtual
  45. void
  46. ServerRoleLinkSelected(int linkIndex, HWND hwnd);
  47. virtual
  48. void
  49. FinishLinkSelected(int inkIndex, HWND hwnd);
  50. virtual
  51. bool
  52. DoInstallerCheck(HWND hwnd) const;
  53. void
  54. SetClients(bool allclients);
  55. bool
  56. ForAllClients() const { return forAllClients; }
  57. private:
  58. enum PrintRoleResult
  59. {
  60. PRINT_SUCCESS,
  61. PRINT_FAILURE,
  62. PRINT_WIZARD_RUN_NO_SHARES,
  63. PRINT_WIZARD_CANCELLED
  64. };
  65. HRESULT
  66. RemovePrinters(
  67. PRINTER_INFO_5& printerInfo);
  68. PrintRoleResult printRoleResult;
  69. bool forAllClients;
  70. };
  71. #endif // __CYS_PRINTINSTALLATIONUNIT_H