Leaked source code of windows server 2003
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.

91 lines
2.0 KiB

  1. /*++
  2. Copyright (c) 1999 Microsoft Corporation
  3. Module Name:
  4. fstub.h
  5. Abstract:
  6. Fstub private header file.
  7. Author:
  8. Matthew D Hendel (math) 01-Nov-1999
  9. Revision History:
  10. --*/
  11. #pragma once
  12. #pragma warning(disable:4214) // bit field types other than int
  13. #pragma warning(disable:4201) // nameless struct/union
  14. #pragma warning(disable:4127) // condition expression is constant
  15. #pragma warning(disable:4115) // named type definition in parentheses
  16. #pragma warning(disable:4706) // assignment within conditional expression
  17. typedef struct _INTERNAL_DISK_GEOMETRY {
  18. DISK_GEOMETRY Geometry;
  19. LARGE_INTEGER DiskSize;
  20. } INTERNAL_DISK_GEOMETRY, *PINTERNAL_DISK_GEOMETRY;
  21. //
  22. // Verify that the INTERNAL_DISK_GEOMETRY structure matches the DISK_GEOMETRY
  23. // structure.
  24. //
  25. C_ASSERT (FIELD_OFFSET (DISK_GEOMETRY_EX, Geometry) ==
  26. FIELD_OFFSET (INTERNAL_DISK_GEOMETRY, Geometry) &&
  27. FIELD_OFFSET (DISK_GEOMETRY_EX, DiskSize) ==
  28. FIELD_OFFSET (INTERNAL_DISK_GEOMETRY, DiskSize));
  29. //
  30. // Debugging macros and flags
  31. //
  32. #define FSTUB_VERBOSE_LEVEL 4
  33. #if DBG
  34. VOID
  35. FstubDbgPrintPartition(
  36. IN PPARTITION_INFORMATION Partition,
  37. IN ULONG PartitionCount
  38. );
  39. VOID
  40. FstubDbgPrintDriveLayout(
  41. IN PDRIVE_LAYOUT_INFORMATION Layout
  42. );
  43. VOID
  44. FstubDbgPrintPartitionEx(
  45. IN PPARTITION_INFORMATION_EX PartitionEx,
  46. IN ULONG PartitionCount
  47. );
  48. VOID
  49. FstubDbgPrintDriveLayoutEx(
  50. IN PDRIVE_LAYOUT_INFORMATION_EX LayoutEx
  51. );
  52. VOID
  53. FstubDbgPrintSetPartitionEx(
  54. IN PSET_PARTITION_INFORMATION_EX SetPartition,
  55. IN ULONG PartitionNumber
  56. );
  57. #else
  58. #define FstubDbgPrintPartition(Partition, PartitionCount)
  59. #define FstubDbgPrintDriveLayout(Layout)
  60. #define FstubDbgPrintPartitionEx(PartitionEx, PartitionCount)
  61. #define FstubDbgPrintDriveLayoutEx(LayoutEx)
  62. #define FstubDbgPrintSetPartitionEx(SetPartition, PartitionNumber)
  63. #endif // !DBG