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.

159 lines
4.2 KiB

  1. #pragma once
  2. #include "resource.h" // main symbols
  3. // From VC98/MFC/Include
  4. #include <afx.h>
  5. #include <afxdisp.h>
  6. // From VC98/Include
  7. #include <io.h>
  8. #include <stdio.h>
  9. #include <stdlib.h>
  10. #include <string.h>
  11. #include <time.h>
  12. #include <FCNTL.H>
  13. #include <sys/stat.h>
  14. #define INC_OLE2
  15. #include <windowsx.h> // for SetWindowFont
  16. #include <objbase.h>
  17. #include <PrSht.h>
  18. #include <shlobj.h>
  19. #include <lm.h>
  20. // From Platform SDK/Include
  21. #include <HtmlHelp.h>
  22. #include <objsel.h>
  23. #include <DSCLIENT.H>
  24. #include <dsgetdc.h>
  25. #include "ResStr.h"
  26. #include "TReg.hpp"
  27. #include "ErrDct.hpp"
  28. #include "WNetUtil.h"
  29. #include "OuSelect.h"
  30. #include "TrstDlg.h"
  31. #include "HelpID.h"
  32. #include "sidflags.h"
  33. #include "UString.hpp"
  34. #include "HrMsg.h"
  35. #include "Validation.h"
  36. //#include "TxtSid.h"
  37. //#import "\bin\MigDrvr.tlb" no_namespace, named_guids
  38. //#import "\bin\McsVarSetMin.tlb" no_namespace, named_guids
  39. //#import "\bin\DBManager.tlb" no_namespace, named_guids
  40. //#import "\bin\McsDctWorkerObjects.tlb" no_namespace, named_guids
  41. //#import "\bin\ScmMigr.tlb" no_namespace, named_guids
  42. //#import "\bin\TrustMgr.tlb" no_namespace, named_guids
  43. #import "MigDrvr.tlb" no_namespace, named_guids
  44. #import "VarSet.tlb" no_namespace, named_guids rename("property", "aproperty")
  45. #import "DBMgr.tlb" no_namespace, named_guids
  46. #import "WorkObj.tlb" no_namespace, named_guids
  47. #import "ScmMigr.tlb" no_namespace, named_guids
  48. #import "TrustMgr.tlb" no_namespace, named_guids
  49. #import "AdsProp.tlb" no_namespace
  50. #import "MsPwdMig.tlb" no_namespace
  51. #define SvcAcctStatus_NotMigratedYet 0
  52. #define SvcAcctStatus_DoNotUpdate 1
  53. #define SvcAcctStatus_Updated 2
  54. #define SvcAcctStatus_UpdateFailed 4
  55. #define SvcAcctStatus_NeverAllowUpdate 8
  56. #define w_account 1
  57. #define w_group 2
  58. #define w_computer 3
  59. #define w_security 4
  60. #define w_service 5
  61. #define w_undo 6
  62. #define w_exchangeDir 7
  63. #define w_reporting 8
  64. #define w_retry 9
  65. #define w_trust 10
  66. #define w_exchangeSrv 11
  67. #define w_groupmapping 12
  68. #ifndef BIF_USENEWUI
  69. #define BIF_USENEWUI 0x0040
  70. #endif
  71. #define REAL_PSH_WIZARD97 0x01000000
  72. typedef int (CALLBACK * DSBROWSEFORCONTAINER)(PDSBROWSEINFOW dsInfo);
  73. extern DSBROWSEFORCONTAINER DsBrowseForContainerX;
  74. typedef struct SHAREDWIZDATA {
  75. HFONT hTitleFont;
  76. bool IsSidHistoryChecked;
  77. int renameSwitch;
  78. bool prefixorsuffix;
  79. bool expireSwitch;
  80. bool refreshing;
  81. bool someService;
  82. bool memberSwitch;
  83. bool proceed;
  84. bool translateObjects;
  85. long rebootDelay;
  86. int accounts,servers;
  87. bool sameForest;
  88. bool newSource;
  89. bool resetOUPATH;
  90. bool sourceIsNT4;
  91. bool targetIsNT4;
  92. bool sort[6];
  93. bool migratingGroupMembers;
  94. bool targetIsMixed;
  95. bool secWithMapFile;
  96. } SHAREDWIZDATA, *LPSHAREDWIZDATA;
  97. extern CEdit pEdit ;
  98. extern IVarSet * pVarSet;
  99. extern IVarSet * pVarSetUndo;
  100. extern IVarSet * pVarSetService;
  101. extern IIManageDB * db;
  102. extern UINT g_cfDsObjectPicker;
  103. extern IDsObjectPicker *pDsObjectPicker;
  104. extern IDataObject *pdo;
  105. extern IDsObjectPicker *pDsObjectPicker2;
  106. extern IDataObject *pdo2;
  107. extern int migration;
  108. extern CComModule _Module;
  109. extern CListCtrl m_listBox;
  110. extern CListCtrl m_cancelBox;
  111. extern CListCtrl m_reportingBox;
  112. extern CListCtrl m_serviceBox;
  113. extern CComboBox m_rebootBox;
  114. extern CListCtrl m_trustBox;
  115. extern CString sourceDNS;
  116. extern CString targetDNS;
  117. extern CString sourceNetbios;
  118. extern CString targetNetbios;
  119. extern StringLoader gString;
  120. extern TErrorDct err;
  121. extern CComboBox sourceDrop;
  122. extern CComboBox targetDrop;
  123. extern bool alreadyRefreshed;
  124. extern BOOL gbNeedToVerify;
  125. extern _bstr_t yes,no;
  126. extern _bstr_t yes,no;
  127. extern CString lastInitializedTo;
  128. extern CComboBox additionalDrop;
  129. extern bool clearCredentialsName;
  130. extern CString sourceDC;
  131. extern CStringList DCList;
  132. extern CMapStringToString PropIncMap1;
  133. extern CMapStringToString PropExcMap1;
  134. extern CMapStringToString PropIncMap2;
  135. extern CMapStringToString PropExcMap2;
  136. extern CString sType1;
  137. extern bool bChangedMigrationTypes;
  138. extern bool bChangeOnFly;
  139. extern CString targetServer;