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.

114 lines
3.7 KiB

  1. // SystemRestoreProv.MOF
  2. // Copyright (c) 1999 Microsoft Corporation
  3. // Generated by Microsoft WBEM Code Generation Engine
  4. //
  5. // TO DO: If this class is intended to be created in a namespace
  6. // other than the default (root\default), you should add
  7. // the #pragma namespace command here. If these classes
  8. // are going into your own namespace, consider creating
  9. // the namespace here as well. See CIMWIN32.MOF for an
  10. // example of how to create a namespace. Also, consider
  11. // combining this mof with the mof the defines the class
  12. // that this provider provides.
  13. //
  14. //===================================================================
  15. #pragma autorecover
  16. #pragma classflags("forceupdate")
  17. #pragma namespace ("\\\\.\\Root\\Default")
  18. //*************************************************************
  19. //*** Registers Framework Provider ***
  20. //*************************************************************
  21. instance of __Win32Provider as $P
  22. {
  23. Name = "SystemRestoreProv";
  24. ClsId = "{a47401f6-a8a6-40ea-9c29-b8f6026c98b8}";
  25. ImpersonationLevel=1;
  26. HostingModel="NetworkServiceHost";
  27. };
  28. instance of __InstanceProviderRegistration
  29. {
  30. Provider = $P;
  31. SupportsGet = TRUE;
  32. SupportsPut = TRUE;
  33. SupportsDelete = FALSE;
  34. SupportsEnumeration = TRUE;
  35. QuerySupportLevels = NULL;
  36. };
  37. instance of __MethodProviderRegistration
  38. {
  39. Provider = $P;
  40. };
  41. [Dynamic, Provider ("SystemRestoreProv")]
  42. class SystemRestore
  43. {
  44. [read, write]
  45. String Description;
  46. [read, write]
  47. uint32 RestorePointType;
  48. [read, write]
  49. uint32 EventType;
  50. [read, write, key]
  51. uint32 SequenceNumber;
  52. [read, write]
  53. String CreationTime;
  54. [Implemented, static, Description(
  55. "The CreateRestorePoint method creates a restore point."
  56. "It returns a COM error code.")]
  57. uint32 CreateRestorePoint([In] String Description, [In] uint32 RestorePointType, [In] uint32 EventType );
  58. [Implemented, static, Description(
  59. "The Enable method enables SR on a drive."
  60. "It returns a COM error code.")]
  61. uint32 Enable([In] String Drive, [In] Boolean WaitTillEnabled);
  62. [Implemented, static, Description(
  63. "The Disable method disables SR on a drive."
  64. "It returns a COM error code.")]
  65. uint32 Disable([In] String Drive);
  66. [Implemented, static, Description(
  67. "The Restore method restores the system to a specified restore point."
  68. "It returns a COM error code.")]
  69. uint32 Restore([In] uint32 SequenceNumber);
  70. [Implemented, static, Description(
  71. "Returns the status (0=fail, 1=success, 2=interrupted) of the last restore.")]
  72. uint32 GetLastRestoreStatus();
  73. };
  74. [DYNPROPS]
  75. class SystemRestoreConfig {
  76. [KEY] STRING MyKey;
  77. uint32 RPSessionInterval;
  78. uint32 RPGlobalInterval;
  79. uint32 RPLifeInterval;
  80. uint32 DiskPercent;
  81. };
  82. [DYNPROPS]
  83. instance of SystemRestoreConfig
  84. {
  85. MyKey = "SR";
  86. [PropertyContext("local|hkey_local_Machine\\software\\microsoft\\windows nt\\currentversion\\systemrestore|RPSessionInterval"), Dynamic, Provider("RegPropProv")] RPSessionInterval;
  87. [PropertyContext("local|hkey_local_Machine\\software\\microsoft\\windows nt\\currentversion\\systemrestore|RPGlobalInterval"), Dynamic, Provider("RegPropProv")] RPGlobalInterval;
  88. [PropertyContext("local|hkey_local_Machine\\software\\microsoft\\windows nt\\currentversion\\systemrestore|RPLifeInterval"), Dynamic, Provider("RegPropProv")] RPLifeInterval;
  89. [PropertyContext("local|hkey_local_Machine\\software\\microsoft\\windows nt\\currentversion\\systemrestore\\cfg|DiskPercent"), Dynamic, Provider("RegPropProv")] DiskPercent;
  90. };