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.

185 lines
4.5 KiB

  1. //+-------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1996 - 1998
  5. //
  6. // File: Propsht.hxx
  7. //
  8. // Contents: Property sheets for for CI snapin.
  9. //
  10. // History: 26-Nov-1996 KyleP Created
  11. //
  12. //--------------------------------------------------------------------------
  13. #include <prop.hxx>
  14. class CCatalog;
  15. class CCatalogs;
  16. class CIndexSrvPropertySheet0
  17. {
  18. public:
  19. CIndexSrvPropertySheet0( HINSTANCE hInstance, LONG_PTR hMmcNotify, CCatalogs * pCats );
  20. ~CIndexSrvPropertySheet0();
  21. HPROPSHEETPAGE GetHandle() { return _hPropSheet; }
  22. private:
  23. static INT_PTR APIENTRY DlgProc( HWND hwndDlg,
  24. UINT message,
  25. WPARAM wParam,
  26. LPARAM lParam );
  27. //
  28. // NOTE: The following **must** be consecutive.
  29. //
  30. PROPSHEETPAGE _PropSheet;
  31. CCatalogs * _pCats;
  32. BOOL _fFirstActive;
  33. LONG_PTR _hMmcNotify;
  34. HPROPSHEETPAGE _hPropSheet;
  35. };
  36. class CIndexSrvPropertySheet1
  37. {
  38. public:
  39. CIndexSrvPropertySheet1( HINSTANCE hInstance, LONG_PTR hMmcNotify, CCatalog * pCat );
  40. CIndexSrvPropertySheet1( HINSTANCE hInstance, LONG_PTR hMmcNotify, CCatalogs * pCats );
  41. ~CIndexSrvPropertySheet1();
  42. HPROPSHEETPAGE GetHandle() { return _hPropSheet; }
  43. private:
  44. static INT_PTR APIENTRY DlgProc( HWND hwndDlg,
  45. UINT message,
  46. WPARAM wParam,
  47. LPARAM lParam );
  48. BOOL IsTrackingCatalog() { return (0 != _pCat); }
  49. //
  50. // NOTE: The following **must** be consecutive.
  51. //
  52. PROPSHEETPAGE _PropSheet;
  53. CCatalog * _pCat;
  54. CCatalogs * _pCats;
  55. LONG_PTR _hMmcNotify;
  56. HPROPSHEETPAGE _hPropSheet;
  57. };
  58. class CIndexSrvPropertySheet2
  59. {
  60. public:
  61. CIndexSrvPropertySheet2( HINSTANCE hInstance, LONG_PTR hMmcNotify, CCatalog * pCat );
  62. CIndexSrvPropertySheet2( HINSTANCE hInstance, LONG_PTR hMmcNotify, CCatalogs * pCats );
  63. ~CIndexSrvPropertySheet2();
  64. HPROPSHEETPAGE GetHandle() { return _hPropSheet; }
  65. private:
  66. static INT_PTR APIENTRY DlgProc( HWND hwndDlg,
  67. UINT message,
  68. WPARAM wParam,
  69. LPARAM lParam );
  70. BOOL IsTrackingCatalog() { return (0 != _pCat); }
  71. //
  72. // NOTE: The following **must** be consecutive.
  73. //
  74. PROPSHEETPAGE _PropSheet;
  75. CCatalog * _pCat;
  76. CCatalogs * _pCats;
  77. BOOL _fNNTPServer; // True indicates we have a nntp server
  78. BOOL _fWebServer; // True indicates we have a web server
  79. LONG_PTR _hMmcNotify;
  80. HPROPSHEETPAGE _hPropSheet;
  81. };
  82. class CCatalogBasicPropertySheet
  83. {
  84. public:
  85. CCatalogBasicPropertySheet( HINSTANCE hInstance, LONG_PTR hMmcNotify, CCatalog const * pCat );
  86. ~CCatalogBasicPropertySheet();
  87. HPROPSHEETPAGE GetHandle() { return _hPropSheet; }
  88. private:
  89. static INT_PTR APIENTRY DlgProc( HWND hwndDlg,
  90. UINT message,
  91. WPARAM wParam,
  92. LPARAM lParam );
  93. //
  94. // NOTE: The following **must** be consecutive.
  95. //
  96. PROPSHEETPAGE _PropSheet;
  97. CCatalog const * _pCat;
  98. LONG_PTR _hMmcNotify;
  99. HPROPSHEETPAGE _hPropSheet;
  100. };
  101. class CPropertyPropertySheet1
  102. {
  103. public:
  104. CPropertyPropertySheet1( HINSTANCE hInstance,
  105. LONG_PTR hMmcNotify,
  106. CCachedProperty * pProperty,
  107. CCatalog * pCat );
  108. ~CPropertyPropertySheet1();
  109. HPROPSHEETPAGE GetHandle() { return _hPropSheet; }
  110. PROPSHEETPAGE * GetPropSheet() { return &_PropSheet; }
  111. private:
  112. static INT_PTR APIENTRY DlgProc( HWND hwndDlg,
  113. UINT message,
  114. WPARAM wParam,
  115. LPARAM lParam );
  116. BOOL Refresh( HWND hwndDlg, BOOL fVTOnly );
  117. //
  118. // NOTE: The following **must** be consecutive.
  119. //
  120. PROPSHEETPAGE _PropSheet;
  121. CCachedProperty * _pProperty;
  122. CCachedProperty _propNew;
  123. LONG_PTR _hMmcNotify;
  124. HPROPSHEETPAGE _hPropSheet;
  125. CCatalog * _pCat;
  126. };
  127. BOOL AreServersAvailable( CCatalog const & cat );