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.

172 lines
5.7 KiB

  1. BPB STRUC
  2. BPB_BytesPerSector DW ?
  3. BPB_SectorsPerCluster DB ?
  4. BPB_ReservedSectors DW ?
  5. BPB_NumberOfFATs DB ?
  6. BPB_RootEntries DW ?
  7. BPB_TotalSectors DW ?
  8. BPB_MediaDescriptor DB ?
  9. BPB_SectorsPerFAT DW ?
  10. BPB_SectorsPerTrack DW ?
  11. BPB_Heads DW ?
  12. BPB_HiddenSectors DW ?
  13. BPB_HiddenSectorsHigh DW ?
  14. BPB_BigTotalSectors DW ?
  15. BPB_BigTotalSectorsHigh DW ?
  16. BPB ENDS
  17. BIGFATBPB STRUC
  18. oldBPB DB SIZE BPB DUP (?)
  19. BGBPB_BigSectorsPerFat DW ?
  20. BGBPB_BigSectorsPerFatHi DW ?
  21. BGBPB_ExtFlags DW ?
  22. BGBPB_FS_Version DW ?
  23. BGBPB_RootDirStrtClus DW ?
  24. BGBPB_RootDirStrtClusHi DW ?
  25. BGBPB_FSInfoSec DW ?
  26. BGBPB_BkUpBootSec DW ?
  27. BGBPB_Reserved DW 6 DUP (?)
  28. BIGFATBPB ENDS
  29. BGBPB_F_ActiveFATMsk EQU 000FH
  30. BGBPB_F_NoFATMirror EQU 0080H
  31. BGBPB_F_CompressedVol EQU 0100H
  32. FAT32_Curr_FS_Version EQU 0000H
  33. FAT32_Curr_Version EQU FAT32_Curr_FS_Version
  34. A_BPB STRUC
  35. A_BPB_BytesPerSector DW ?
  36. A_BPB_SectorsPerCluster DB ?
  37. A_BPB_ReservedSectors DW ?
  38. A_BPB_NumberOfFATs DB ?
  39. A_BPB_RootEntries DW ?
  40. A_BPB_TotalSectors DW ?
  41. A_BPB_MediaDescriptor DB ?
  42. A_BPB_SectorsPerFAT DW ?
  43. A_BPB_SectorsPerTrack DW ?
  44. A_BPB_Heads DW ?
  45. A_BPB_HiddenSectors DW ?
  46. A_BPB_HiddenSectorsHigh DW ?
  47. A_BPB_BigTotalSectors DW ?
  48. A_BPB_BigTotalSectorsHigh DW ?
  49. A_BPB_Reserved DB 6 DUP (?)
  50. A_BPB ENDS
  51. A_BF_BPB STRUC
  52. A_BF_BPB_BytesPerSector DW ?
  53. A_BF_BPB_SectorsPerCluster DB ?
  54. A_BF_BPB_ReservedSectors DW ?
  55. A_BF_BPB_NumberOfFATs DB ?
  56. A_BF_BPB_RootEntries DW ?
  57. A_BF_BPB_TotalSectors DW ?
  58. A_BF_BPB_MediaDescriptor DB ?
  59. A_BF_BPB_SectorsPerFAT DW ?
  60. A_BF_BPB_SectorsPerTrack DW ?
  61. A_BF_BPB_Heads DW ?
  62. A_BF_BPB_HiddenSectors DW ?
  63. A_BF_BPB_HiddenSectorsHigh DW ?
  64. A_BF_BPB_BigTotalSectors DW ?
  65. A_BF_BPB_BigTotalSectorsHigh DW ?
  66. A_BF_BPB_BigSectorsPerFat DW ?
  67. A_BF_BPB_BigSectorsPerFatHi DW ?
  68. A_BF_BPB_ExtFlags DW ?
  69. A_BF_BPB_FS_Version DW ?
  70. A_BF_BPB_RootDirStrtClus DW ?
  71. A_BF_BPB_RootDirStrtClusHi DW ?
  72. A_BF_BPB_FSInfoSec DW ?
  73. A_BF_BPB_BkUpBootSec DW ?
  74. A_BF_BPB_Reserved DW 6 DUP (?)
  75. A_BF_BPB ENDS
  76. EXT_BPB_INFO STRUC
  77. EBPB_BYTESPERSECTOR DW ?
  78. EBPB_SECTORSPERCLUSTER DB ?
  79. EBPB_RESERVEDSECTORS DW ?
  80. EBPB_NUMBEROFFATS DB ?
  81. EBPB_ROOTENTRIES DW ?
  82. EBPB_TOTALSECTORS DW ?
  83. EBPB_MEDIADESCRIPTOR DB ?
  84. EBPB_SECTORSPERFAT DW ?
  85. EBPB_SECTORSPERTRACK DW ?
  86. EBPB_HEADS DW ?
  87. EBPB_HIDDENSECTOR DD ?
  88. EBPB_BIGTOTALSECTORS DD ?
  89. EXT_BPB_INFO ENDS
  90. EXT_BIGBPB_INFO STRUC
  91. EBGBPB_BYTESPERSECTOR DW ?
  92. EBGBPB_SECTORSPERCLUSTER DB ?
  93. EBGBPB_RESERVEDSECTORS DW ?
  94. EBGBPB_NUMBEROFFATS DB ?
  95. EBGBPB_ROOTENTRIES DW ?
  96. EBGBPB_TOTALSECTORS DW ?
  97. EBGBPB_MEDIADESCRIPTOR DB ?
  98. EBGBPB_SECTORSPERFAT DW ?
  99. EBGBPB_SECTORSPERTRACK DW ?
  100. EBGBPB_HEADS DW ?
  101. EBGBPB_HIDDENSECTOR DD ?
  102. EBGBPB_BIGTOTALSECTORS DD ?
  103. EBGBPB_BIGSECTORSPERFAT DD ?
  104. EBGBPB_EXTFLAGS DW ?
  105. EBGBPB_FS_VERSION DW ?
  106. EBGBPB_ROOTDIRSTRTCLUS DD ?
  107. EBGBPB_FSINFOSEC DW ?
  108. EBGBPB_BKUPBOOTSEC DW ?
  109. EBGBPB_RESERVED DD 3 DUP (?)
  110. EXT_BIGBPB_INFO ENDS
  111. .errnz EXT_BPB_INFO.EBPB_BYTESPERSECTOR NE BPB.BPB_BytesPerSector
  112. .errnz EXT_BPB_INFO.EBPB_SECTORSPERCLUSTER NE BPB.BPB_SectorsPerCluster
  113. .errnz EXT_BPB_INFO.EBPB_RESERVEDSECTORS NE BPB.BPB_ReservedSectors
  114. .errnz EXT_BPB_INFO.EBPB_NUMBEROFFATS NE BPB.BPB_NumberOfFATs
  115. .errnz EXT_BPB_INFO.EBPB_ROOTENTRIES NE BPB.BPB_RootEntries
  116. .errnz EXT_BPB_INFO.EBPB_TOTALSECTORS NE BPB.BPB_TotalSectors
  117. .errnz EXT_BPB_INFO.EBPB_MEDIADESCRIPTOR NE BPB.BPB_MediaDescriptor
  118. .errnz EXT_BPB_INFO.EBPB_SECTORSPERFAT NE BPB.BPB_SectorsPerFAT
  119. .errnz EXT_BPB_INFO.EBPB_SECTORSPERTRACK NE BPB.BPB_SectorsPerTrack
  120. .errnz EXT_BPB_INFO.EBPB_HEADS NE BPB.BPB_Heads
  121. .errnz EXT_BPB_INFO.EBPB_HIDDENSECTOR NE BPB.BPB_HiddenSectors
  122. .errnz EXT_BPB_INFO.EBPB_BIGTOTALSECTORS NE BPB.BPB_BigTotalSectors
  123. .errnz (SIZE EXT_BPB_INFO) NE (SIZE BPB)
  124. .errnz EXT_BIGBPB_INFO.EBGBPB_BYTESPERSECTOR NE EXT_BPB_INFO.EBPB_BYTESPERSECTOR
  125. .errnz EXT_BIGBPB_INFO.EBGBPB_SECTORSPERCLUSTER NE EXT_BPB_INFO.EBPB_SECTORSPERCLUSTER
  126. .errnz EXT_BIGBPB_INFO.EBGBPB_RESERVEDSECTORS NE EXT_BPB_INFO.EBPB_RESERVEDSECTORS
  127. .errnz EXT_BIGBPB_INFO.EBGBPB_NUMBEROFFATS NE EXT_BPB_INFO.EBPB_NUMBEROFFATS
  128. .errnz EXT_BIGBPB_INFO.EBGBPB_ROOTENTRIES NE EXT_BPB_INFO.EBPB_ROOTENTRIES
  129. .errnz EXT_BIGBPB_INFO.EBGBPB_TOTALSECTORS NE EXT_BPB_INFO.EBPB_TOTALSECTORS
  130. .errnz EXT_BIGBPB_INFO.EBGBPB_MEDIADESCRIPTOR NE EXT_BPB_INFO.EBPB_MEDIADESCRIPTOR
  131. .errnz EXT_BIGBPB_INFO.EBGBPB_SECTORSPERFAT NE EXT_BPB_INFO.EBPB_SECTORSPERFAT
  132. .errnz EXT_BIGBPB_INFO.EBGBPB_SECTORSPERTRACK NE EXT_BPB_INFO.EBPB_SECTORSPERTRACK
  133. .errnz EXT_BIGBPB_INFO.EBGBPB_HEADS NE EXT_BPB_INFO.EBPB_HEADS
  134. .errnz EXT_BIGBPB_INFO.EBGBPB_HIDDENSECTOR NE EXT_BPB_INFO.EBPB_HIDDENSECTOR
  135. .errnz EXT_BIGBPB_INFO.EBGBPB_BIGTOTALSECTORS NE EXT_BPB_INFO.EBPB_BIGTOTALSECTORS
  136. EXT_IBMBOOT_HEADER STRUC
  137. EXT_BOOT_JUMP DB 3 DUP (?)
  138. EXT_BOOT_OEM DB 8 DUP (?)
  139. EXT_BOOT_BPB DB SIZE EXT_BPB_INFO DUP (?)
  140. EXT_PHYDRV DB ?
  141. EXT_CURHD DB ?
  142. EXT_BOOT_SIG DB ?
  143. EXT_BOOT_SERIAL DD ?
  144. EXT_BOOT_VOL_LABEL DB 11 DUP (?)
  145. EXT_SYSTEM_ID DB 8 DUP (?)
  146. EXT_IBMBOOT_HEADER ENDS
  147. EXT_BIGIBMBOOT_HEADER STRUC
  148. EXT_BGBOOT_JUMP DB 3 DUP (?)
  149. EXT_BGBOOT_OEM DB 8 DUP (?)
  150. EXT_BGBOOT_BPB DB SIZE EXT_BIGBPB_INFO DUP (?)
  151. EXT_BGPHYDRV DB ?
  152. EXT_BGCURHD DB ?
  153. EXT_BGBOOT_SIG DB ?
  154. EXT_BGBOOT_SERIAL DD ?
  155. EXT_BGBOOT_VOL_LABEL DB 11 DUP (?)
  156. EXT_BGSYSTEM_ID DB 8 DUP (?)
  157. EXT_BIGIBMBOOT_HEADER ENDS
  158. .errnz EXT_BIGIBMBOOT_HEADER.EXT_BGBOOT_JUMP NE EXT_IBMBOOT_HEADER.EXT_BOOT_JUMP
  159. .errnz EXT_BIGIBMBOOT_HEADER.EXT_BGBOOT_OEM NE EXT_IBMBOOT_HEADER.EXT_BOOT_OEM
  160. .errnz EXT_BIGIBMBOOT_HEADER.EXT_BGBOOT_BPB NE EXT_IBMBOOT_HEADER.EXT_BOOT_BPB