Leaked source code of windows server 2003
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.

140 lines
7.4 KiB

  1. //////////////////////////////////////////////////////////////////////////////
  2. //
  3. // Copyright (c) 1999-2000 Microsoft Corporation
  4. //
  5. // Module Name:
  6. // Schema.cpp
  7. //
  8. // Description:
  9. // Implementation of schema defined strings
  10. //
  11. // Author:
  12. // Jim Benton (jbenton) 5-Nov-2001
  13. //
  14. //////////////////////////////////////////////////////////////////////////////
  15. #include "pch.h"
  16. //////////////////////////////////////////////////////////////////////////////
  17. // Global Data
  18. //////////////////////////////////////////////////////////////////////////////
  19. const WCHAR * const g_wszDfrgifsDLL = L"dfrgifs.dll";
  20. const CHAR * const g_szDfrgifsDefrag = "Defrag";
  21. const WCHAR* const g_wszScheduleAutoChkCommand = L"CHKNTFS /C";
  22. const WCHAR* const g_wszExcludeAutoChkCommand = L"CHKNTFS /X";
  23. //
  24. // class
  25. //
  26. const WCHAR * const PVDR_CLASS_DEFRAGANALYSIS = L"Win32_DefragAnalysis";
  27. const WCHAR * const PVDR_CLASS_DIRECTORY = L"Win32_Directory";
  28. const WCHAR * const PVDR_CLASS_MOUNTPOINT = L"Win32_MountPoint";
  29. const WCHAR * const PVDR_CLASS_VOLUME = L"Win32_Volume";
  30. const WCHAR * const PVDR_CLASS_VOLUMEQUOTA = L"Win32_VolumeQuota";
  31. const WCHAR * const PVDR_CLASS_VOLUMEUSERQUOTA = L"Win32_VolumeUserQuota";
  32. const WCHAR * const PVDR_CLASS_QUOTASETTING = L"Win32_QuotaSetting";
  33. const WCHAR * const PVDR_CLASS_ACCOUNT = L"Win32_Account";
  34. //
  35. // Methods
  36. //
  37. const WCHAR * const PVDR_MTHD_ADDMOUNTPOINT = L"AddMountPoint";
  38. const WCHAR * const PVDR_MTHD_DEFRAG = L"Defrag";
  39. const WCHAR * const PVDR_MTHD_DEFRAGANALYSIS = L"DefragAnalysis";
  40. const WCHAR * const PVDR_MTHD_DISMOUNT = L"Dismount";
  41. const WCHAR * const PVDR_MTHD_FORMAT = L"Format";
  42. const WCHAR * const PVDR_MTHD_MOUNT = L"Mount";
  43. const WCHAR * const PVDR_MTHD_CHKDSK = L"Chkdsk";
  44. const WCHAR * const PVDR_MTHD_SCHEDULECHK = L"ScheduleAutoChk";
  45. const WCHAR * const PVDR_MTHD_EXCLUDECHK = L"ExcludeFromAutoChk";
  46. //
  47. // Properties
  48. //
  49. // Volume properties
  50. const WCHAR * const PVDR_PROP_BLOCKSIZE = L"BlockSize";
  51. const WCHAR * const PVDR_PROP_BOOTVOLUME = L"BootVolume";
  52. const WCHAR * const PVDR_PROP_CAPACITY = L"Capacity";
  53. const WCHAR * const PVDR_PROP_CAPTION = L"Caption";
  54. const WCHAR * const PVDR_PROP_COMPRESSED = L"Compressed";
  55. const WCHAR * const PVDR_PROP_CRASHDUMP = L"Crashdump";
  56. const WCHAR * const PVDR_PROP_DESCRIPTION = L"Description";
  57. const WCHAR * const PVDR_PROP_DEVICEID = L"DeviceID";
  58. const WCHAR * const PVDR_PROP_DIRECTORY = L"Directory";
  59. const WCHAR * const PVDR_PROP_DIRTYBITSET = L"DirtyBitSet";
  60. const WCHAR * const PVDR_PROP_DRIVELETTER = L"DriveLetter";
  61. const WCHAR * const PVDR_PROP_DRIVETYPE = L"DriveType";
  62. const WCHAR * const PVDR_PROP_FILESYSTEM = L"FileSystem";
  63. const WCHAR * const PVDR_PROP_FREESPACE = L"FreeSpace";
  64. const WCHAR * const PVDR_PROP_INDEXINGENABLED = L"IndexingEnabled";
  65. const WCHAR * const PVDR_PROP_ISDIRTY = L"IsDirty";
  66. const WCHAR * const PVDR_PROP_LABEL = L"Label";
  67. const WCHAR * const PVDR_PROP_MAXIMUMFILENAMELENGTH = L"MaximumFileNameLength";
  68. const WCHAR * const PVDR_PROP_MOUNTED = L"Mounted";
  69. const WCHAR * const PVDR_PROP_MOUNTABLE = L"Automount";
  70. const WCHAR * const PVDR_PROP_NAME = L"Name";
  71. const WCHAR * const PVDR_PROP_PAGEFILE = L"Pagefile";
  72. const WCHAR * const PVDR_PROP_QUOTASENABLED = L"QuotasEnabled";
  73. const WCHAR * const PVDR_PROP_QUOTASINCOMPLETE = L"QuotasIncomplete";
  74. const WCHAR * const PVDR_PROP_QUOTASREBUILDING = L"QuotasRebuilding";
  75. const WCHAR * const PVDR_PROP_SERIALNUMBER = L"SerialNumber";
  76. const WCHAR * const PVDR_PROP_SUPPORTSDISKQUOTAS = L"SupportsDiskQuotas";
  77. const WCHAR * const PVDR_PROP_SUPPORTSFILEBASEDCOMPRESSION = L"SupportsFileBasedCompression";
  78. const WCHAR * const PVDR_PROP_SYSTEMNAME = L"SystemName";
  79. const WCHAR * const PVDR_PROP_SYSTEMVOLUME = L"SystemVolume";
  80. const WCHAR * const PVDR_PROP_VOLUME = L"Volume";
  81. // Defrag properties
  82. const WCHAR * const PVDR_PROP_DEFRAGANALYSIS = L"DefragAnalysis";
  83. const WCHAR * const PVDR_PROP_DEFRAGRECOMMENDED = L"DefragRecommended";
  84. const WCHAR * const PVDR_PROP_VOLUMESIZE = L"VolumeSize";
  85. const WCHAR * const PVDR_PROP_CLUSTERSIZE = L"ClusterSize";
  86. const WCHAR * const PVDR_PROP_USEDSPACE = L"UsedSpace";
  87. const WCHAR * const PVDR_PROP_FRAGFREEPCT = L"FreeSpacePercent";
  88. const WCHAR * const PVDR_PROP_FRAGTOTALPCT = L"TotalPercentFragmentation";
  89. const WCHAR * const PVDR_PROP_FILESFRAGPCT = L"FilePercentFragmentation";
  90. const WCHAR * const PVDR_PROP_FREEFRAGPCT = L"FreeSpacePercentFragmentation";
  91. const WCHAR * const PVDR_PROP_FILESTOTAL = L"TotalFiles";
  92. const WCHAR * const PVDR_PROP_FILESIZEAVG = L"AverageFileSize";
  93. const WCHAR * const PVDR_PROP_FILESFRAGTOTAL = L"TotalFragmentedFiles";
  94. const WCHAR * const PVDR_PROP_EXCESSFRAGTOTAL = L"TotalExcessFragments";
  95. const WCHAR * const PVDR_PROP_FILESFRAGAVG = L"AverageFragmentsPerFile";
  96. const WCHAR * const PVDR_PROP_PAGEFILESIZE = L"PageFileSize";
  97. const WCHAR * const PVDR_PROP_PAGEFILEFRAG = L"TotalPageFileFragments";
  98. const WCHAR * const PVDR_PROP_FOLDERSTOTAL = L"TotalFolders";
  99. const WCHAR * const PVDR_PROP_FOLDERSFRAG = L"FragmentedFolders";
  100. const WCHAR * const PVDR_PROP_FOLDERSFRAGEXCESS = L"ExcessFolderFragments";
  101. const WCHAR * const PVDR_PROP_MFTSIZE = L"TotalMFTSize";
  102. const WCHAR * const PVDR_PROP_MFTRECORDS = L"MFTRecordCount";
  103. const WCHAR * const PVDR_PROP_MFTINUSEPCT = L"MFTPercentInUse";
  104. const WCHAR * const PVDR_PROP_MFTFRAGTOTAL = L"TotalMFTFragments";
  105. // Others
  106. const WCHAR * const PVDR_PROP_PERMANENT = L"Permanent";
  107. const WCHAR * const PVDR_PROP_FORCE = L"Force";
  108. const WCHAR * const PVDR_PROP_SETTING = L"Setting";
  109. const WCHAR * const PVDR_PROP_VOLUMEPATH = L"VolumePath";
  110. const WCHAR * const PVDR_PROP_ACCOUNT = L"Account";
  111. const WCHAR * const PVDR_PROP_DOMAIN = L"Domain";
  112. const WCHAR * const PVDR_PROP_DISKSPACEUSED = L"DiskSpaceUsed";
  113. const WCHAR * const PVDR_PROP_LIMIT = L"Limit";
  114. const WCHAR * const PVDR_PROP_STATUS = L"Status";
  115. const WCHAR * const PVDR_PROP_WARNINGLIMIT = L"WarningLimit";
  116. const WCHAR * const PVDR_PROP_FIXERRORS = L"FixErrors";
  117. const WCHAR * const PVDR_PROP_VIGOROUSINDEXCHECK = L"VigorousIndexCheck";
  118. const WCHAR * const PVDR_PROP_SKIPFOLDERCYCLE = L"SkipFolderCycle";
  119. const WCHAR * const PVDR_PROP_FORCEDISMOUNT = L"ForceDismount";
  120. const WCHAR * const PVDR_PROP_RECOVERBADSECTORS = L"RecoverBadSectors";
  121. const WCHAR * const PVDR_PROP_OKTORUNATBOOTUP = L"OkToRunAtBootup";
  122. const WCHAR * const PVDR_PROP_CHKONLYIFDIRTY = L"ChkOnlyIfDirty";
  123. const WCHAR * const PVDR_PROP_QUICKFORMAT = L"QuickFormat";
  124. const WCHAR * const PVDR_PROP_ENABLECOMPRESSION = L"EnableCompression";
  125. //
  126. // WBEM Properties
  127. const WCHAR * const PVDR_PROP_RETURNVALUE = L"ReturnValue";