PDHCollectData

Function Prototype

PDHCollectData(anQueryID : number):number;

Parameters

  • anQuery (in) - Query on which data is to be collected

Return Value

number : 0 if successful else -1.

Description

Having created a query and populated it with counter paths, PDHCollectData is used to populate the query counters with up-to-date data. Data now held in the query can be recovered with PDHGetCounterValue.

Example

See example in PDHGetCounterValue