次の方法で共有


IGameStatistics::SetLastPlayedCategory Method

Tells Windows Games Explorer which category to display the next time the user views their statistics.

Syntax

virtual HRESULT SetLastPlayedCategory(
         UINT categoryIndex
)

Parameters

  • categoryIndex
    [in] Sets the category matching the last game played by the user.

Return Value

S_OK if the category index was saved successfully. Standard error codes otherwise.

Requirements

Header: Declared in gameux.h.

See Also

IGameStatistics::GetLastPlayedCategory
IGameStatistics