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.

141 lines
2.6 KiB

  1. /*++
  2. Copyright (c) 1993 Microsoft Corporation
  3. Module Name:
  4. sppartp.h
  5. Abstract:
  6. Private header file for partitioning engine and UI.
  7. Author:
  8. Ted Miller (tedm) 16-Sep-1993
  9. Revision History:
  10. --*/
  11. #ifndef _SPPARTITP_
  12. #define _SPPARTITP_
  13. #define MBR_SIGNATURE 0xaa55
  14. BOOLEAN
  15. SpPtDoPartitionSelection(
  16. IN OUT PDISK_REGION *Region,
  17. IN PWSTR RegionDescription,
  18. IN PVOID SifHandle,
  19. IN BOOLEAN Unattended,
  20. IN PWSTR SetupSourceDevicePath,
  21. IN PWSTR DirectoryOnSetupSource,
  22. IN BOOLEAN RemoteBootRepartition,
  23. OUT PBOOLEAN Win9xInstallationPresent
  24. );
  25. BOOLEAN
  26. SpPtDeterminePartitionGood(
  27. IN PDISK_REGION Region,
  28. IN ULONGLONG RequiredKB,
  29. IN BOOLEAN DisallowOtherInstalls
  30. );
  31. BOOLEAN
  32. SpPtDoCreate(
  33. IN PDISK_REGION pRegion,
  34. OUT PDISK_REGION *pActualRegion, OPTIONAL
  35. IN BOOLEAN ForNT,
  36. IN ULONGLONG DesiredMB OPTIONAL,
  37. IN PPARTITION_INFORMATION_EX PartInfo OPTIONAL,
  38. IN BOOLEAN ConfirmIt
  39. );
  40. VOID
  41. SpPtDoDelete(
  42. IN PDISK_REGION pRegion,
  43. IN PWSTR RegionDescription,
  44. IN BOOLEAN ConfirmIt
  45. );
  46. ULONG
  47. SpComputeSerialNumber(
  48. VOID
  49. );
  50. NTSTATUS
  51. SpPtCommitChanges(
  52. IN ULONG DiskNumber,
  53. OUT PBOOLEAN AnyChanges
  54. );
  55. VOID
  56. SpPtDoCommitChanges(
  57. VOID
  58. );
  59. VOID
  60. FatalPartitionUpdateError(
  61. IN PWSTR DiskDescription
  62. );
  63. NTSTATUS
  64. FmtFillFormatBuffer(
  65. IN ULONGLONG NumberOfSectors,
  66. IN ULONG SectorSize,
  67. IN ULONG SectorsPerTrack,
  68. IN ULONG NumberOfHeads,
  69. IN ULONGLONG NumberOfHiddenSectors,
  70. OUT PVOID FormatBuffer,
  71. IN ULONG FormatBufferSize,
  72. OUT PULONGLONG SuperAreaSize,
  73. IN PULONG BadSectorsList,
  74. IN ULONG NumberOfBadSectors,
  75. OUT PUCHAR SystemId
  76. );
  77. VOID
  78. SpPtMarkActive(
  79. IN ULONG TablePosition
  80. );
  81. VOID
  82. SpPtMakeRegionActive(
  83. IN PDISK_REGION Region
  84. );
  85. BOOLEAN
  86. SpPtValidateCColonFormat(
  87. IN PVOID SifHandle,
  88. IN PWSTR RegionDescr,
  89. IN PDISK_REGION Region,
  90. IN BOOLEAN CheckOnly,
  91. IN PWSTR SetupSourceDevicePath,
  92. IN PWSTR DirectoryOnSetupSource
  93. );
  94. PDISK_REGION
  95. SpPtValidSystemPartition(
  96. VOID
  97. );
  98. ULONG
  99. SpDetermineDisk0(
  100. VOID
  101. );
  102. PDISK_REGION
  103. SpPtValidSystemPartitionArc(
  104. IN PVOID SifHandle,
  105. IN PWSTR SetupSourceDevicePath,
  106. IN PWSTR DirectoryOnSetupSource
  107. );
  108. #endif // ndef _SPPARTITP_