다음을 통해 공유


IDebugSettingsCallback2::GetMetricGuid

Retrieves the unique identifier of a metric given its name.

HRESULT GetMetricGuid(
   LPCWSTR pszType,
   REFGUID guidSection,
   LPCWSTR pszMetric,
   GUID*   pguidValue
);
private int GetMetricGuid(
   string   pszType,
   ref Guid guidSection,
   string   pszMetric,
   out Guid pguidValue
);

Parameters

  • pszType
    [in] Type of the metric.

  • guidSection
    [in] Unique identifier of the section.

  • pszMetric
    [in] Name of the metric.

  • pguidValue
    [out] Returns the unique identifier of the metric.

Return Value

If successful, returns S_OK; otherwise, returns an error code.

See Also

Reference

IDebugSettingsCallback2