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.

106 lines
1.8 KiB

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