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.

75 lines
3.5 KiB

  1. /*++
  2. Copyright (c) Microsoft Corporation. All rights reserved.
  3. Module Name:
  4. clusapi.h
  5. Abstract:
  6. This module defines the common management and application interface to
  7. the Windows Clusters services.
  8. Authors:
  9. Rod Gamache 13-Feb-1996
  10. Revision History:
  11. --*/
  12. #ifndef _CLUSTER_DISK_
  13. #define _CLUSTER_DISK_
  14. //
  15. // Disk States.
  16. //
  17. typedef enum _DiskState {
  18. DiskOffline,
  19. DiskOnline,
  20. DiskFailed,
  21. DiskStalled,
  22. DiskOfflinePending,
  23. DiskStateMaximum = DiskOfflinePending
  24. } DiskState;
  25. //
  26. // Define IOCTLs specific to ClusDisk Filter Driver.
  27. //
  28. #define IOCTL_DISK_CLUSTER_SET_STATE CTL_CODE(IOCTL_SCSI_BASE, 0x500, METHOD_BUFFERED, FILE_WRITE_ACCESS)
  29. #define IOCTL_DISK_CLUSTER_RESET_BUS CTL_CODE(IOCTL_SCSI_BASE, 0x501, METHOD_BUFFERED, FILE_WRITE_ACCESS)
  30. #define IOCTL_DISK_CLUSTER_READ_CAPACITY CTL_CODE(IOCTL_SCSI_BASE, 0x502, METHOD_BUFFERED, FILE_READ_ACCESS)
  31. #define IOCTL_DISK_CLUSTER_RESERVE CTL_CODE(IOCTL_SCSI_BASE, 0x503, METHOD_BUFFERED, FILE_WRITE_ACCESS)
  32. #define IOCTL_DISK_CLUSTER_RELEASE CTL_CODE(IOCTL_SCSI_BASE, 0x504, METHOD_BUFFERED, FILE_WRITE_ACCESS)
  33. #define IOCTL_DISK_CLUSTER_ATTACH CTL_CODE(IOCTL_SCSI_BASE, 0x505, METHOD_BUFFERED, FILE_WRITE_ACCESS)
  34. #define IOCTL_DISK_CLUSTER_DETACH CTL_CODE(IOCTL_SCSI_BASE, 0x506, METHOD_BUFFERED, FILE_WRITE_ACCESS)
  35. #define IOCTL_DISK_CLUSTER_GET_DRIVE_LAYOUT CTL_CODE(IOCTL_SCSI_BASE, 0x507, METHOD_BUFFERED, FILE_READ_ACCESS)
  36. #define IOCTL_DISK_CLUSTER_START_RESERVE CTL_CODE(IOCTL_SCSI_BASE, 0x508, METHOD_BUFFERED, FILE_WRITE_ACCESS)
  37. #define IOCTL_DISK_CLUSTER_STOP_RESERVE CTL_CODE(IOCTL_SCSI_BASE, 0x509, METHOD_BUFFERED, FILE_WRITE_ACCESS)
  38. #define IOCTL_DISK_CLUSTER_ALIVE_CHECK CTL_CODE(IOCTL_SCSI_BASE, 0x510, METHOD_BUFFERED, FILE_READ_ACCESS)
  39. #define IOCTL_DISK_CLUSTER_ROOT CTL_CODE(IOCTL_SCSI_BASE, 0x511, METHOD_BUFFERED, FILE_READ_ACCESS)
  40. #define IOCTL_DISK_CLUSTER_ACTIVE CTL_CODE(IOCTL_SCSI_BASE, 0x512, METHOD_BUFFERED, FILE_ANY_ACCESS)
  41. #define IOCTL_DISK_CLUSTER_TEST CTL_CODE(IOCTL_SCSI_BASE, 0x513, METHOD_BUFFERED, FILE_ANY_ACCESS)
  42. #define IOCTL_DISK_CLUSTER_NOT_CLUSTER_CAPABLE CTL_CODE(IOCTL_SCSI_BASE, 0x514, METHOD_BUFFERED, FILE_ANY_ACCESS)
  43. #define IOCTL_DISK_CLUSTER_GET_DRIVE_LETTER CTL_CODE(IOCTL_SCSI_BASE, 0x515, METHOD_BUFFERED, FILE_ANY_ACCESS)
  44. #define IOCTL_DISK_CLUSTER_ARBITRATION_ESCAPE CTL_CODE(IOCTL_SCSI_BASE, 0x516, METHOD_BUFFERED, FILE_READ_ACCESS | FILE_WRITE_ACCESS)
  45. #define IOCTL_DISK_CLUSTER_NT4_CAPABLE CTL_CODE(IOCTL_SCSI_BASE, 0x517, METHOD_BUFFERED, FILE_ANY_ACCESS)
  46. #define IOCTL_DISK_CLUSTER_CHANGE_NOTIFY CTL_CODE(IOCTL_SCSI_BASE, 0x518, METHOD_BUFFERED, FILE_ANY_ACCESS)
  47. #define IOCTL_DISK_CLUSTER_HOLD_IO CTL_CODE(IOCTL_SCSI_BASE, 0x519, METHOD_BUFFERED, FILE_ANY_ACCESS)
  48. #define IOCTL_DISK_CLUSTER_RESUME_IO CTL_CODE(IOCTL_SCSI_BASE, 0x520, METHOD_BUFFERED, FILE_ANY_ACCESS)
  49. #define IOCTL_DISK_CLUSTER_WAIT_FOR_CLEANUP CTL_CODE(IOCTL_SCSI_BASE, 0x521, METHOD_BUFFERED, FILE_ANY_ACCESS)
  50. #define IOCTL_DISK_CLUSTER_VOLUME_TEST CTL_CODE(IOCTL_SCSI_BASE, 0x522, METHOD_BUFFERED, FILE_ANY_ACCESS)
  51. #define IOCTL_DISK_CLUSTER_ATTACH_LIST CTL_CODE(IOCTL_SCSI_BASE, 0x523, METHOD_BUFFERED, FILE_WRITE_ACCESS)
  52. #define IOCTL_DISK_CLUSTER_DETACH_LIST CTL_CODE(IOCTL_SCSI_BASE, 0x524, METHOD_BUFFERED, FILE_WRITE_ACCESS)
  53. typedef struct _CLUSDISK_GET_DRIVE_LETTER {
  54. ULONG Signature;
  55. ULONG PartitionNumber;
  56. } CLUSDISK_GET_DRIVE_LETTER, *PCLUSDISK_GET_DRIVE_LETTER;
  57. #endif // _CLUSTER_DISK_