Source code of Windows XP (NT5)
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.

125 lines
2.2 KiB

  1. /*++
  2. Copyright (c) 1996 Microsoft Corporation
  3. Module Name:
  4. Romaine.h : main header file for the ROMAINE application
  5. File History:
  6. JonY Apr-96 created
  7. --*/
  8. #ifndef __AFXWIN_H__
  9. #error include 'stdafx.h' before including this file for PCH
  10. #endif
  11. #include "resource.h" // main symbols
  12. /////////////////////////////////////////////////////////////////////////////
  13. // CMySheet
  14. class CMySheet : public CPropertySheet
  15. {
  16. DECLARE_DYNAMIC(CMySheet)
  17. // Construction
  18. public:
  19. CMySheet(UINT nIDCaption, CWnd* pParentWnd = NULL, UINT iSelectPage = 0);
  20. CMySheet(LPCTSTR pszCaption, CWnd* pParentWnd = NULL, UINT iSelectPage = 0);
  21. CMySheet();
  22. // Attributes
  23. public:
  24. // Operations
  25. public:
  26. // Overrides
  27. // ClassWizard generated virtual function overrides
  28. //{{AFX_VIRTUAL(CMySheet)
  29. public:
  30. virtual BOOL OnInitDialog();
  31. //}}AFX_VIRTUAL
  32. // Implementation
  33. public:
  34. virtual ~CMySheet();
  35. // Generated message map functions
  36. protected:
  37. //{{AFX_MSG(CMySheet)
  38. afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
  39. //}}AFX_MSG
  40. DECLARE_MESSAGE_MAP()
  41. };
  42. /////////////////////////////////////////////////////////////////////////////
  43. /////////////////////////////////////////////////////////////////////////////
  44. // CRomaineApp:
  45. // See Romaine.cpp for the implementation of this class
  46. //
  47. typedef struct tagTREEINFO
  48. {
  49. HTREEITEM hTreeItem;
  50. DWORD dwBufSize;
  51. CObject* pTree;
  52. BOOL bExpand;
  53. }
  54. TREEINFO, *PTREEINFO;
  55. class CRomaineApp : public CWinApp
  56. {
  57. public:
  58. CRomaineApp();
  59. CMySheet m_cps1;
  60. BOOL m_bServer;
  61. BOOL m_bDomain;
  62. CString m_csServer;
  63. CString m_csDomain;
  64. CString m_csCurrentDomain;
  65. CString m_csCurrentMachine;
  66. // group attributes
  67. CString m_csGroupName;
  68. CString m_csGroupDesc;
  69. int m_nGroupType;
  70. CStringList m_csaNames;
  71. // cmdline stuff
  72. CString m_csCmdLine;
  73. short m_sCmdLine;
  74. CString m_csCmdLineGroupName;
  75. USHORT m_sMode;
  76. CPropertyPage* pMach;
  77. BOOL bRestart2;
  78. BOOL bRestart1;
  79. // Overrides
  80. // ClassWizard generated virtual function overrides
  81. //{{AFX_VIRTUAL(CRomaineApp)
  82. public:
  83. virtual BOOL InitInstance();
  84. //}}AFX_VIRTUAL
  85. // Implementation
  86. //{{AFX_MSG(CRomaineApp)
  87. //}}AFX_MSG
  88. DECLARE_MESSAGE_MAP()
  89. private:
  90. BOOL IsSecondInstance();
  91. };
  92. /////////////////////////////////////////////////////////////////////////////