CounterItem.GetValue method

Retrieves the last value of the counter.

Syntax

CounterItem.GetValue( _
  ByRef value As Double, _
  ByRef status As Long _
)

Parameters

value [out]

Last sampled value of the counter.

status [out]

Indicates if the value is valid.

Value Meaning
0
The value is valid.
0xC0000BBA (3221228474)
The value is not valid.

Return value

This method does not return a value.

Remarks

If the source of the counter data is from a log file, the value is the last counter value in the log file.

Requirements

Requirement Value
Minimum supported client
Windows 2000 Professional [desktop apps only]
Minimum supported server
Windows 2000 Server [desktop apps only]
DLL
Sysmon.ocx

See also

CounterItem

CounterItem.GetStatistics

CounterItem.Value