GpaGetCounterName
Syntax
Description
Gets the name of the specified counter.
Parameters
Name |
Description |
---|---|
|
Unique identifier of a previously-opened context. |
|
The index of the counter name to query. Must lie between 0 and (GpaGetNumCounters result – 1). |
|
The address which will hold the name upon successful execution. |
Return value
Return value |
Description |
---|---|
kGpaStatusOk |
The counter name was successfully retrieved. |
kGpaStatusErrorNullPointer |
The supplied
name parameter is NULL.The supplied
context_id parameter is NULL. |
kGpaStatusErrorContextNotFound |
The supplied |
kGpaStatusErrorContextNotOpen |
The supplied context is not currently open. |
kGpaStatusErrorIndexOutOfRange |
The specified index is out of range. |
kGpaStatusErrorFailed |
The counter name could not be retrieved. |
kGpaStatusErrorException |
Exception occurred. |