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.

74 lines
2.2 KiB

  1. /*++
  2. Copyright (c) 1995-1996 Microsoft Corporation
  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. DiskStateMaximum = DiskFailed
  22. } DiskState;
  23. //
  24. // Define IOCTLs specific to ClusDisk Filter Driver.
  25. //
  26. #define IOCTL_DISK_CLUSTER_SET_STATE CTL_CODE(IOCTL_SCSI_BASE, 0x500, METHOD_BUFFERED, FILE_WRITE_ACCESS)
  27. #define IOCTL_DISK_CLUSTER_RESET_BUS CTL_CODE(IOCTL_SCSI_BASE, 0x501, METHOD_BUFFERED, FILE_WRITE_ACCESS)
  28. #define IOCTL_DISK_CLUSTER_READ_CAPACITY CTL_CODE(IOCTL_SCSI_BASE, 0x502, METHOD_BUFFERED, FILE_READ_ACCESS)
  29. #define IOCTL_DISK_CLUSTER_RESERVE CTL_CODE(IOCTL_SCSI_BASE, 0x503, METHOD_BUFFERED, FILE_WRITE_ACCESS)
  30. #define IOCTL_DISK_CLUSTER_RELEASE CTL_CODE(IOCTL_SCSI_BASE, 0x504, METHOD_BUFFERED, FILE_WRITE_ACCESS)
  31. #define IOCTL_DISK_CLUSTER_ATTACH CTL_CODE(IOCTL_SCSI_BASE, 0x505, METHOD_BUFFERED, FILE_WRITE_ACCESS)
  32. #define IOCTL_DISK_CLUSTER_DETACH CTL_CODE(IOCTL_SCSI_BASE, 0x506, METHOD_BUFFERED, FILE_WRITE_ACCESS)
  33. #define IOCTL_DISK_CLUSTER_GET_DRIVE_LAYOUT CTL_CODE(IOCTL_SCSI_BASE, 0x507, METHOD_BUFFERED, FILE_READ_ACCESS)
  34. #define IOCTL_DISK_CLUSTER_START_RESERVE CTL_CODE(IOCTL_SCSI_BASE, 0x508, METHOD_BUFFERED, FILE_WRITE_ACCESS)
  35. #define IOCTL_DISK_CLUSTER_STOP_RESERVE CTL_CODE(IOCTL_SCSI_BASE, 0x509, METHOD_BUFFERED, FILE_WRITE_ACCESS)
  36. #define IOCTL_DISK_CLUSTER_ALIVE_CHECK CTL_CODE(IOCTL_SCSI_BASE, 0x510, METHOD_BUFFERED, FILE_READ_ACCESS)
  37. #define IOCTL_DISK_CLUSTER_ROOT CTL_CODE(IOCTL_SCSI_BASE, 0x511, METHOD_BUFFERED, FILE_READ_ACCESS)
  38. #define IOCTL_DISK_CLUSTER_ACTIVE CTL_CODE(IOCTL_SCSI_BASE, 0x512, METHOD_BUFFERED, FILE_ANY_ACCESS)
  39. #define IOCTL_DISK_CLUSTER_TEST CTL_CODE(IOCTL_SCSI_BASE, 0x513, METHOD_BUFFERED, FILE_ANY_ACCESS)
  40. #define IOCTL_DISK_CLUSTER_NOT_CLUSTER_CAPABLE CTL_CODE(IOCTL_SCSI_BASE, 0x514, METHOD_BUFFERED, FILE_ANY_ACCESS)
  41. #endif // _CLUSTER_DISK_