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.

353 lines
8.4 KiB

  1. /*******************************************************************************
  2. *
  3. * winspgs.h
  4. *
  5. * - declarations for the WinStation info pages
  6. * - the server info pages are all CFormView derivatives
  7. * based on dialog templates
  8. *
  9. * copyright notice: Copyright 1997, Citrix Systems Inc.
  10. * Copyright (c) 1998 - 1999 Microsoft Corporation
  11. *
  12. * $Author: donm $ Don Messerli
  13. *
  14. * $Log: N:\nt\private\utils\citrix\winutils\tsadmin\VCS\winspgs.h $
  15. *
  16. * Rev 1.4 16 Feb 1998 16:03:40 donm
  17. * modifications to support pICAsso extension
  18. *
  19. * Rev 1.3 03 Nov 1997 15:18:38 donm
  20. * Added descending sort
  21. *
  22. * Rev 1.2 13 Oct 1997 18:39:08 donm
  23. * update
  24. *
  25. * Rev 1.1 26 Aug 1997 19:15:54 donm
  26. * bug fixes/changes from WinFrame 1.7
  27. *
  28. * Rev 1.0 30 Jul 1997 17:13:42 butchd
  29. * Initial revision.
  30. *
  31. *******************************************************************************/
  32. #ifndef _WINSTATIONPAGES_H
  33. #define _WINSTATIONPAGES_H
  34. #include "Resource.h"
  35. #ifndef __AFXEXT_H__
  36. #include <afxext.h>
  37. #endif
  38. #include "winadmin.h"
  39. //////////////////////////
  40. // CLASS: CWinStationInfoPage
  41. //
  42. class CWinStationInfoPage : public CAdminPage
  43. {
  44. friend class CWinStationView;
  45. protected:
  46. CWinStationInfoPage(); // protected constructor used by dynamic creation
  47. DECLARE_DYNCREATE(CWinStationInfoPage)
  48. // Form Data
  49. public:
  50. //{{AFX_DATA(CWinStationInfoPage)
  51. enum { IDD = IDD_WINSTATION_INFO };
  52. //}}AFX_DATA
  53. // Attributes
  54. public:
  55. protected:
  56. private:
  57. CWinStation* m_pWinStation; // pointer to current WinStation's info
  58. // Operations
  59. public:
  60. private:
  61. void DisplayInfo();
  62. virtual void Reset(void *pWinStation);
  63. // Overrides
  64. // ClassWizard generated virtual function overrides
  65. //{{AFX_VIRTUAL(CWinStationInfoPage)
  66. public:
  67. virtual void OnInitialUpdate();
  68. protected:
  69. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  70. //}}AFX_VIRTUAL
  71. // Implementation
  72. protected:
  73. virtual ~CWinStationInfoPage();
  74. #ifdef _DEBUG
  75. virtual void AssertValid() const;
  76. virtual void Dump(CDumpContext& dc) const;
  77. #endif
  78. // Generated message map functions
  79. //{{AFX_MSG(CWinStationInfoPage)
  80. afx_msg void OnSize(UINT nType, int cx, int cy);
  81. afx_msg void OnCommandHelp(void);
  82. //}}AFX_MSG
  83. DECLARE_MESSAGE_MAP()
  84. }; // end class CWinStationInfoPage
  85. //////////////////////////
  86. // CLASS: CWinStationModulesPage
  87. //
  88. class CWinStationModulesPage : public CAdminPage
  89. {
  90. friend class CWinStationView;
  91. protected:
  92. CWinStationModulesPage(); // protected constructor used by dynamic creation
  93. DECLARE_DYNCREATE(CWinStationModulesPage)
  94. // Form Data
  95. public:
  96. //{{AFX_DATA(CWinStationModulesPage)
  97. enum { IDD = IDD_WINSTATION_MODULES };
  98. CListCtrl m_ModuleList;
  99. //}}AFX_DATA
  100. // Attributes
  101. public:
  102. protected:
  103. CImageList m_imageList; // image list associated with the tree control
  104. int m_idxBlank; // index of Blank image
  105. int m_idxArrow; // index of Arrow image
  106. private:
  107. CWinStation* m_pWinStation; // pointer to current WinStation's info
  108. int m_CurrentSortColumn;
  109. BOOL m_bSortAscending;
  110. ExtModuleInfo *m_pExtModuleInfo;
  111. // Operations
  112. public:
  113. private:
  114. int AddIconToImageList(int); // adds an icon's image to the image list and returns the image's index
  115. void BuildImageList(); // builds the image list;
  116. void DisplayModules();
  117. virtual void Reset(void *pWinStation);
  118. // Overrides
  119. // ClassWizard generated virtual function overrides
  120. //{{AFX_VIRTUAL(CWinStationModulesPage)
  121. public:
  122. virtual void OnInitialUpdate();
  123. protected:
  124. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  125. //}}AFX_VIRTUAL
  126. // Implementation
  127. protected:
  128. virtual ~CWinStationModulesPage();
  129. #ifdef _DEBUG
  130. virtual void AssertValid() const;
  131. virtual void Dump(CDumpContext& dc) const;
  132. #endif
  133. // Generated message map functions
  134. //{{AFX_MSG(CWinStationModulesPage)
  135. afx_msg void OnSize(UINT nType, int cx, int cy);
  136. afx_msg void OnColumnClick(NMHDR* pNMHDR, LRESULT* pResult);
  137. afx_msg void OnSetfocusModuleList(NMHDR* pNMHDR, LRESULT* pResult);
  138. //}}AFX_MSG
  139. DECLARE_MESSAGE_MAP()
  140. }; // end class CWinStationModulesPage
  141. //////////////////////////
  142. // CLASS: CWinStationNoInfoPage
  143. //
  144. class CWinStationNoInfoPage : public CAdminPage
  145. {
  146. friend class CWinStationView;
  147. protected:
  148. CWinStationNoInfoPage(); // protected constructor used by dynamic creation
  149. DECLARE_DYNCREATE(CWinStationNoInfoPage)
  150. // Form Data
  151. public:
  152. //{{AFX_DATA(CWinStationInfoPage)
  153. enum { IDD = IDD_WINSTATION_NOINFO };
  154. //}}AFX_DATA
  155. // Attributes
  156. public:
  157. protected:
  158. private:
  159. // Operations
  160. public:
  161. private:
  162. // Overrides
  163. // ClassWizard generated virtual function overrides
  164. //{{AFX_VIRTUAL(CWinStationInfoPage)
  165. protected:
  166. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  167. //}}AFX_VIRTUAL
  168. // Implementation
  169. protected:
  170. virtual ~CWinStationNoInfoPage();
  171. #ifdef _DEBUG
  172. virtual void AssertValid() const;
  173. virtual void Dump(CDumpContext& dc) const;
  174. #endif
  175. // Generated message map functions
  176. //{{AFX_MSG(CWinStationNoInfoPage)
  177. afx_msg void OnSize(UINT nType, int cx, int cy);
  178. afx_msg void OnSetFocus( CWnd * );
  179. //}}AFX_MSG
  180. DECLARE_MESSAGE_MAP()
  181. }; // end class CWinStationNoInfoPage
  182. //////////////////////////
  183. // CLASS: CWinStationProcessesPage
  184. //
  185. class CWinStationProcessesPage : public CAdminPage
  186. {
  187. friend class CWinStationView;
  188. protected:
  189. CWinStationProcessesPage(); // protected constructor used by dynamic creation
  190. DECLARE_DYNCREATE(CWinStationProcessesPage)
  191. // Form Data
  192. public:
  193. //{{AFX_DATA(CWinStationProcessesPage)
  194. enum { IDD = IDD_WINSTATION_PROCESSES };
  195. CListCtrl m_ProcessList;
  196. //}}AFX_DATA
  197. // Attributes
  198. public:
  199. protected:
  200. private:
  201. CWinStation* m_pWinStation; // pointer to current WinStation's info
  202. int m_CurrentSortColumn;
  203. BOOL m_bSortAscending;
  204. // Operations
  205. public:
  206. void UpdateProcesses();
  207. void RemoveProcess(CProcess *pProcess);
  208. private:
  209. void DisplayProcesses();
  210. virtual void Reset(void *pWinStation);
  211. int AddProcessToList(CProcess *pProcess);
  212. // Overrides
  213. // ClassWizard generated virtual function overrides
  214. //{{AFX_VIRTUAL(CWinStationProcessesPage)
  215. public:
  216. virtual void OnInitialUpdate();
  217. protected:
  218. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  219. //}}AFX_VIRTUAL
  220. // Implementation
  221. protected:
  222. virtual ~CWinStationProcessesPage();
  223. #ifdef _DEBUG
  224. virtual void AssertValid() const;
  225. virtual void Dump(CDumpContext& dc) const;
  226. #endif
  227. // Generated message map functions
  228. //{{AFX_MSG(CWinStationProcessesPage)
  229. afx_msg void OnSize(UINT nType, int cx, int cy);
  230. afx_msg void OnColumnClick(NMHDR* pNMHDR, LRESULT* pResult);
  231. afx_msg void OnProcessItemChanged(NMHDR* pNMHDR, LRESULT* pResult);
  232. afx_msg void OnContextMenu(CWnd* pWnd, CPoint point);
  233. afx_msg void OnSetfocusWinstationProcessList(NMHDR* pNMHDR, LRESULT* pResult);
  234. afx_msg void OnKillFocusWinstationProcessList( NMHDR* pNMHDR, LRESULT* pResult );
  235. //}}AFX_MSG
  236. DECLARE_MESSAGE_MAP()
  237. }; // end class CWinStationProcessesPage
  238. //////////////////////////
  239. // CLASS: CWinStationCachePage
  240. //
  241. class CWinStationCachePage : public CAdminPage
  242. {
  243. friend class CWinStationView;
  244. protected:
  245. CWinStationCachePage(); // protected constructor used by dynamic creation
  246. DECLARE_DYNCREATE(CWinStationCachePage)
  247. // Form Data
  248. public:
  249. //{{AFX_DATA(CWinStationCachePage)
  250. enum { IDD = IDD_WINSTATION_CACHE };
  251. //}}AFX_DATA
  252. // Attributes
  253. public:
  254. protected:
  255. private:
  256. CWinStation* m_pWinStation; // pointer to current WinStation's info
  257. // Operations
  258. public:
  259. private:
  260. void DisplayCache();
  261. virtual void Reset(void *pWinStation);
  262. // Overrides
  263. // ClassWizard generated virtual function overrides
  264. //{{AFX_VIRTUAL(CWinStationCachePage)
  265. public:
  266. virtual void OnInitialUpdate();
  267. protected:
  268. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  269. //}}AFX_VIRTUAL
  270. // Implementation
  271. protected:
  272. virtual ~CWinStationCachePage();
  273. #ifdef _DEBUG
  274. virtual void AssertValid() const;
  275. virtual void Dump(CDumpContext& dc) const;
  276. #endif
  277. // Generated message map functions
  278. //{{AFX_MSG(CWinStationCachePage)
  279. afx_msg void OnSize(UINT nType, int cx, int cy);
  280. afx_msg void OnCommandHelp(void);
  281. //}}AFX_MSG
  282. DECLARE_MESSAGE_MAP()
  283. }; // end class CWinStationCachePage
  284. #endif // _SERVERPAGES_H