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.

109 lines
1.9 KiB

  1. #include "master.h"
  2. #include "master9x.h"
  3. #pragma once
  4. //
  5. // values for FILE_HELPER_PARAMS.CurrentDirData bits, used for the migapp module
  6. //
  7. #define MIGAPP_DIRDATA_FUSION_DIR_DETERMINED 0x0001
  8. #define MIGAPP_DIRDATA_IS_FUSION_DIR 0x0002
  9. //
  10. // values for GetExeType
  11. //
  12. #define EXE_UNKNOWN 0
  13. #define EXE_WIN32_APP 1
  14. #define EXE_WIN32_DLL 2
  15. #define EXE_WIN16_APP 3
  16. #define EXE_WIN16_DLL 4
  17. DWORD
  18. GetExeType (
  19. IN PCTSTR ModuleName
  20. );
  21. //
  22. // Function to build mapping between Win95 and WinNT profile directories.
  23. // Enumerates users; looks at a series of directories in each user's
  24. // profile; builds a mapping (now written temporarily to c:\\profile.map).
  25. //
  26. DWORD
  27. ReadProfileDirs (
  28. VOID
  29. );
  30. //
  31. // Module name has to be present in DeferredAnnounce category in MigDb. If LinkName == NULL then
  32. // a valid MigDbContext needs to be pointed by the value of MemDb key
  33. //
  34. BOOL
  35. HandleDeferredAnnounce (
  36. IN PCTSTR LinkName,
  37. IN PCTSTR ModuleName,
  38. IN BOOL DosApp
  39. );
  40. DWORD
  41. PrepareProcessModules (
  42. IN DWORD Request
  43. );
  44. DWORD
  45. ProcessModules (
  46. IN DWORD Request
  47. );
  48. BOOL
  49. InitLinkAnnounce (
  50. VOID
  51. );
  52. BOOL
  53. DoneLinkAnnounce (
  54. VOID
  55. );
  56. BOOL
  57. ProcessFileHelpers (
  58. IN OUT PFILE_HELPER_PARAMS Params
  59. );
  60. DWORD
  61. CheckModule (
  62. IN PCSTR ModuleName,
  63. IN PCSTR AppPaths OPTIONAL
  64. );
  65. BOOL
  66. IsNtCompatibleModule (
  67. IN PCTSTR ModuleName
  68. );
  69. //
  70. // hash table used to deal with [UseNtFiles]
  71. //
  72. extern HASHTABLE g_UseNtFileHashTable;
  73. VOID
  74. InitUseNtFilesMap (
  75. VOID
  76. );
  77. VOID
  78. CleanupUseNtFilesMap (
  79. VOID
  80. );
  81. BOOL
  82. IsMigrationPathEx (
  83. IN PCTSTR Path,
  84. OUT PBOOL IsWin9xOsPath OPTIONAL
  85. );
  86. #define IsMigrationPath(p) IsMigrationPathEx(p,NULL)