Retrieves the title for the indexed statistics category.
Syntax
virtual HRESULT GetCategoryTitle(
         WORD categoryIndex,
         LPWSTR *pTitle
)
Parameters
- categoryIndex
 [in] Index of the category you wish to retrieve.
- pTitle
 [out, optional] Receives the title name, if set.
Return Value
Returns S_OK if successful. Otherwise, returns E_INVALIDARG if pTitle is NULL or categoryIndex is out of range.
Remarks
Uninitialized statistics categories will return a NULL pointer. The returned title should be freed using CoTaskMemFree.
Requirements
Header: Declared in gameux.h.