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.

147 lines
2.4 KiB

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