Next Topic

Previous Topic

Book Contents

Query

bool Query(string sObjectName,string sCounterName,string sInstanceName=NULL);

Return values

True if the query was successfully executed, false if an error occurred.

Parameters

  • sObjectName - A string with the name of the object containing the counter to query.
  • sCounterName - A string with the name of the counter to query
  • sInstanceName - (Optional) string with the name of the counter instance.

Remarks

Object, counter and instance names can be obtained either in the Network Monitor Winperf monitor by clicking on the enumeration button or by using the Windows perfmon.exe application. To retrieve the value call GetResult() after this function completed.