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.

74 lines
1.4 KiB

  1. /*++
  2. Copyright (c) 2000 Microsoft Corporation
  3. Module Name:
  4. spswitch.h
  5. Abstract:
  6. Macros & Functions to switch between old and
  7. new partitioning engine in textmode.
  8. NEW_PARTITION_ENGINE forces new partition engine
  9. code to be used for both MBR and GPT disks.
  10. GPT_PARTITION_ENGINE forces new partition engine
  11. code to be used for GPT disks and old partition
  12. engine code for MBR disks.
  13. OLD_PARTITION_ENGINE forces the old partition
  14. engine to used for MBR disks. This option cannot
  15. handle GPT disks correctly.
  16. Note :
  17. If none of the NEW_PARTITION_ENGINE,
  18. OLD_PARTITION_ENGINE or GPT_PARTITION_ENGINE are
  19. defined, then by default NEW_PARTITION_ENGINE is
  20. used.
  21. Author:
  22. Vijay Jayaseelan (vijayj) 18 March 2000
  23. Revision History:
  24. --*/
  25. #ifndef _SPSWITCH_H_
  26. #define _SPSWITCH_H_
  27. #ifdef NEW_PARTITION_ENGINE
  28. #undef OLD_PARTITION_ENGINE
  29. #undef GPT_PARTITION_ENGINE
  30. #else
  31. #ifdef OLD_PARTITION_ENGINE
  32. #undef NEW_PARTITION_ENGINE
  33. #undef GPT_PARTITION_ENGINE
  34. #else
  35. #ifndef GPT_PARTITION_ENGINE
  36. #pragma message( "!!! Defaulting to NEW_PARTITION_ENGINE !!!" )
  37. #define NEW_PARTITION_ENGINE 1
  38. #endif // !GPT_PARTITION_ENGINE
  39. #endif // OLD_PARTITION_ENGINE
  40. #endif // NEW_PARTITION_ENGINE
  41. #if defined(NEW_PARTITION_ENGINE) || defined(GPT_PARTITION_ENGINE)
  42. #include "sppart3.h"
  43. #endif
  44. #endif // for _SPSWITCH_H_