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.

149 lines
2.5 KiB

  1. #include "master.h"
  2. #include "master9x.h"
  3. #pragma once
  4. //
  5. // Private
  6. //
  7. extern PVOID g_DllTable;
  8. extern PVOID g_DllFileTable;
  9. extern POOLHANDLE g_MigDllPool;
  10. extern PMIGRATION_DLL_PROPS g_HeadDll;
  11. extern HANDLE g_AbortDllEvent;
  12. typedef struct _tagFILETOFIND {
  13. struct _tagFILETOFIND *Next;
  14. PMIGRATION_DLL_PROPS Dll;
  15. } FILETOFIND, *PFILETOFIND;
  16. //
  17. // Local routines
  18. //
  19. BOOL
  20. pValidateAndMoveDll (
  21. IN PCSTR DllPath,
  22. OUT PBOOL MatchFound OPTIONAL
  23. );
  24. UINT
  25. pCalculateSizeOfTree (
  26. IN PCSTR PathSpec
  27. );
  28. BOOL
  29. pCreateWorkingDir (
  30. OUT PSTR WorkingDir,
  31. IN PCSTR QueryVersionDir,
  32. IN UINT SizeNeeded
  33. );
  34. VOID
  35. pDestroyWorkingDir (
  36. IN PCSTR WorkingDir
  37. );
  38. BOOL
  39. pAddFileToSearchTable (
  40. IN PCSTR File,
  41. IN PMIGRATION_DLL_PROPS Props
  42. );
  43. BOOL
  44. pAddDllToList (
  45. IN PCSTR MediaDir,
  46. IN PCSTR WorkingDir,
  47. IN PCSTR ProductId,
  48. IN UINT Version,
  49. IN PCSTR ExeNamesBuf, OPTIONAL
  50. IN PVENDORINFO VendorInfo
  51. );
  52. VOID
  53. pMigrationDllFailedMsg (
  54. IN PMIGRATION_DLL_PROPS Dll, OPTIONAL
  55. IN PCSTR DllPath, OPTIONAL
  56. IN UINT PopupId,
  57. IN UINT LogId,
  58. IN LONG rc
  59. );
  60. BOOL
  61. pProcessInitialize9x (
  62. IN PMIGRATION_DLL_PROPS Dll
  63. );
  64. BOOL
  65. pProcessUser9x (
  66. IN PMIGRATION_DLL_PROPS Dll
  67. );
  68. BOOL
  69. pProcessSystem9x (
  70. IN PMIGRATION_DLL_PROPS Dll
  71. );
  72. BOOL
  73. pProcessMigrateInf (
  74. IN PMIGRATION_DLL_PROPS Dll
  75. );
  76. PMIGRATION_DLL_PROPS
  77. pFindMigrationDll (
  78. IN PCSTR ProductId
  79. );
  80. BOOL
  81. OpenMigrationDll (
  82. IN PCSTR MigrationDllPath,
  83. IN PCSTR WorkingDir
  84. );
  85. VOID
  86. CloseMigrationDll (
  87. VOID
  88. );
  89. LONG
  90. CallQueryVersion (
  91. IN PCSTR WorkingDir,
  92. OUT PCSTR *ProductId,
  93. OUT PUINT DllVersion,
  94. OUT PCSTR *ExeNamesBuf,
  95. OUT PVENDORINFO *VendorInfo
  96. );
  97. LONG
  98. CallInitialize9x (
  99. IN PCSTR WorkingDir,
  100. IN PCSTR SourceDirList,
  101. IN OUT PVOID Reserved,
  102. IN DWORD ReservedSize
  103. );
  104. LONG
  105. CallMigrateUser9x (
  106. IN HWND ParentWnd,
  107. IN PCSTR UserName,
  108. IN PCSTR UnattendTxt,
  109. IN OUT PVOID Reserved,
  110. IN DWORD ReservedSize
  111. );
  112. LONG
  113. CallMigrateSystem9x (
  114. IN HWND ParentWnd,
  115. IN PCSTR UnattendTxt,
  116. IN PVOID Reserved,
  117. IN DWORD ReservedSize
  118. );