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.

68 lines
5.6 KiB

  1. ��// Copyright (c) 1997-2003 Microsoft Corporation, All Rights Reserved
  2. [locale(1033)]
  3. class ActiveScriptEventConsumer : __EventConsumer
  4. {
  5. [key] string Name;
  6. [not_null, write] string ScriptingEngine;
  7. [write] string ScriptText;
  8. [write] string ScriptFilename;
  9. [write] uint32 KillTimeout = 0;
  10. };
  11. Instance of __Win32Provider as $SCRCONS_P
  12. {
  13. Name = "ActiveScriptEventConsumer";
  14. Clsid = "{266c72e7-62e8-11d1-ad89-00c04fd8fdff}";
  15. PerUserInitialization = TRUE;
  16. HostingModel = "SelfHost";
  17. };
  18. Instance of __EventConsumerProviderRegistration
  19. {
  20. Provider = $SCRCONS_P;
  21. ConsumerClassNames = {"ActiveScriptEventConsumer"};
  22. };
  23. instance of __namespace{ name="ms_409";};
  24. #pragma namespace("ms_409")
  25. [AMENDMENT, LOCALE(0x409)]
  26. class ActiveScriptEventConsumer : __EventConsumer
  27. {
  28. [description("Name of the scripting engine, ex: VBScript") : Amended] string ScriptingEngine;
  29. [Description("Text of the script, expressed in a language known to the scripting engine.") : Amended] string ScriptText;
  30. [description("Filename of a script file to be run, note that this is intended as an alternative to specifying the text of the script in ScriptText. Results are undefined if both properties are assigned values.") : Amended] string ScriptFilename;
  31. [description("Number of seconds that the script is allowed to run, if zero script will not be terminated.") : Amended] uint32 KillTimeout;
  32. };
  33. #pragma namespace("\\\\.\\Root\\CIMV2")
  34. [locale(1033),Singleton]
  35. class ScriptingStandardConsumerSetting : CIM_Setting
  36. {
  37. [Read,Override("SettingID")] string SettingID = "ScriptingStandardConsumerSetting";
  38. [Read,Override("Caption")] string Caption = "Scripting Standard Consumer Setting";
  39. [Read,Override("Description")] string Description = "Registration data common to all instances of the Scripting Standard Consumer";
  40. [Read, Write] uint32 MaximumScripts = 300;
  41. [Read, Write, units("Minutes")] uint32 Timeout = 0;
  42. };
  43. Instance of ScriptingStandardConsumerSetting
  44. {
  45. MaximumScripts = 300;
  46. Timeout = 0;
  47. };
  48. #pragma namespace("\\\\.\\Root\\CIMV2")
  49. instance of __namespace{ name="ms_409";};
  50. #pragma namespace("\\\\.\\Root\\CIMV2\\ms_409")
  51. [Description("Provides registration data common to all instances of the Active Script Consumer") : Amended,AMENDMENT, LOCALE(0x409)]
  52. class ScriptingStandardConsumerSetting : CIM_Setting
  53. {
  54. [Description("Maximum number of scripts run before the consumer will start a new instance. The consumer should be shut down periodically to clear out memory leaks from the scripts.") : Amended] uint32 MaximumScripts;
  55. [Description("Maximum number of minutes before the consumer will start a new instance. If zero, consumer lifetime is controlled by the MaximumScripts property. Valid Range: 0-71,000.") : Amended] uint32 Timeout;
  56. };