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.

260 lines
8.5 KiB

  1. //*************************************************************
  2. //
  3. // Copyright (c) Microsoft Corporation 1998 - 2000
  4. // All rights reserved
  5. //
  6. // appschem.h
  7. //
  8. // This file contains declarations related to the wmi schema
  9. // for software management policy objects
  10. //
  11. //*************************************************************
  12. //
  13. // WMI class names for the software management classes
  14. //
  15. #define RSOP_MANAGED_SOFTWARE_APPLICATION L"RSOP_ApplicationManagementPolicySetting"
  16. #define RSOP_MANAGED_SOFTWARE_CATEGORY L"RSOP_ApplicationManagementCategory"
  17. //
  18. // Attribute names for the RSOP_ApplicationManagementPolicyObject class
  19. //
  20. // Describes the contents of the instance
  21. #define APP_ATTRIBUTE_ENTRYTYPE L"EntryType"
  22. //
  23. // Enumerated values for EntryType
  24. //
  25. #define APP_ATTRIBUTE_ENTRYTYPE_VALUE_INSTALLED_PACKAGE 1L
  26. #define APP_ATTRIBUTE_ENTRYTYPE_VALUE_REMOVED_PACKAGE 2L
  27. #define APP_ATTRIBUTE_ENTRYTYPE_VALUE_ARPLIST_ITEM 3L
  28. // A unique id for this deployed package
  29. #define APP_ATTRIBUTE_APPID L"ApplicationId"
  30. // This describes the type of the package to be installed
  31. #define APP_ATTRIBUTE_PACKAGETYPE L"PackageType"
  32. //
  33. // Enumerated values for PackageType
  34. //
  35. #define APP_ATTRIBUTE_PACKAGETYPE_VALUE_WIN_INSTALLER 1L
  36. #define APP_ATTRIBUTE_PACKAGETYPE_VALUE_ZAP 2L
  37. // Windows Installer Product ID.
  38. #define APP_ATTRIBUTE_PRODUCT_ID L"ProductId"
  39. // Name of the vendor of the software
  40. #define APP_ATTRIBUTE_PUBLISHER L"Publisher"
  41. // PackageLocation
  42. #define APP_ATTRIBUTE_PACKAGELOCATION L"PackageLocation"
  43. // Script File.
  44. #define APP_ATTRIBUTE_SCRIPTFILE L"ScriptFile"
  45. // SupportUrl
  46. #define APP_ATTRIBUTE_SUPPORTURL L"SupportURL"
  47. // Categories of applications in Add/Remove Programs
  48. #define APP_ATTRIBUTE_CATEGORYLIST L"Categories"
  49. // The reason this application defeated another
  50. #define APP_ATTRIBUTE_PRECEDENCE_REASON L"PrecedenceReason"
  51. //
  52. // Enumerated values for PrecedenceReason
  53. //
  54. #define APP_ATTRIBUTE_REASON_VALUE_LANGUAGE 1L
  55. #define APP_ATTRIBUTE_REASON_VALUE_PRODUCT 2L
  56. #define APP_ATTRIBUTE_REASON_VALUE_UPGRADE 4L
  57. #define APP_ATTRIBUTE_REASON_VALUE_WINNING 5L
  58. #define APP_ATTRIBUTE_REASON_VALUE_NONFORCEDUPGRADE 6L
  59. // Minor version number of the application
  60. #define APP_ATTRIBUTE_VERSIONLO L"VersionNumberLo"
  61. // Major version number of the application
  62. #define APP_ATTRIBUTE_VERSIONHI L"VersionNumberHi"
  63. // The number of times the app has been redeployed
  64. #define APP_ATTRIBUTE_REDEPLOYCOUNT L"RedeployCount"
  65. // The last modification time of this application by the administrator
  66. #define APP_ATTRIBUTE_MODIFYTIME L"DeploymentLastModifyTime"
  67. // Security Descriptor
  68. #define APP_ATTRIBUTE_SECURITY_DESCRIPTOR L"SecurityDescriptor"
  69. // Machine architectures
  70. #define APP_ATTRIBUTE_ARCHITECTURES L"MachineArchitectures"
  71. // language id from the package
  72. #define APP_ATTRIBUTE_LANGUAGEID L"LanguageId"
  73. // Package Deployment Type
  74. #define APP_ATTRIBUTE_DEPLOY_TYPE L"DeploymentType"
  75. //
  76. // Enumerated values for the DeploymentType attribute
  77. //
  78. #define APP_ATTRIBUTE_DEPLOY_VALUE_ASSIGNED 1L
  79. #define APP_ATTRIBUTE_DEPLOY_VALUE_PUBLISHED 2L
  80. // Type of assignment: none, advertised, or default install
  81. #define APP_ATTRIBUTE_ASSIGNMENT_TYPE L"AssignmentType"
  82. //
  83. // Enumerated values for the AssignmentType attribute
  84. //
  85. #define APP_ATTRIBUTE_ASSIGNMENTTYPE_VALUE_NOTASSIGNED 1L
  86. #define APP_ATTRIBUTE_ASSIGNMENTTYPE_VALUE_STANDARD 2L
  87. #define APP_ATTRIBUTE_ASSIGNMENTTYPE_VALUE_INSTALL 3L
  88. // Installation UI
  89. #define APP_ATTRIBUTE_INSTALLATIONUI L"InstallationUI"
  90. //
  91. // Enumerated values for the InstallatuionUI attribute
  92. //
  93. #define APP_ATTRIBUTE_INSTALLATIONUI_VALUE_BASIC 1L
  94. #define APP_ATTRIBUTE_INSTALLATIONUI_VALUE_MAXIMUM 2L
  95. // Installable on demand
  96. #define APP_ATTRIBUTE_ONDEMAND L"DemandInstallable"
  97. // Behavior to take on loss of scope
  98. #define APP_ATTRIBUTE_LOSSOFSCOPEACTION L"LossOfScopeAction"
  99. //
  100. // Enumerated values for the LossOfScopeAction
  101. //
  102. #define APP_ATTRIBUTE_SCOPELOSS_UNINSTALL 1L
  103. #define APP_ATTRIBUTE_SCOPELOSS_ORPHAN 2L
  104. // Whether this application uninstalls unmanaged versions
  105. #define APP_ATTRIBUTE_UNINSTALL_UNMANAGED L"UninstallUnmanaged"
  106. // Whethier this x86 package is available on Win64
  107. #define APP_ATTRIBUTE_X86OnWin64 L"AllowX86OnIA64"
  108. // If TRUE, this application may be displayed in ARP
  109. #define APP_ATTRIBUTE_DISPLAYINARP L"DisplayInARP"
  110. // Ignore language when deploying this package
  111. #define APP_ATTRIBUTE_IGNORELANGUAGE L"IgnoreLanguage"
  112. // Chained list of applications that were upgraded
  113. #define APP_ATTRIBUTE_TRANSFORMLIST L"Transforms"
  114. // Packages that this package will upgrade
  115. #define APP_ATTRIBUTE_UPGRADEABLE_APPLICATIONS L"UpgradeableApplications"
  116. // Packages that are upgrading this package
  117. #define APP_ATTRIBUTE_REPLACEABLE_APPLICATIONS L"ReplaceableApplications"
  118. // Whether this application is a required upgrade
  119. #define APP_ATTRIBUTE_UPGRADE_SETTINGS_MANDATORY L"UpgradeSettingsMandatory"
  120. // Apply Cause
  121. #define APP_ATTRIBUTE_APPLY_CAUSE L"ApplyCause"
  122. //
  123. // Enumerated Values for ApplyCause
  124. //
  125. #define APP_ATTRIBUTE_APPLYCAUSE_VALUE_NONE 0L
  126. #define APP_ATTRIBUTE_APPLYCAUSE_VALUE_ASSIGNED 1L
  127. #define APP_ATTRIBUTE_APPLYCAUSE_VALUE_USER 2L
  128. #define APP_ATTRIBUTE_APPLYCAUSE_VALUE_PROFILE 3L
  129. #define APP_ATTRIBUTE_APPLYCAUSE_VALUE_FILEEXT 4L
  130. #define APP_ATTRIBUTE_APPLYCAUSE_VALUE_CLSID 5L
  131. #define APP_ATTRIBUTE_APPLYCAUSE_VALUE_UPGRADE 6L
  132. #define APP_ATTRIBUTE_APPLYCAUSE_VALUE_PROGID 7L
  133. #define APP_ATTRIBUTE_APPLYCAUSE_VALUE_REDEPLOY 8L
  134. // Eligibility
  135. #define APP_ATTRIBUTE_ELIGIBILITY L"Eligibility"
  136. //
  137. // Enumerated values for Eligibility
  138. //
  139. #define APP_ATTRIBUTE_ELIGIBILITY_VALUE_ASSIGNED 1L
  140. #define APP_ATTRIBUTE_ELIGIBILITY_VALUE_APPLIED 2L
  141. #define APP_ATTRIBUTE_ELIGIBILITY_VALUE_UPGRADES 3L
  142. #define APP_ATTRIBUTE_ELIGIBILITY_VALUE_PLANNING 4L
  143. // An enumerated type that describes the rule used to choose package
  144. #define APP_ATTRIBUTE_LANGMATCH L"LanguageMatch"
  145. //
  146. // Enumerated values for the LanguageMatch attribute
  147. //
  148. #define APP_ATTRIBUTE_LANGMATCH_VALUE_SYSLOCALE 1L
  149. #define APP_ATTRIBUTE_LANGMATCH_VALUE_ENGLISH 2L
  150. #define APP_ATTRIBUTE_LANGMATCH_VALUE_IGNORE 3L
  151. #define APP_ATTRIBUTE_LANGMATCH_VALUE_NEUTRAL 4L
  152. #define APP_ATTRIBUTE_LANGMATCH_VALUE_NOMATCH 5L
  153. // File extension used for on-demand install
  154. #define APP_ATTRIBUTE_ONDEMAND_FILEEXT L"OnDemandFileExtension"
  155. // Clsid used for on-demand install
  156. #define APP_ATTRIBUTE_ONDEMAND_CLSID L"OnDemandClsid"
  157. // ProgId used for on-demand install
  158. #define APP_ATTRIBUTE_ONDEMAND_PROGID L"OnDemandProgid"
  159. // Removal Cause
  160. #define APP_ATTRIBUTE_REMOVAL_CAUSE L"RemovalCause"
  161. //
  162. // Enumerated values for RemovalCause
  163. //
  164. #define APP_ATTRIBUTE_REMOVALCAUSE_NONE 1L
  165. #define APP_ATTRIBUTE_REMOVALCAUSE_UPGRADE 2L
  166. #define APP_ATTRIBUTE_REMOVALCAUSE_ADMIN 3L
  167. #define APP_ATTRIBUTE_REMOVALCAUSE_USER 4L
  168. #define APP_ATTRIBUTE_REMOVALCAUSE_SCOPELOSS 5L
  169. #define APP_ATTRIBUTE_REMOVALCAUSE_TRANSFORM 6L
  170. #define APP_ATTRIBUTE_REMOVALCAUSE_PRODUCT 7L
  171. #define APP_ATTRIBUTE_REMOVALCAUSE_PROFILE 8L
  172. // Removal Type
  173. #define APP_ATTRIBUTE_REMOVAL_TYPE L"RemovalType"
  174. //
  175. // Enumerated values for Removal type
  176. //
  177. #define APP_ATTRIBUTE_REMOVALTYPE_NONE 1L
  178. #define APP_ATTRIBUTE_REMOVALTYPE_UPGRADED 2L
  179. #define APP_ATTRIBUTE_REMOVALTYPE_UNINSTALLED 3L
  180. #define APP_ATTRIBUTE_REMOVALTYPE_ORPHAN 4L
  181. // The application that caused this application to be removed
  182. #define APP_ATTRIBUTE_REMOVING_APP L"RemovingApplication"
  183. //
  184. // Attribute names for the RSOP_ARPCategories class
  185. //
  186. // Category id
  187. #define CAT_ATTRIBUTE_ID L"CategoryId"
  188. // Category name.
  189. #define CAT_ATTRIBUTE_NAME L"Name"
  190. // Time this instance was created
  191. #define CAT_ATTRIBUTE_CREATIONTIME L"CreationTime"
  192. //
  193. // Miscellaneous definitions
  194. //
  195. #define MAX_SZGUID_LEN 39