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.

70 lines
1.6 KiB

  1. #ifndef _ENGINE_H
  2. #define _ENGINE_H
  3. /*++
  4. Copyright (c) 1997 Microsoft Corporation
  5. 1998 Seagate Software, Inc. All rights reserved.
  6. Module Name:
  7. Engine.h
  8. Abstract:
  9. Include file for all the public Engine files.
  10. Author:
  11. Rohde Wakefield [rohde] 23-Apr-1997
  12. Revision History:
  13. --*/
  14. #include "HsmEng.h"
  15. // Engine lives in Remote Storage Server service thus its appid apply here
  16. // RsServ AppID {FD0E2EC7-4055-4A49-9AA9-1BF34B39438E}
  17. static const GUID APPID_RemoteStorageEngine =
  18. { 0xFD0E2EC7, 0x4055, 0x4A49, { 0x9A, 0xA9, 0x1B, 0xF3, 0x4B, 0x39, 0x43, 0x8E } };
  19. // The name of the default manage job.
  20. # define HSM_DEFAULT_MANAGE_JOB_NAME OLESTR("Manage")
  21. //
  22. // Key types for the metadata database
  23. //
  24. #define HSM_SEG_REC_TYPE 1
  25. #define HSM_MEDIA_INFO_REC_TYPE 2
  26. #define HSM_BAG_INFO_REC_TYPE 3
  27. #define HSM_BAG_HOLE_REC_TYPE 4
  28. #define HSM_VOL_ASSIGN_REC_TYPE 5
  29. //
  30. // Mask options for segment record flags
  31. //
  32. #define SEG_REC_NONE 0x0000
  33. #define SEG_REC_INDIRECT_RECORD 0x0001
  34. #define SEG_REC_MARKED_AS_VALID 0x0002
  35. //
  36. // Maximum number of copies supported by this engine
  37. //
  38. #define HSM_MAX_NUMBER_MEDIA_COPIES 3
  39. //
  40. // Strings for session names that are written to media
  41. //
  42. #define HSM_BAG_NAME OLESTR("Remote Storage Set - ")
  43. #define HSM_ENGINE_ID OLESTR("Remote Storage ID - ")
  44. #define HSM_METADATA_NAME OLESTR("Remote Storage Metadata") // Currently, in use only for Optical media
  45. //
  46. // Engine's Registry location
  47. //
  48. #define HSM_ENGINE_REGISTRY_STRING OLESTR("SYSTEM\\CurrentControlSet\\Services\\Remote_Storage_Server\\Parameters")
  49. #endif // _ENGINE_H