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.

74 lines
1.7 KiB

  1. /*++
  2. Copyright (C) Microsoft Corporation, 1996 - 1998
  3. Module Name:
  4. ondisk.h
  5. Abstract:
  6. This header file defines the ondisk structures for storing FT
  7. information on disk.
  8. Author:
  9. Norbert Kusters 15-July-1996
  10. Notes:
  11. Revision History:
  12. --*/
  13. #include <fttypes.h>
  14. //
  15. // Define an on disk signature so that we can recognize valid FT on disk
  16. // structures.
  17. //
  18. #define FT_ON_DISK_SIGNATURE ((ULONG) 'TFTN')
  19. #define FT_ON_DISK_DESCRIPTION_VERSION_NUMBER (1)
  20. //
  21. // Define the preamble for the on disk structures which contains the
  22. // signature and a pointer to the first FT disk description.
  23. //
  24. typedef struct _FT_ON_DISK_PREAMBLE {
  25. ULONG FtOnDiskSignature;
  26. ULONG DiskDescriptionVersionNumber;
  27. ULONG ByteOffsetToFirstFtLogicalDiskDescription;
  28. ULONG ByteOffsetToReplaceLog;
  29. } FT_ON_DISK_PREAMBLE, *PFT_ON_DISK_PREAMBLE;
  30. //
  31. // Define the FT logical disk description structure.
  32. //
  33. typedef struct _FT_LOGICAL_DISK_DESCRIPTION {
  34. USHORT DiskDescriptionSize;
  35. UCHAR DriveLetter;
  36. UCHAR Reserved;
  37. FT_LOGICAL_DISK_TYPE LogicalDiskType;
  38. FT_LOGICAL_DISK_ID LogicalDiskId;
  39. union {
  40. struct {
  41. LONGLONG ByteOffset;
  42. LONGLONG PartitionSize; // 0 indicates full size.
  43. } FtPartition;
  44. struct {
  45. FT_LOGICAL_DISK_ID ThisMemberLogicalDiskId;
  46. USHORT ThisMemberNumber;
  47. USHORT NumberOfMembers;
  48. USHORT ByteOffsetToConfigurationInformation;
  49. USHORT ByteOffsetToStateInformation;
  50. } Other;
  51. } u;
  52. } FT_LOGICAL_DISK_DESCRIPTION, *PFT_LOGICAL_DISK_DESCRIPTION;