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.

79 lines
1.6 KiB

  1. /*++
  2. Copyright (c) 1998 Microsoft Corporation
  3. Module Name:
  4. snapshot.h
  5. Abstract:
  6. Declares the interface to common\snapshot. The snapshot code uses
  7. memdb to capture and compare the system state.
  8. Author:
  9. Jim Schmidt (jimschm) 26-Mar-1998
  10. Revision History:
  11. calinn 15-Oct-1998 Extensions and improvements
  12. --*/
  13. #pragma once
  14. #define SNAP_RESULT_DELETED 1
  15. #define SNAP_RESULT_UNCHANGED 2
  16. #define SNAP_RESULT_CHANGED 4
  17. #define SNAP_RESULT_ADDED 8
  18. #define SNAP_FILES 1
  19. #define SNAP_REGISTRY 2
  20. VOID
  21. TakeSnapShotEx (
  22. IN DWORD SnapFlags
  23. );
  24. BOOL
  25. GenerateDiffOutputExA (
  26. IN PCSTR FileName,
  27. IN PCSTR Comment, OPTIONAL
  28. IN BOOL Append,
  29. IN DWORD SnapFlags
  30. );
  31. typedef struct _SNAP_FILE_ENUMA {
  32. CHAR FileName [MEMDB_MAX];
  33. PCSTR FilePattern;
  34. DWORD SnapStatus;
  35. BOOL FirstCall;
  36. MEMDB_ENUMA mEnum;
  37. } SNAP_FILE_ENUMA, *PSNAP_FILE_ENUMA;
  38. BOOL
  39. EnumNextSnapFileA (
  40. IN OUT PSNAP_FILE_ENUMA e
  41. );
  42. BOOL
  43. EnumFirstSnapFileA (
  44. IN OUT PSNAP_FILE_ENUMA e,
  45. IN PCSTR FilePattern, OPTIONAL
  46. IN DWORD SnapStatus
  47. );
  48. #define TakeSnapShot() TakeSnapShotEx(SNAP_FILES|SNAP_REGISTRY)
  49. #define GenerateDiffOutputA(f,c,a) GenerateDiffOutputExA(f,c,a,SNAP_FILES|SNAP_REGISTRY)
  50. #ifndef UNICODE
  51. #define GenerateDiffOutputEx GenerateDiffOutputExA
  52. #define GenerateDiffOutput GenerateDiffOutputA
  53. #define SNAP_FILE_ENUM SNAP_FILE_ENUMA
  54. #define PSNAP_FILE_ENUM PSNAP_FILE_ENUMA
  55. #define EnumFirstSnapFile EnumFirstSnapFileA
  56. #define EnumNextSnapFile EnumNextSnapFileA
  57. #endif