Graphisoft®

GSRootVersion: 1.0

PMGetCounterValue

Windows NT only!

The PMGetCounterValue function retrieves the value of the specified counter.

long PMGetCounterValue(
  long          objIndex,     // index of counter's object
  long          counterIndex,      // index of the counter
  unsigned long *pValue            // buffer receiving counter value
);

 

Parameters

objIndex
Specifies the grouping object index. This index is returned by PMAddObject.
counterIndex
Specifies the counter index. This index is returned by PMAddCounter.
pValue
Specifies the address of the buffer receiving the value of the specified counter.

Return Values

If the function succeeds, the return value is TRUE.

If the function fails, the return value is FALSE.

Remarks

Use this function only if counters are in use.

You can also set the values of your counters: call PMSetCounterValue.

Requirements

    Header: Declared in GSRoot.h
    Import Library: Link with GSRootImp.lib

See Also

Performance Monitor Manager Functions, PMAddObject, PMAddCounter, PMSetCounterValue