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.

109 lines
7.1 KiB

  1. ��#pragma autorecover
  2. #pragma classflags(64)
  3. #pragma namespace("\\\\.\\Root")
  4. Instance of __Namespace
  5. {
  6. Name = "Policy";
  7. };
  8. #pragma namespace("\\\\.\\Root\\Policy")
  9. Instance of __Win32Provider as $PolicSOM
  10. {
  11. Name = "PolicSOM";
  12. ClsId = "{AAEAE72F-0328-4763-8ECB-23422EDE2DB5}";
  13. ImpersonationLevel = 1;
  14. PerUserInitialization = "FALSE";
  15. HostingModel = "NetworkServiceHost";
  16. };
  17. Instance of __Win32Provider as $PolicStatus
  18. {
  19. Name = "PolicStatus";
  20. ClsId = "{69D76D1B-B12E-4913-8F48-671B90195A2B}";
  21. ImpersonationLevel = 1;
  22. PerUserInitialization = "FALSE";
  23. HostingModel = "NetworkServiceHost";
  24. };
  25. Instance of __InstanceProviderRegistration
  26. {
  27. Provider = $PolicSOM;
  28. SupportsGet = "TRUE";
  29. SupportsPut = "TRUE";
  30. SupportsDelete = "TRUE";
  31. QuerySupportLevels = {"WQL:UnarySelect"};
  32. };
  33. Instance of __InstanceProviderRegistration
  34. {
  35. Provider = $PolicStatus;
  36. SupportsGet = "TRUE";
  37. SupportsPut = "FALSE";
  38. SupportsDelete = "FALSE";
  39. };
  40. Instance of __MethodProviderRegistration
  41. {
  42. Provider = $PolicSOM;
  43. };
  44. [Abstract,Locale(1033) : ToInstance,UUID("{D157AAFD-D42F-45cd-B30B-F67CF152C9F9}")]
  45. class MSFT_Rule
  46. {
  47. [NOT_NULL,write] string QueryLanguage;
  48. [NOT_NULL,write] string TargetNameSpace;
  49. [NOT_NULL,write] string Query;
  50. };
  51. [Dynamic,Provider("PolicSOM"),Locale(1033) : ToInstance,UUID("{AE7B614F-AFE0-41ea-807E-3BD3F83CAF66}")]
  52. class MSFT_SomFilter
  53. {
  54. [key,write,MaxLen(38)] string ID;
  55. [key,write] String Domain;
  56. [write, NOT_NULL] string Name;
  57. [write] String Description;
  58. [write,NOT_NULL] MSFT_Rule Rules[];
  59. [Implemented, bypass_getobject] Uint32 Evaluate();
  60. [Implemented,Static] Uint32 BatchEvaluate([IN] MSFT_SomFilter Ref filters[],[OUT] Uint32 results[]);
  61. [write] String Author;
  62. [write] String SourceOrganization;
  63. [write] DateTime ChangeDate;
  64. [write] DateTime CreationDate;
  65. };
  66. [Dynamic, Provider("PolicStatus"), Locale(1033)]
  67. class MSFT_SomFilterStatus
  68. {
  69. [key,read] String Domain;
  70. [read] Boolean SchemaAvailable;
  71. [read] Boolean ContainerAvailable;
  72. };
  73. class SomFilterPutStatus : __ExtendedStatus
  74. {
  75. [read] Uint32 RuleValidationResults[];
  76. };
  77. #pragma DeleteInstance("__Namespace.Name='History'", NOFAIL)
  78. #pragma DeleteInstance("__Win32Provider.Name=\"PolicGpo\"", NOFAIL)
  79. #pragma DeleteInstance("__InstanceProviderRegistration.provider=\"\\\\\\\\.\\\\Root\\\\Policy:__Win32Provider.Name=\\\"PolicTempl\\\"\"", NOFAIL)
  80. #pragma DeleteInstance("__Win32Provider.Name=\"PolicRange\"", NOFAIL)
  81. #pragma DeleteInstance("__MethodProviderRegistration.provider=\"\\\\\\\\.\\\\Root\\\\Policy:__Win32Provider.Name=\\\"PolicRange\\\"\"", NOFAIL)
  82. #pragma DeleteInstance("__Win32Provider.Name=\"PolicTempl\"", NOFAIL)
  83. #pragma DeleteInstance("__MethodProviderRegistration.provider=\"\\\\\\\\.\\\\Root\\\\Policy:__Win32Provider.Name=\\\"PolicTempl\\\"\"", NOFAIL)
  84. #pragma DeleteInstance("__InstanceProviderRegistration.provider=\"\\\\\\\\.\\\\Root\\\\Policy:__Win32Provider.Name=\\\"PoliceTempl\\\"\"", NOFAIL)
  85. #pragma DeleteInstance("__Win32Provider.Name=\"PolicType\"", NOFAIL)
  86. #pragma DeleteInstance("__MethodProviderRegistration.provider=\"\\\\\\\\.\\\\Root\\\\Policy:__Win32Provider.Name=\\\"PolicType\\\"\"", NOFAIL)
  87. #pragma DeleteInstance("__InstanceProviderRegistration.provider=\"\\\\\\\\.\\\\Root\\\\Policy:__Win32Provider.Name=\\\"PolicType\\\"\"", NOFAIL)
  88. #pragma DeleteClass("MSFT_RangeParam", NOFAIL)
  89. #pragma DeleteClass("MSFT_PolicyTemplate", NOFAIL)
  90. #pragma DeleteClass("MSFT_PolicyType", NOFAIL)
  91. #pragma DeleteClass("MSFT_WMIGPO", NOFAIL)