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.

181 lines
5.1 KiB

  1. /*++
  2. Copyright (c) 1998 Microsoft Corporation
  3. Module Name:
  4. w95upgnt.h
  5. Abstract:
  6. Declares the variables and defines the progress bar ticks for
  7. w95upgnt.dll.
  8. Author:
  9. Jim Schmidt (jimschm) 10-Oct-1996
  10. Revision History:
  11. See SLM log
  12. --*/
  13. //
  14. // w95upgnt.h -- public interface for w95upgnt.dll
  15. //
  16. //
  17. #pragma once
  18. // common stuff
  19. #include "common.h"
  20. #include "unattend.h"
  21. BOOL
  22. ConvertWin9xCmdLine (
  23. IN OUT PTSTR CmdLine, // MAX_CMDLINE buffer
  24. IN PCTSTR ObjectForDbgMsg, OPTIONAL
  25. OUT PBOOL PointsToDeletedItem OPTIONAL
  26. );
  27. BOOL
  28. RenameOnRestartOfGuiMode(
  29. IN PCWSTR PathName,
  30. IN PCWSTR PathNameNew
  31. );
  32. BOOL
  33. RenameListOnRestartOfGuiMode (
  34. IN PGROWLIST SourceList,
  35. IN PGROWLIST DestList
  36. );
  37. extern TCHAR g_WinDir[MAX_TCHAR_PATH];
  38. extern TCHAR g_WinDrive[MAX_TCHAR_PATH];
  39. extern TCHAR g_System32Dir[MAX_TCHAR_PATH];
  40. extern TCHAR g_SystemDir[MAX_TCHAR_PATH];
  41. extern TCHAR g_ProgramFiles[MAX_TCHAR_PATH];
  42. extern TCHAR g_ProgramFilesCommon[MAX_TCHAR_PATH];
  43. extern TCHAR g_TempDir[MAX_TCHAR_PATH];
  44. extern PCTSTR g_SourceDir;
  45. extern TCHAR g_Win95Name[MAX_TCHAR_PATH];
  46. extern PCTSTR g_DomainUserName; // NULL for local machine
  47. extern PCTSTR g_Win9xUserName; // NULL for local machine
  48. extern PCTSTR g_FixedUserName; // NULL for local machine
  49. extern TCHAR g_IconBin[MAX_TCHAR_PATH];
  50. extern TCHAR g_Win9xBootDrivePath[];
  51. extern TCHAR g_ComputerName[];
  52. extern HWND g_ParentWnd;
  53. extern HWND g_ProgressBar;
  54. extern HINF g_UnattendInf;
  55. extern HINF g_WkstaMigInf;
  56. extern HINF g_UserMigInf;
  57. extern UINT g_Boot16;
  58. extern USEROPTIONS g_ConfigOptions;
  59. extern PCTSTR g_AdministratorStr;
  60. //
  61. // Registry string maps
  62. //
  63. extern PMAPSTRUCT g_CompleteMatchMap;
  64. extern PMAPSTRUCT g_SubStringMap;
  65. #define PROCESSING_DLL_MAIN
  66. #ifdef VAR_PROGRESS_BAR
  67. #define TICKS_INIT 550
  68. #define TICKS_DOMAIN_SEARCH 24500
  69. #define TICKS_DELETESYSTAPI 100
  70. #define TICKS_INI_ACTIONS_FIRST 100
  71. #define TICKS_INI_MOVE 100
  72. #define TICKS_INI_CONVERSION 2400
  73. #define TICKS_INI_MIGRATION 3000
  74. #define TICKS_SYSTEM_SHELL_MIGRATION 20000
  75. #define TICKS_GHOST_SYSTEM_MIGRATION 1000
  76. #define TICKS_PERUSER_INIT 500
  77. #define TICKS_DELETEUSERTAPI 100
  78. #define TICKS_USER_REGISTRY_MIGRATION 10000
  79. #define TICKS_LOGON_PROMPT_SETTINGS 100
  80. #define TICKS_USER_SETTINGS 1000
  81. #define TICKS_USER_EXTERN_PROCESSES 100
  82. #define TICKS_USER_UNINSTALL_CLEANUP 100
  83. #define TICKS_SAVE_USER_HIVE 1000
  84. #define TICKS_COPYFILE 700
  85. #define TICKS_INI_MERGE 1500
  86. #define TICKS_HKLM 500000
  87. #define TICKS_SHARES 150
  88. #define TICKS_LINK_EDIT 350
  89. #define TICKS_DOSMIG_SYS 200
  90. #define TICKS_UPDATERECYCLEBIN 500
  91. #define TICKS_STF 25000
  92. #define TICKS_RAS 300
  93. #define TICKS_TAPI 300
  94. #define TICKS_MULTIMEDIA 100
  95. #define TICKS_INI_ACTIONS_LAST 3000
  96. #define TICKS_HIVE_CONVERSION 300
  97. #define TICKS_ATM_MIGRATION 100
  98. #define TICKS_SYSTEM_EXTERN_PROCESSES 3000
  99. #define TICKS_SYSTEM_UNINSTALL_CLEANUP 100
  100. #define TICKS_MIGRATION_DLL 2000
  101. #define TICKS_MIGRATE_BRIEFCASES 120
  102. #define TICKS_FILE_EDIT 100
  103. #else // !defined VAR_PROGRESS_BAR
  104. //#define TickProgressBar() TickProgressBarDelta(1)
  105. #define TICKS_INIT 5
  106. #define TICKS_DOMAIN_SEARCH 100
  107. #define TICKS_INI_ACTIONS_FIRST 1
  108. #define TICKS_INI_ACTIONS_LAST 20
  109. #define TICKS_INI_MOVE 25
  110. #define TICKS_INI_CONVERSION 30
  111. #define TICKS_INI_MIGRATION 30
  112. #define TICKS_INI_MERGE 30
  113. #define TICKS_HKLM 1600
  114. #define TICKS_SHARES 15
  115. #define TICKS_LINK_EDIT 30
  116. #define TICKS_DOSMIG_SYS 10
  117. #define TICKS_UPDATERECYCLEBIN 20
  118. #define TICKS_STF 80
  119. #define TICKS_RAS 20
  120. #define TICKS_TAPI 10
  121. #define TICKS_MULTIMEDIA 10
  122. #define TICKS_MIGRATION_DLL 50
  123. #define TICKS_COPYFILE 80
  124. #define TICKS_MOVEFILE 50
  125. #define TICKS_PERUSER_INIT 2
  126. #define TICKS_USER_REGISTRY_MIGRATION 90
  127. #define TICKS_LOGON_PROMPT_SETTINGS 1
  128. #define TICKS_USER_SETTINGS 5
  129. #define TICKS_SAVE_USER_HIVE 3
  130. #define TICKS_SYSTEM_SHELL_MIGRATION 250
  131. #define TICKS_GHOST_SYSTEM_MIGRATION 20
  132. #define TICKS_USER_SHELL_MIGRATION 1
  133. #define TICKS_HIVE_CONVERSION 5
  134. #define TICKS_ATM_MIGRATION 8
  135. #define TICKS_DELETEUSERTAPI 5
  136. #define TICKS_DELETESYSTAPI 5
  137. #define TICKS_USER_EXTERN_PROCESSES 3
  138. #define TICKS_SYSTEM_EXTERN_PROCESSES 3
  139. #define TICKS_USER_UNINSTALL_CLEANUP 3
  140. #define TICKS_SYSTEM_UNINSTALL_CLEANUP 3
  141. #define TICKS_MIGRATE_BRIEFCASES 3
  142. #define TICKS_FILE_EDIT 3
  143. #endif