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.

77 lines
1.4 KiB

  1. /*++
  2. Copyright (c) 1993 Microsoft Corporation
  3. Module Name:
  4. spfsrec.h
  5. Abstract:
  6. Header file for filesystem recognition.
  7. Author:
  8. Ted Miller (tedm) 16-Sep-1993
  9. Revision History:
  10. --*/
  11. #ifndef _SPFSREC_
  12. #define _SPFSREC_
  13. //
  14. // Do NOT rearrange this enum without changing
  15. // the order of the filesystem names in the message file
  16. // (starting at SP_TEXT_FS_NAME_BASE).
  17. //
  18. typedef enum {
  19. FilesystemUnknown = 0,
  20. FilesystemNewlyCreated = 1,
  21. FilesystemFat = 2,
  22. FilesystemFirstKnown = FilesystemFat,
  23. FilesystemNtfs = 3,
  24. FilesystemFat32 = 4,
  25. FilesystemDoubleSpace = 5,
  26. FilesystemMax
  27. } FilesystemType;
  28. FilesystemType
  29. SpIdentifyFileSystem(
  30. IN PWSTR DevicePath,
  31. IN ULONG BytesPerSector,
  32. IN ULONG PartitionOrdinal
  33. );
  34. ULONG
  35. NtfsMirrorBootSector (
  36. IN HANDLE Handle,
  37. IN ULONG BytesPerSector,
  38. IN OUT PUCHAR *Buffer
  39. );
  40. VOID
  41. WriteNtfsBootSector (
  42. IN HANDLE PartitionHandle,
  43. IN ULONG BytesPerSector,
  44. IN PVOID Buffer,
  45. IN ULONG WhichOne
  46. );
  47. //
  48. // File system boot code.
  49. //
  50. extern UCHAR FatBootCode[512];
  51. extern UCHAR Fat32BootCode[3*512];
  52. extern UCHAR NtfsBootCode[16*512];
  53. extern UCHAR PC98FatBootCode[512]; //NEC98
  54. extern UCHAR PC98Fat32BootCode[3*512]; //NEC98
  55. extern UCHAR PC98NtfsBootCode[8192]; //NEC98
  56. #endif // ndef _SPFSREC_