Files
WinDurango/dlls/winrt_x/Implementation/Windows.Xbox.System.UserDisplayInfo.cpp

59 lines
1.2 KiB
C++

#include "pch.h"
#include "Windows.Xbox.System.UserDisplayInfo.h"
#include "Windows.Xbox.System.UserDisplayInfo.g.cpp"
namespace winrt::Windows::Xbox::System::implementation
{
hstring UserDisplayInfo::Gamertag()
{
LOG_INFO("UserDisplayInfo::Gamertag() called");
return L"HelloWorld";
}
uint32_t UserDisplayInfo::GamerScore()
{
LOG_INFO("UserDisplayInfo::GamerScore() called");
return 0;
}
hstring UserDisplayInfo::ApplicationDisplayName()
{
LOG_INFO("UserDisplayInfo::GameDisplayName() called");
return to_hstring("WinDurango");
}
hstring UserDisplayInfo::GameDisplayName()
{
LOG_INFO("UserDisplayInfo::GameDisplayName() called");
return L"HelloWorld";
}
int32_t UserDisplayInfo::Reputation()
{
LOG_INFO("UserDisplayInfo::Reputation() called");
return 1;
}
UserAgeGroup UserDisplayInfo::AgeGroup()
{
LOG_INFO("UserDisplayInfo::AgeGroup() called");
return UserAgeGroup::Unknown;
}
Foundation::Collections::IVectorView<uint32_t> UserDisplayInfo::Privileges()
{
LOG_INFO("UserDisplayInfo::Privileges() called");
const auto vector = winrt::single_threaded_vector<uint32_t>();
vector.Append(1);
return vector.GetView();
}
}