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