检索命名值的字符串指标其名称。
HRESULT GetMetricString(
LPCWSTR pszType,
REFGUID guidSection,
LPCWSTR pszMetric,
BSTR* pbstrValue
);
private int GetMetricString(
string pszType,
ref Guid guidSection,
string pszMetric,
out string pbstrValue
);
参数
pszType
[in] 类型的指标。guidSection
[in] 部分的唯一标识符。pszMetric
[in] 名称的指标。pbstrValue
[out] 返回值字符串指标。
返回值
如果成功,则返回; S_OK否则,返回错误代码。