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.

112 lines
2.9 KiB

  1. //Copyright (c) 1998 - 1999 Microsoft Corporation
  2. // pages.h
  3. #ifndef __pages_h__
  4. #define __pages_h__
  5. #include "stdafx.h"
  6. #include "cocpage.h"
  7. class AppSrvWarningPage : public COCPage
  8. {
  9. public:
  10. AppSrvWarningPage (COCPageData* pPageData);
  11. UINT GetPageID () {return IDD_PROPPAGE_TERMINAL_SERVER_APPSRV_WARN;}
  12. BOOL CanShow () ;
  13. UINT GetHeaderTitleResource () ;
  14. UINT GetHeaderSubTitleResource () ;
  15. BOOL OnInitDialog (HWND hwndDlg, WPARAM /* wParam */, LPARAM /* lParam */);
  16. };
  17. class AppSrvUninstallpage : public COCPage
  18. {
  19. public:
  20. AppSrvUninstallpage (COCPageData* pPageData);
  21. UINT GetPageID () {return IDD_PROPPAGE_TERMINAL_SERVER_APPSRV_WARN_NOSCROLL;}
  22. BOOL CanShow () ;
  23. UINT GetHeaderTitleResource () ;
  24. UINT GetHeaderSubTitleResource () ;
  25. BOOL OnInitDialog (HWND hwndDlg, WPARAM /* wParam */, LPARAM /* lParam */);
  26. VOID OnLink (WPARAM wParam);
  27. };
  28. class DefSecPageData: public COCPageData
  29. {
  30. public:
  31. DefSecPageData ();
  32. ~DefSecPageData ();
  33. LPTSTR* GetWinStationArray () {return m_pWinStationArray;}
  34. UINT GetWinStationCount () {return m_cArray;}
  35. BOOL AlocateWinstationsArray (UINT uiWinstationCount);
  36. BOOL AddWinstation (LPCTSTR pStr);
  37. VOID CleanArray ();
  38. private:
  39. UINT m_cArray;
  40. LPTSTR* m_pWinStationArray;
  41. };
  42. class DefaultSecurityPage : public COCPage
  43. {
  44. public:
  45. DefaultSecurityPage (COCPageData* pPageData);
  46. UINT GetPageID () {return IDD_PROPPAGE_TERMINAL_SERVER_SEC;}
  47. BOOL CanShow ();
  48. BOOL OnInitDialog (HWND hwndDlg, WPARAM /* wParam */, LPARAM /* lParam */);
  49. UINT GetHeaderTitleResource ();
  50. UINT GetHeaderSubTitleResource () ;
  51. BOOL ApplyChanges ();
  52. VOID OnActivation ();
  53. VOID OnDeactivation ();
  54. private:
  55. HWND m_hListView;
  56. UINT m_cWinStations;
  57. BOOL PopulateWinStationList ();
  58. DefSecPageData* GetPageData();
  59. };
  60. /*
  61. class PermPageData: public COCPageData
  62. {
  63. public:
  64. PermPageData();
  65. ~PermPageData();
  66. EPermMode GetPermissionMode() {return m_ePermMode;}
  67. private:
  68. EPermMode m_ePermMode;
  69. };
  70. */
  71. class PermPage: public COCPage
  72. {
  73. public:
  74. PermPage(COCPageData* pPageData);
  75. UINT GetPageID() {return IDD_PROPPAGE_TERMINAL_SERVER_PERM;}
  76. BOOL CanShow();
  77. BOOL OnInitDialog(HWND hwndDlg, WPARAM /* wParam */, LPARAM /* lParam */);
  78. VOID OnActivation();
  79. UINT GetHeaderTitleResource() {return IDS_STRING_PERM_PAGE_HEADER_TITLE;}
  80. UINT GetHeaderSubTitleResource() {return IDS_STRING_PERM_PAGE_HEADER_SUBTITLE;}
  81. BOOL ApplyChanges();
  82. // private:
  83. // PermPageData* GetPageData();
  84. };
  85. #endif // __pages_h__