GpaGetCounterIndex
Syntax
Description
Gets index of a counter given its name (case insensitive).
Parameters
Name |
Description |
---|---|
|
Unique identifier of a previously-created session. |
|
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. |
kGpaStatusErrorGpaNotInitialized |
GPA was not initialized. Call GpaInitialize before all other entrypoints. |
kGpaStatusErrorNullPointer |
The supplied
counter_name parameter is NULL.The supplied
index parameter is NULL.The supplied
session_id parameter is NULL. |
kGpaStatusErrorSessionNotFound If the supplied |
|
kGpaStatusErrorCounterNotFound |
The specified counter could not be found. |
kGpaStatusErrorException |
Exception occurred. |