Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
This method sets a registry value known as a metric.
HRESULT SetMetric(
   LPCOLESTR pszMetric,
   VARIANT   varValue
);
int SetMetric(
   string pszMetric,
   object varValue
);
Parameters
- pszMetric 
 [in] The metric name.
- varValue 
 [in] Specifies the metric value.
Return Value
If successful, returns S_OK; otherwise, returns an error code.
Remarks
A metric is a registry value used to change a debug engine's behavior or to advertise supported functionality. This method can forward the call to the appropriate form of the SDK Helpers for Debugging function, SetMetric.