home *** CD-ROM | disk | FTP | other *** search
/ PC World 2002 December (Special) / PCWorld_2002-12_Special_cd.bin / Software / Ostatni / winxpsp1en / xpsp1_en_x86.exe / licwmi.mof < prev    next >
Encoding:
Text File  |  2002-08-28  |  15.2 KB  |  143 lines

  1.  ■#pragma autorecover
  2. #pragma classflags(64)
  3. #pragma namespace("\\\\.\\Root\\cimv2")
  4. #pragma deleteclass("Win32_WPA",NOFAIL)
  5. #pragma deleteclass("Win32_ComputerWPASetting",NOFAIL)
  6. Instance of __Win32Provider as $P0
  7. {
  8.   Name = "Win32_WIN32_WINDOWSPRODUCTACTIVATION_Prov";
  9.   ClsId = "{EA231B91-099E-4d02-9EE7-73976D6A085F}";
  10.   HostingModel = "NetworkServiceHost";
  11. };
  12. Instance of __InstanceProviderRegistration
  13. {
  14.   Provider = $P0;
  15.   SupportsGet = TRUE;
  16.   SupportsPut = TRUE;
  17.   SupportsDelete = TRUE;
  18.   SupportsEnumeration = TRUE;
  19.   QuerySupportLevels = {"WQL:UnarySelect"};
  20. };
  21. Instance of __MethodProviderRegistration
  22. {
  23.   Provider = $P0;
  24. };
  25. [dynamic,provider("Win32_WIN32_WINDOWSPRODUCTACTIVATION_Prov")] 
  26. class Win32_WindowsProductActivation : CIM_Setting
  27. {
  28.   [key,read] string ServerName;
  29.   [read] uint32 ActivationRequired;
  30.   [read] uint32 RemainingGracePeriod;
  31.   [read] uint32 RemainingEvaluationPeriod;
  32.   [read] uint32 IsNotificationOn;
  33.   [read,write] string ProductID;
  34.   [Implemented] uint32 GetInstallationID([Out] string InstallationID);
  35.   [Implemented] uint32 SetProductKey([In] string ProductKey);
  36.   [Implemented] uint32 ActivateOnline();
  37.   [Implemented] uint32 ActivateOffline([In] string ConfirmationID);
  38.   [Implemented] uint32 SetNotification([In] uint32 Enable);
  39. };
  40. Instance of __Win32Provider as $P1
  41. {
  42.   Name = "Win32_WIN32_COMPUTERSYSTEMWINDOWSPRODUCTACTIVATIONSETTING_Prov";
  43.   ClsId = "{A2B6D807-EE1E-40f6-BDF4-B4D6F552783E}";
  44.   HostingModel = "NetworkServiceHost";
  45. };
  46. Instance of __InstanceProviderRegistration
  47. {
  48.   Provider = $P1;
  49.   SupportsGet = TRUE;
  50.   SupportsPut = TRUE;
  51.   SupportsDelete = TRUE;
  52.   SupportsEnumeration = TRUE;
  53.   QuerySupportLevels = {"WQL:UnarySelect"};
  54. };
  55. Instance of __MethodProviderRegistration
  56. {
  57.   Provider = $P1;
  58. };
  59. [dynamic : ToInstance,provider("Win32_WIN32_COMPUTERSYSTEMWINDOWSPRODUCTACTIVATIONSETTING_Prov"),Locale(1033),UUID("{A2B6D807-EE1E-40f6-BDF4-B4D6F552783E}")] 
  60. class Win32_ComputerSystemWindowsProductActivationSetting : CIM_ElementSetting
  61. {
  62.   [Key] Win32_ComputerSystem Ref Element;
  63.   [Key] Win32_WindowsProductActivation Ref Setting;
  64. };
  65. Instance of __Win32Provider as $P2
  66. {
  67.   Name = "Win32_WIN32_PROXY_Prov";
  68.   ClsId = "{AF134D0A-6706-4acd-BA76-D0A852474C99}";
  69.   HostingModel = "NetworkServiceHost";
  70. };
  71. Instance of __InstanceProviderRegistration
  72. {
  73.   Provider = $P2;
  74.   SupportsGet = TRUE;
  75.   SupportsPut = TRUE;
  76.   SupportsDelete = TRUE;
  77.   SupportsEnumeration = TRUE;
  78.   QuerySupportLevels = {"WQL:UnarySelect"};
  79. };
  80. Instance of __MethodProviderRegistration
  81. {
  82.   Provider = $P2;
  83. };
  84. [dynamic,provider("Win32_WIN32_PROXY_Prov")] 
  85. class Win32_Proxy : CIM_Setting
  86. {
  87.   [key,read] string ServerName;
  88.   [read] string ProxyServer;
  89.   [read] string ProxyPortNumber;
  90.   [Implemented] uint32 SetProxySetting([In] string ProxyServer,[In] string ProxyPortNumber);
  91. };
  92. #pragma autorecover
  93. #pragma classflags(64)
  94. #pragma namespace("\\\\.\\Root\\cimv2")
  95. instance of __namespace{ name="ms_409";};
  96. #pragma namespace("\\\\.\\Root\\cimv2\\ms_409")
  97. #pragma deleteclass("Win32_WPA",NOFAIL)
  98. #pragma deleteclass("Win32_ComputerWPASetting",NOFAIL)
  99. [Description("The Win32_WindowsProductActivation class contains properties and methods that relate to Windows Product Activation such as: activation state, grace period and provides the ability to activate the machine online and offline.") : Amended ToSubclass,AMENDMENT, LOCALE(0x409)] 
  100. class Win32_WindowsProductActivation : CIM_Setting
  101. {
  102.   [key,Description("The ServerName property uniquely identifies the system whose WPA properties and methods are to be accessed.") : Amended ToSubclass] string ServerName;
  103.   [Description("The ActivationRequired property indicates whether the activation is pending for the system. If 1 (true), the system must be activated within the RemainingGracePeriod.") : Amended ToSubclass,Values{"FALSE", "TRUE"} : Amended ToSubclass] uint32 ActivationRequired;
  104.   [Description("The RemainingGracePeriod property indicates the number of days remaining if ActivationRequired is 1.") : Amended ToSubclass] uint32 RemainingGracePeriod;
  105.   [Description("The RemainingEvaluationPeriod property indicates the number of days remaining for beta or evaluation media. Otherwise it is set to the largest unsigned value.") : Amended ToSubclass] uint32 RemainingEvaluationPeriod;
  106.   [Description("The ProductID provides the same information as is displayed in System Properties.") : Amended ToSubclass] string ProductID;
  107.   [Description("GetInstallationID gets the InstallationID property comprises the Product ID and Hardware ID, and is identical to the Installation ID displayed on the telephone activation page. Installation ID must be provided to the Microsoft Clearinghouse to obtain the corresponding Confirmation ID, which is required for the ActivateOffline method.") : Amended ToSubclass] uint32 GetInstallationID([Out] string InstallationID);
  108.   [Description("SetProductKey permits a computer's Product Key (and therefore its ProductID) to be changed or corrected. Only Product Keys that are valid for the media type (i.e., retail, volume licensing, OEM) will be accepted. The method can only be used while ActivationRequired is 1.Product KeyProduct Key is a 25-character alphanumeric string formatted in groups of 5 characters separated by dashes.") : Amended ToSubclass] uint32 SetProductKey([In] string ProductKey);
  109.   [Description("The ActivateOnline method exchanges license-related data with the Microsoft Clearinghouse server and, if successful, completes system activation. It requires that the target machine be able to communicate through the Internet using the HTTPS protocol. If necessary, the SetProxySetting method should first be used to connect through a firewall. The method returns 0 on success and an error code otherwise.") : Amended ToSubclass] uint32 ActivateOnline();
  110.   [Description("This function is a scriptable equivalent to manual telephone activation. It permits offline activation using the Confirmation ID provided by the Microsoft Clearinghouse. In order to complete offline activation, the InstallationID for the machine must be retrieved by querying for the property. The method returns 0 on success and an error code otherwise.") : Amended ToSubclass] uint32 ActivateOffline([In] string ConfirmationID);
  111. };
  112. [Description("This class represents an association between Win32_ComputerSystem and Win32_WindowsProductActivation") : Amended ToSubclass,AMENDMENT, LOCALE(0x409)] 
  113. class Win32_ComputerSystemWindowsProductActivationSetting : CIM_ElementSetting
  114. {
  115. };
  116. [Description("The Win32_Proxy setting class provides methods to query and set the proxy settings.") : Amended ToSubclass,AMENDMENT, LOCALE(0x409)] 
  117. class Win32_Proxy : CIM_Setting
  118. {
  119.   [key,Description("The ServerName property uniquely identifies the system whose WPA properties and methods are to be accessed.") : Amended ToSubclass] string ServerName;
  120.   [Description("The ProxyServer property refers to the Proxy server name configured for the user on the machine.") : Amended ToSubclass] string ProxyServer;
  121.   [Description("The ProxyPortNumber property refers to the Port number configured to access the proxy server for the user on the machine.") : Amended ToSubclass] string ProxyPortNumber;
  122.   [Description("This method is a scriptable equivalent to setting the proxy manually through Internet Options (Control Panel) or Internet Explorer using the Connections tab. This setting is persistent, so it may be desirable to first query the properties so that they can be reset after use. The method returns 0 on success and an error code otherwise.") : Amended ToSubclass] uint32 SetProxySetting([In] string ProxyServer,[In] string ProxyPortNumber);
  123. };