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.

68 lines
998 B

  1. typedef ULONG HDISK;
  2. UINT
  3. _far
  4. InitializeDiskList(
  5. VOID
  6. );
  7. HDISK
  8. _far
  9. OpenDisk(
  10. IN UINT DiskId
  11. );
  12. VOID
  13. _far
  14. CloseDisk(
  15. IN HDISK DiskHandle
  16. );
  17. BOOL
  18. _far
  19. ReadDisk(
  20. IN HDISK DiskHandle,
  21. IN ULONG StartSector,
  22. IN BYTE SectorCount,
  23. OUT FPVOID Buffer
  24. );
  25. BOOL
  26. _far
  27. WriteDisk(
  28. IN HDISK DiskHandle,
  29. IN ULONG StartSector,
  30. IN BYTE SectorCount,
  31. IN FPVOID Buffer
  32. );
  33. BOOL
  34. _far
  35. GetDiskInfoByHandle(
  36. IN HDISK DiskHandle,
  37. OUT FPBYTE Int13UnitNumber,
  38. OUT FPBYTE SectorsPerTrack,
  39. OUT FPUSHORT Heads,
  40. OUT FPUSHORT Cylinders,
  41. OUT FPULONG ExtendedSectorCount,
  42. OUT FPUINT DiskId
  43. );
  44. BOOL
  45. _far
  46. GetDiskInfoById(
  47. IN UINT DiskId,
  48. IN UINT Reserved,
  49. OUT FPBYTE Int13UnitNumber,
  50. OUT FPBYTE SectorsPerTrack,
  51. OUT FPUSHORT Heads,
  52. OUT FPUSHORT Cylinders,
  53. OUT FPULONG ExtendedSectorCount
  54. );
  55. VOID
  56. _far
  57. DisableExtendedInt13(
  58. IN BYTE Int13Unit OPTIONAL
  59. );