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
812 B

  1. /*++
  2. Copyright (c) 1998 Microsoft Corporation
  3. Module Name:
  4. sisdrive.h
  5. Abstract:
  6. SIS Groveler SIS drive checker include file
  7. Authors:
  8. John Douceur, 1998
  9. Environment:
  10. User Mode
  11. Revision History:
  12. --*/
  13. #ifndef _INC_SISDRIVE
  14. #define _INC_SISDRIVE
  15. class SISDrives
  16. {
  17. public:
  18. SISDrives();
  19. void open();
  20. ~SISDrives();
  21. int partition_count() const;
  22. int lettered_partition_count() const;
  23. _TCHAR *partition_guid_name(
  24. int partition_index) const;
  25. _TCHAR *partition_mount_name(
  26. int partition_index) const;
  27. private:
  28. static bool is_sis_drive(
  29. _TCHAR *drive_name);
  30. void resize_buffer();
  31. int num_partitions;
  32. int num_lettered_partitions;
  33. int *partition_guid_names;
  34. int *partition_mount_names;
  35. int buffer_size;
  36. int buffer_index;
  37. _TCHAR *buffer;
  38. };
  39. #endif /* _INC_SISDRIVE */