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.

90 lines
1.4 KiB

  1. /*++
  2. Copyright (c) 1998 Microsoft Corporation
  3. Module Name:
  4. migdb.h
  5. Abstract:
  6. Declares interfaces that are used to access the migdb.inf engine.
  7. Aside from w95upg.dll, there are several tools that use this code.
  8. See w95upg\migapp for details.
  9. Author:
  10. Calin Negreanu (calinn) 15-Sep-1998
  11. Revision History:
  12. <alias> <date> <comments>
  13. --*/
  14. #pragma once
  15. typedef struct {
  16. PCTSTR FullFileSpec;
  17. DWORD Handled;
  18. WIN32_FIND_DATA * FindData;
  19. TCHAR DirSpec[MAX_TCHAR_PATH];
  20. BOOL IsDirectory;
  21. PCTSTR Extension;
  22. BOOL VirtualFile;
  23. PDWORD CurrentDirData;
  24. } FILE_HELPER_PARAMS, * PFILE_HELPER_PARAMS;
  25. DWORD
  26. InitMigDb (
  27. DWORD Request
  28. );
  29. BOOL
  30. InitMigDbEx (
  31. PCSTR MigDbFile
  32. );
  33. DWORD
  34. DoneMigDb (
  35. DWORD Request
  36. );
  37. BOOL
  38. CleanupMigDb (
  39. VOID
  40. );
  41. BOOL
  42. MigDbTestFile (
  43. IN PFILE_HELPER_PARAMS Params
  44. );
  45. //
  46. // This routine checks to see if FileName is listed in
  47. // any migdb.inf section.
  48. //
  49. BOOL
  50. IsKnownMigDbFile (
  51. IN PCTSTR FileName
  52. );
  53. BOOL
  54. AddFileToMigDbLinkage (
  55. IN PCTSTR FileName,
  56. IN PINFCONTEXT Context, OPTIONAL
  57. IN DWORD FieldIndex OPTIONAL
  58. );
  59. //
  60. // Routine to compute a file's checksum
  61. //
  62. UINT
  63. ComputeCheckSum (
  64. PFILE_HELPER_PARAMS Params
  65. );