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.

176 lines
3.3 KiB

  1. /*++
  2. Copyright (c) 1996 Microsoft Corporation
  3. Module Name:
  4. Speckle.h : main header file for the SPECKLE 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
  39. DECLARE_MESSAGE_MAP()
  40. };
  41. /////////////////////////////////////////////////////////////////////////////
  42. // CSpeckleApp:
  43. // See Speckle.cpp for the implementation of this class
  44. //
  45. typedef struct tagTREEINFO
  46. {
  47. HTREEITEM hTreeItem;
  48. DWORD dwBufSize;
  49. CObject* pTree;
  50. BOOL bExpand;
  51. }
  52. TREEINFO, *PTREEINFO;
  53. class CSpeckleApp : public CWinApp
  54. {
  55. public:
  56. CSpeckleApp();
  57. ~CSpeckleApp();
  58. CMySheet m_cps1;
  59. BOOL IsSecondInstance();
  60. short m_bLocal;
  61. // remote server name
  62. BOOL m_bDomain;
  63. BOOL m_bServer;
  64. CString m_csServer;
  65. int m_nGroupType;
  66. CString m_csCurrentDomain;
  67. CString m_csCurrentMachine;
  68. CString m_csDomain;
  69. // account information
  70. // password info
  71. BOOL m_bChange_Password;
  72. BOOL m_bMust_Change_PW;
  73. BOOL m_bPW_Never_Expires;
  74. CString m_csPassword1;
  75. // personal info
  76. CString m_csDescription;
  77. CString m_csFullName;
  78. CString m_csUserName;
  79. // profile info
  80. CString m_csLogonScript; // usri3_script_path
  81. CString m_csProfilePath; // usri3_profile
  82. // homedir info
  83. CString m_csHomeDir; // usri3_home_dir
  84. CString m_csHome_dir_drive; // usri3_home_dir_drive
  85. // group list
  86. CStringArray m_csaSelectedLocalGroups;
  87. CStringArray m_csaSelectedGlobalGroups;
  88. // permitted machine list
  89. CString m_csAllowedMachines;
  90. // Account expiration date (seconds since 1/1/1970 00:00:00)
  91. DWORD m_dwExpirationDate;
  92. // time of availability
  93. BYTE m_pHours[21];
  94. // NetWare params
  95. USHORT m_sNWAllowedGraceLogins;
  96. USHORT m_sNWConcurrentConnections;
  97. USHORT m_sNWRemainingGraceLogins;
  98. CString m_csNWHomeDir;
  99. CString m_csAllowedLoginFrom;
  100. // RAS params;
  101. CString m_csRasPhoneNumber;
  102. USHORT m_sCallBackType; // 0- no call back 1- caller set 2-preset
  103. // primary group ID
  104. DWORD m_dwPrimaryGroupID;
  105. // Which windows to use
  106. BOOL m_bExpiration;
  107. BOOL m_bHours;
  108. BOOL m_bNW;
  109. BOOL m_bProfile;
  110. BOOL m_bRAS;
  111. BOOL m_bWorkstation;
  112. BOOL m_bExchange;
  113. BOOL m_bHomeDir;
  114. BOOL m_bLoginScript;
  115. BOOL m_bDisabled;
  116. BOOL m_bEnableRestrictions;
  117. // restarting the app?
  118. BOOL m_bPRSReset;
  119. BOOL m_bPWReset;
  120. BOOL m_bGReset;
  121. // Exchange server
  122. CString m_csExchangeServer;
  123. // Overrides
  124. // ClassWizard generated virtual function overrides
  125. //{{AFX_VIRTUAL(CSpeckleApp)
  126. public:
  127. virtual BOOL InitInstance();
  128. //}}AFX_VIRTUAL
  129. // Implementation
  130. //{{AFX_MSG(CSpeckleApp)
  131. //}}AFX_MSG
  132. DECLARE_MESSAGE_MAP()
  133. };
  134. /////////////////////////////////////////////////////////////////////////////