ModifyServiceSettings method of the Msvm_MetricService class

Modifies the setting data for the service.

Syntax

uint32 ModifyServiceSettings(
  [in]  string              SettingData,
  [out] CIM_ConcreteJob REF Job
);

Parameters

SettingData [in]

Contains an embedded instance of the Msvm_MetricServiceSettingData class that contains the modified setting data for the service.

Job [out]

If the operation is performed asynchronously, this method will return 4096, and this parameter will contain a reference to an object derived from CIM_ConcreteJob.

Return value

This method returns one of the following values.

Return code/value Description
Completed with No Error
0
Success.
Method Parameters Checked - Job Started
4096
Method parameters checked, job started.
Failed
32768
Failed.
Access Denied
32769
Access denied.
Not Supported
32770
Not supported.
Status is unknown
32771
Status is unknown.
Timeout
32772
Time-out.
Invalid parameter
32773
Invalid parameter.
System is in use
32774
System is in use.
Invalid state for this operation
32775
Invalid state for this operation.
Incorrect data type
32776
Incorrect data type.
System is not available
32777
System is not available.
Out of memory
32778
Out of memory.

Requirements

Minimum supported client
Windows 8 [desktop apps only]
Minimum supported server
Windows Server 2012 [desktop apps only]
Namespace
Root\Virtualization\V2
MOF
WindowsVirtualization.V2.mof
DLL
Vmms.exe

See also

Msvm_MetricService