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.

76 lines
1.9 KiB

  1. /*++
  2. Copyright (c) 1996 Microsoft Corporation
  3. Module Name:
  4. drives.h
  5. Abstract:
  6. Declares apis for managing accessible drives (Drives that are usable
  7. both on win9x side an NT side) and for managing the space on those
  8. drives.
  9. Author:
  10. Marc R. Whitten (marcw) 03-Jul-1997
  11. --*/
  12. #pragma once
  13. typedef struct _ACCESSIBLE_DRIVE_ENUM {
  14. PCTSTR Drive;
  15. LONGLONG UsableSpace;
  16. LONGLONG MaxUsableSpace;
  17. struct _ACCESSIBLE_DRIVE_ENUM * Next;
  18. UINT ClusterSize;
  19. BOOL SystemDrive;
  20. BOOL EnumSystemDriveOnly;
  21. } * ACCESSIBLE_DRIVE_ENUM, ** PACCESSIBLE_DRIVE_ENUM;
  22. extern DWORD g_ExclusionValue;
  23. extern TCHAR g_ExclusionValueString[20];
  24. extern BOOL g_NotEnoughDiskSpace;
  25. BOOL InitAccessibleDrives (VOID);
  26. VOID CleanUpAccessibleDrives (VOID);
  27. BOOL GetFirstAccessibleDriveEx (OUT PACCESSIBLE_DRIVE_ENUM AccessibleDriveEnum, IN BOOL SystemDriveOnly);
  28. BOOL GetNextAccessibleDrive (IN OUT PACCESSIBLE_DRIVE_ENUM AccessibleDriveEnum);
  29. #define GetFirstAccessibleDrive(p) GetFirstAccessibleDriveEx (p,FALSE)
  30. BOOL IsDriveAccessible (IN PCTSTR DriveString);
  31. BOOL IsDriveExcluded (IN PCTSTR DriveOrPath);
  32. UINT QueryClusterSize (IN PCTSTR DriveString);
  33. LONGLONG QuerySpace (IN PCTSTR DriveString);
  34. BOOL UseSpace (IN PCTSTR DriveString,IN LONGLONG SpaceToUse);
  35. BOOL FreeSpace (IN PCTSTR DriveString,IN LONGLONG SpaceToUse);
  36. PCTSTR FindSpace (IN LONGLONG SpaceNeeded);
  37. VOID OutOfSpaceMessage (VOID);
  38. VOID DetermineSpaceUsagePostReport (VOID);
  39. PCTSTR GetNotEnoughSpaceMessage (VOID);
  40. BOOL
  41. OurSetDriveType (
  42. IN UINT Drive,
  43. IN UINT DriveType
  44. );
  45. UINT
  46. OurGetDriveType (
  47. IN UINT Drive
  48. );
  49. BOOL
  50. GetUninstallMetrics (
  51. OUT PINT OutCompressionFactor, OPTIONAL
  52. OUT PINT OutBackupImagePadding, OPTIONAL
  53. OUT PINT OutBackupDiskPadding OPTIONAL
  54. );