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.

177 lines
7.9 KiB

  1. #pragma once
  2. #include "Globals.h"
  3. const int THREE_YEARS = 1095;
  4. typedef enum {
  5. DOMAIN_SELECTION_HELP,
  6. GROUP_SELECTION_HELP,
  7. COMPUTER_SELECTION_HELP,
  8. OU_SELECTION_HELP,
  9. TRANSLATE_OBJECTS_HELP,
  10. GROUP_OPTION_HELP,
  11. SECURITY_OPTION_HELP,
  12. NAME_CONFLICT_HELP,
  13. CONFIRMATION_HELP,
  14. COMMIT_HELP,
  15. OBJECT_PROPERTY_EXCLUSION,
  16. CREDENTIALS_HELP,
  17. SERVICE_ACCOUNT_INFO,
  18. USER_SERVICE_ACCOUNT,
  19. REFRESH_INFO_HELP,
  20. GROUP_MEMBER_OPTION,
  21. USER_OPTION_HELP,
  22. REPORT_SELECTION_HELP,
  23. TASK_SELECTION_HELP,
  24. PASSWORD_OPTION_HELP,
  25. TARGET_GROUP_SELECTION,
  26. TRUST_INFO_HELP,
  27. COMPUTER_OPTION,
  28. UNDO_HELP,
  29. WELCOME_HELP,
  30. ACCOUNTTRANSITION_OPTION,
  31. EXCHANGE_SERVER_SELECTION,
  32. USER_SELECTION_HELP,
  33. SERVICE_ACCOUNT_SELECTION,
  34. DIRECTORY_SELECTION_HELP,
  35. TRANSLATION_OPTION
  36. } ADMTSHAREDHELP;
  37. BOOL CanSkipVerification();
  38. void SetItemText(CListCtrl& yo, int nItem, int subItem,CString& text);
  39. void SetItemText(CListCtrl& yo, int nItem, int subItem,TCHAR const * text);
  40. void SetItemText(CListCtrl& yo, int nItem, int subItem,TCHAR * text);
  41. void SetItemText(CListCtrl& yo, int nItem, int subItem,_bstr_t text);
  42. bool GetCheck(CListCtrl & yo,int nItem);
  43. void SetCheck(CListCtrl & yo,int nItem,bool checkit);
  44. void setupColumns(bool sourceIsNT4);
  45. void ShowWarning(HWND hwndDlg);
  46. void ErrorWrapper2(HWND hwndDlg,HRESULT returncode);
  47. void OnFileBrowse(HWND hwndDlg,int id);
  48. void ErrorWrapper(HWND hwndDlg,HRESULT returncode);
  49. void ErrorWrapper4(HWND hwndDlg,HRESULT returncode,CString domainName);
  50. _bstr_t GET_BSTR1(int id);
  51. void doNothingToVarset();
  52. bool enableNextIfNecessary(HWND hwndDlg,int id);
  53. void enableNextIfObjectsSelected(HWND hwndDlg);
  54. HRESULT InitObjectPicker2(IDsObjectPicker *pDsObjectPicker,bool multiselect,CString targetComputer,bool sourceIsNT4);
  55. bool validString(HWND hwndDlg,int id);
  56. void JobFileGetActionText(WCHAR const * filename,CString & text);
  57. DWORD VerifyPassword(PCWSTR pszUser, PCWSTR pszPassword, PCWSTR pszDomain);
  58. DWORD VerifyExchangeServerCredential(HWND hwndDlg, PCWSTR pszUser, PCWSTR pszPassword, PCWSTR pszDomain);
  59. void obtainTrustCredentials(HWND hwdDlg);
  60. void activateServiceButtons(HWND hwndDlg);
  61. void activateTrustButton(HWND hwndDlg);
  62. void activateServiceButtons2(HWND hwndDlg);
  63. void activateCancelIfNecessary(HWND hwndDlg);
  64. bool CheckSameForest(CString& domain1,CString& domain2,HRESULT& hr);
  65. void initnoncollisionrename(HWND hwndDlg);
  66. bool noncollisionrename(HWND hwndDlg);
  67. void handleDB();
  68. CString GET_CSTRING(int id);
  69. bool number(CString num);
  70. HRESULT doSidHistory(HWND hwndDlg);
  71. bool administrator(CString m_Computer,HRESULT& hr);
  72. bool targetNativeMode(_bstr_t b,HRESULT &hr);
  73. HRESULT validDomain(CString m_Computer,bool &isNt4);
  74. bool validDir(CString dir);
  75. bool checkFile(HWND hwndDlg);
  76. bool verifyprivs(HWND hwndDlg,CString &sourceDomainController,CString &targetDomainController,LPSHAREDWIZDATA& pdata);
  77. bool someServiceAccounts(int accounts,HWND hwndDlg);
  78. void swap(CString yo1,CString yo2);
  79. void refreshDB(HWND hwndDlg);
  80. void populateList(CComboBox&);
  81. void populateTrustingList(CString domainName, CComboBox&);
  82. void getReporting();
  83. bool tooManyChars(HWND hwndDlg,int id);
  84. void putReporting();
  85. void populateReportingTime();
  86. CString timeToCString(int varsetKey);
  87. void MessageBoxWrapper(HWND hwndDlg,int m,int t);
  88. void getFailed(HWND hwndDlg);
  89. void handleCancel(HWND hwndDlg);
  90. void getService();
  91. void OnADD(HWND hwndDlg,bool sourceIsNT4);
  92. void enable(HWND hwndDlg,int id);
  93. void disable(HWND hwndDlg,int id);
  94. void OnREMOVE(HWND);
  95. void OnMIGRATE(HWND,int & accounts,int& servers);
  96. void initpasswordbox(HWND hwndDlg,int id1,int id2,int id3, BSTR bstr1, BSTR bstr2);
  97. void initdisablesrcbox(HWND hwndDlg);
  98. void inittgtstatebox(HWND hwndDlg);
  99. bool DC(WCHAR*,CString);
  100. bool IsDlgItemEmpty(HWND hwndDlg,int id);
  101. HRESULT InitObjectPicker(IDsObjectPicker *pDsObjectPicker,bool multiselect,CString targetComputer,bool sourceIsNT4);
  102. void ProcessSelectedObjects(IDataObject *pdo,HWND hwndDlg,bool sourceIsNT4);
  103. void ProcessSelectedObjects2(IDataObject *pdo,HWND hwndDlg);
  104. _variant_t get(int i);
  105. void put(int i,_variant_t v);
  106. void initcheckbox(HWND hwndDlg,int id,int varsetKey);
  107. void initeditbox(HWND hwndDlg,int id,int varsetKey);
  108. void initeditboxPassword(HWND hwndDlg, int id, int varsetKey);
  109. void inittranslationbox(HWND hwndDlg,int id1,int id2,int id3,int varsetKey,bool sameForest);
  110. void checkbox(HWND hwndDlg,int id,int varsetKey);
  111. void editbox(HWND hwndDlg,int id,int varsetKey);
  112. void editboxPassword(HWND hwndDlg, int id, int varsetKey);
  113. void translationbox(HWND hwndDlg,int id1,int id2,int id3,int varsetKey);
  114. long rebootbox(HWND hwndDlg,int id);
  115. void handleInitRename(HWND hwndDlg,bool sameForest,bool bCopyGroups);
  116. void addrebootValues(HWND hwndDlg);
  117. BOOL GetDirectory(WCHAR* filename);
  118. void populateTime(long rebootDelay,int servers);
  119. void OnTOGGLE(HWND hwndDlg);
  120. void OnRetryToggle();
  121. bool OnRETRY(HWND hwndDlg);
  122. void setDBStatusSkip();
  123. bool setDBStatusInclude(HWND hwndDlg);
  124. HRESULT MigrateTrusts(HWND hwndDlg,bool& atleast1succeeded,CString& errDomain);
  125. void OnBROWSE(HWND hwndDlg,int id);
  126. void OnUPDATE(HWND hwndDlg);
  127. void enableRemoveIfNecessary(HWND hwndDlg);
  128. bool validDirectoryString(HWND hwndDlg,int id);
  129. bool validReboot(HWND hwndDlg,int id);
  130. bool SomethingToRetry();
  131. void helpWrapper(HWND hwndDlg, int t);
  132. HRESULT GetHelpFileFullPath( BSTR *bstrHelp );
  133. bool timeInABox(HWND hwndDlg,time_t& t);
  134. void ErrorWrapper3(HWND hwndDlg,HRESULT returncode,CString domainName);
  135. void MessageBoxWrapper3(HWND hwndDlg,int m,int t,CString domainName);
  136. void MessageBoxWrapperFormat1(HWND hwndDlg,int f,int m, int t);
  137. void MessageBoxWrapperFormat1P(HWND hwndDlg,int f, int t, CString sInsert1);
  138. void getTrust();
  139. HRESULT BrowseForContainer(HWND hWnd,//Handle to window that should own the browse dialog.
  140. LPOLESTR szRootPath, //Root of the browse tree. NULL for entire forest.
  141. LPOLESTR *ppContainerADsPath, //Return the ADsPath of the selected container.
  142. LPOLESTR *ppContainerClass //Return the ldapDisplayName of the container's class.
  143. );
  144. void sort(CListCtrl & listbox,int col,bool order);
  145. HRESULT ReInitializeObjectPicker(IDsObjectPicker *pDsObjectPicker,bool multiselect,CString additionalDomainController,bool sourceIsNT4) ;
  146. bool verifyprivs2(HWND hwndDlg,CString& additionalDomainController,CString domainName);
  147. bool __stdcall VerifyCallerDelegated(HWND hwndDlg, LPSHAREDWIZDATA pdata);
  148. void calculateDate(HWND hwndDlg,CString s);
  149. bool verifyprivsSTW(HWND hwndDlg,CString &sourceDomainController,CString &targetDomainController,LPSHAREDWIZDATA& pdata);
  150. void switchboxes(HWND hwndDlg,int oldid, int newid);
  151. bool populatePasswordDCs(HWND hwndDlg, int id, bool bNT4);
  152. HRESULT QueryW2KDomainControllers(CString domainDNS, IEnumVARIANT*& pEnum);
  153. HRESULT QueryNT4DomainControllers(CString domainDNS, IEnumVARIANT*& pEnum);
  154. void addStringToComboBox(HWND hwndDlg, int id, CString s);
  155. void initDCcombobox(HWND hwndDlg, int id, int varsetKey);
  156. void initsecinputbox(HWND hwndDlg,int id1,int id2,int varsetKey);
  157. void OnMapFileBrowse(HWND hwndDlg,int id);
  158. bool checkMapFile(HWND hwndDlg);
  159. void initpropdlg(HWND hwndDlg);
  160. HRESULT BuildPropertyMap(CString Type, long lSrcVer, CPropertyNameToOIDMap * pPropMap);
  161. void moveproperties(HWND hwndDlg,bool bExclude);
  162. void listproperties(HWND hwndDlg);
  163. void saveproperties(HWND hwndDlg);
  164. bool IsPasswordDCReady(CString server, CString &msg, CString &title, UINT *msgtype);
  165. CString CreatePath(CString sDirPath);
  166. void GetValidPathPart(CString sFullPath, CString &sDirectory, CString &sFileName);
  167. BOOL HasAccountBeenMigrated(CString sAccount, CString& sTgtAcct);
  168. BOOL ReallyCancel(HWND hwndDlg);
  169. CString GetServerWithMultipleTasks();
  170. void SharedHelp(ADMTSHAREDHELP HelpTopic, HWND hwndDlg);
  171. void __stdcall SetDefaultExcludedSystemProperties(HWND hwndDlg);