GpaGetCounterIndex
Syntax
Description
Gets index of a counter given its name (case insensitive).
Parameters
Name |
Description |
---|---|
|
Unique identifier of a previously-opened context. |
|
The name of the counter whose index is needed. |
|
The address which will hold the index upon successful execution. |
Return value
Return value |
Description |
---|---|
kGpaStatusOk |
The counter index was successfully retrieved. |
kGpaStatusErrorNullPointer |
The supplied
counter_name parameter is NULL.The supplied
index parameter is NULL.The supplied
context_id parameter is NULL. |
kGpaStatusErrorContextNotFound |
The supplied |
kGpaStatusErrorContextNotOpen |
The supplied context is not currently open. |
kGpaStatusErrorCounterNotFound |
The specified counter could not be found. |
kGpaStatusErrorException |
Exception occurred. |